/* =========================================================
   TheAzureUpdate — site.css
   Pure CSS3 with Grid/Flexbox. Zero frameworks.
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Sticky Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1a1a2e;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-links { display: flex; flex-wrap: wrap; }
.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  padding: 14px 16px;
  transition: background .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); }
.nav-socials { display: flex; align-items: center; gap: 14px; }
.nav-socials a { color: #aaa; font-size: 1.15rem; transition: color .2s; }
.nav-socials a:hover { color: #50e6ff; }

/* --- Section Wrapper --- */
.section { padding: 40px 20px; }
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px;
}
.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: #0078d4;
}
.section-header p {
  font-style: italic;
  font-size: 1rem;
  color: #666;
}

/* --- Tile Grid (3 columns) --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Tile Card --- */
.tile-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 24px 18px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.tile-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }

/* Tile colour themes */
.tile-ai      { background: linear-gradient(135deg, #0078d4, #50e6ff); }
.tile-quantum { background: linear-gradient(135deg, #5c2d91, #b4a0ff); }
.tile-learn   { background: linear-gradient(135deg, #008272, #50e6c2); }
.tile-blog    { background: linear-gradient(135deg, #d83b01, #ff8c00); }
.tile-x       { background: linear-gradient(135deg, #1a1a2e, #4a4a6a); }

/* --- Image Tile (Azure Updates) --- */
.tile-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.tile-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.tile-image img { width: 100%; display: block; }

/* --- Header Banner --- */
.site-header {
  background: #1a1a2e;
  text-align: center;
  padding: 20px 20px 16px;
}
.header-logo {
  max-height: 200px;
  max-width: 100%;
  margin: 0 auto;
}

/* --- Page Layout: Sidebar + Main --- */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}
.main-content {
  min-width: 0; /* prevent grid blowout */
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 50px;
  align-self: start;
  padding: 32px 20px;
  text-align: center;
  height: fit-content;
}
.sidebar-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0078d4;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  margin: 0 auto 16px;
}
.sidebar-name {
  font-size: 1.3rem;
  color: #0078d4;
  margin-bottom: 6px;
}
.sidebar-tagline {
  font-style: italic;
  font-size: .82rem;
  color: #666;
  margin-bottom: 12px;
}
.sidebar-bio {
  font-size: .82rem;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.5;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-links a {
  padding: 7px 12px;
  border-radius: 6px;
  background: #0078d4;
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.sidebar-links a:hover { background: #005a9e; transform: translateY(-1px); }

/* --- Footer --- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  text-align: center;
  padding: 32px 20px 24px;
  font-size: .9rem;
}
.site-footer a { color: #50e6ff; }
.site-footer a:hover { text-decoration: underline; }
.footer-socials { margin-bottom: 12px; }
.footer-socials a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.6rem;
  color: #50e6ff;
  transition: transform .2s, color .2s;
}
.footer-socials a:hover { transform: scale(1.2); color: #fff; }
.footer-updated { font-size: .8rem; color: #888; margin-top: 8px; }

/* --- Disclaimer --- */
.disclaimer-section {
  background: #f0f0f0;
  padding: 24px 20px;
  font-size: .78rem;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* --- Dark Mode Toggle --- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #0078d4;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { background: #005a9e; }

/* --- Dark Mode Overrides --- */
html.dark-mode body            { background: #121212; color: #e0e0e0; }
html.dark-mode .site-header    { background: #0d0d1a; }
html.dark-mode .section        { background: #1e1e2e; }
html.dark-mode .section-header h2 { color: #50e6ff; }
html.dark-mode .section-header p  { color: #aaa; }
html.dark-mode .tile-card      { box-shadow: 0 2px 8px rgba(0,0,0,.4); }
html.dark-mode .tile-image     { box-shadow: 0 2px 8px rgba(0,0,0,.4); }
html.dark-mode .site-nav       { background: #0d0d1a; }
html.dark-mode .theme-toggle   { background: #50e6ff; color: #1a1a2e; }
html.dark-mode .theme-toggle:hover { background: #3dd4f0; }
html.dark-mode .sidebar-name   { color: #50e6ff; }
html.dark-mode .sidebar-tagline { color: #aaa; }
html.dark-mode .sidebar-bio    { color: #ccc; }
html.dark-mode .sidebar-photo  { border-color: #50e6ff; }
html.dark-mode .disclaimer-section { background: #1a1a2e; color: #888; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    border-bottom: 1px solid #ddd;
    padding: 24px 20px;
  }
}
@media (max-width: 600px) {
  .site-nav { flex-direction: column; padding: 8px; }
  .nav-socials { margin-top: 6px; }
  .tile-grid { grid-template-columns: 1fr; }
}
