/* =========================================================
   AWS Study Hub — Global Styles
   ========================================================= */
:root {
  --aws-orange: #FF9900;
  --aws-dark:   #232F3E;
  --aws-blue:   #1A73E8;
  --aws-teal:   #00A4B4;
  --aws-green:  #3FB34F;
  --aws-red:    #D13212;
  --bg:         #0D1117;
  --bg-card:    #161B22;
  --bg-hover:   #1C2230;
  --border:     #30363D;
  --text:       #E6EDF3;
  --text-muted: #8B949E;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--aws-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.8rem; font-weight: 700; margin: 2rem 0 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 1.5rem 0 0.6rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.4rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
pre, code { font-family: 'JetBrains Mono','Fira Code',monospace; font-size: 0.88rem; }
code { background: rgba(255,153,0,0.12); color: var(--aws-orange); padding: 0.15em 0.4em; border-radius: 4px; }
pre { background: #0A0D10; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; overflow-x: auto; margin-bottom: 1.2rem; position: relative; }
pre code { background: none; color: #A8D8A8; padding: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
/* Navbar */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(13,17,23,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 800; color: var(--aws-orange); }
.nav-links { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-card); text-decoration: none; }
.nav-search { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.8rem; gap: 0.5rem; }
.nav-search input { background: none; border: none; outline: none; color: var(--text); font-size: 0.88rem; width: 180px; }
.nav-search input::placeholder { color: var(--text-muted); }
/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.2s,border-color 0.2s,box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); border-color: var(--aws-orange); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { margin-top: 0; }
/* Badges */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-orange { background: rgba(255,153,0,0.15); color: var(--aws-orange); border: 1px solid rgba(255,153,0,0.3); }
.badge-blue   { background: rgba(26,115,232,0.15); color: #6BA7F5; border: 1px solid rgba(26,115,232,0.3); }
.badge-teal   { background: rgba(0,164,180,0.15);  color: var(--aws-teal); border: 1px solid rgba(0,164,180,0.3); }
.badge-green  { background: rgba(63,179,79,0.15);  color: var(--aws-green); border: 1px solid rgba(63,179,79,0.3); }
.badge-red    { background: rgba(209,50,18,0.15);  color: #E87A5D; border: 1px solid rgba(209,50,18,0.3); }
.badge-purple { background: rgba(138,92,246,0.15); color: #B794F4; border: 1px solid rgba(138,92,246,0.3); }
/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--aws-orange); color: #000; }
.btn-primary:hover { background: #FFB733; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--aws-orange); color: var(--aws-orange); text-decoration: none; }
/* Hero */
.hero { background: radial-gradient(ellipse at 60% 30%,rgba(255,153,0,0.08) 0%,transparent 60%), radial-gradient(ellipse at 20% 70%,rgba(0,164,180,0.06) 0%,transparent 50%), var(--bg); padding: 5rem 0 4rem; text-align: center; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--aws-orange); margin-bottom: 1rem; }
.hero h1 { background: linear-gradient(135deg,#FFFFFF 0%,var(--aws-orange) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1.2rem; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 2.5rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--aws-orange); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
/* Cert path cards */
.cert-path { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s; text-decoration: none; color: var(--text); }
.cert-path:hover { border-color: var(--aws-orange); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.cert-path-icon { font-size: 2rem; min-width: 2.5rem; text-align: center; }
.cert-path-title { font-weight: 700; font-size: 1rem; }
.cert-path-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--aws-orange); }
/* Page header */
.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.page-header p { color: var(--text-muted); max-width: 700px; }
/* Doc layout */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.sidebar { position: sticky; top: 80px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.sidebar h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.8rem; margin-top: 0; }
.sidebar a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 0.3rem 0.5rem; border-radius: 4px; margin-bottom: 0.1rem; }
.sidebar a:hover { color: var(--aws-orange); text-decoration: none; background: rgba(255,153,0,0.06); }
.sidebar a.active { color: var(--aws-orange); background: rgba(255,153,0,0.1); }
/* Callouts */
.callout { border-left: 3px solid; padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.2rem; font-size: 0.92rem; }
.callout-title { font-weight: 700; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.4rem; }
.callout.tip    { border-color: var(--aws-green);  background: rgba(63,179,79,0.08); }
.callout.info   { border-color: var(--aws-blue);   background: rgba(26,115,232,0.08); }
.callout.warn   { border-color: var(--aws-orange); background: rgba(255,153,0,0.08); }
.callout.danger { border-color: var(--aws-red);    background: rgba(209,50,18,0.08); }
/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--bg-hover); }
th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--bg-hover); }
/* Progress */
.progress-wrap { margin-bottom: 0.5rem; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.progress-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg,var(--aws-orange),var(--aws-teal)); border-radius: 999px; transition: width 0.6s ease; }
/* Checklist */
.checklist { list-style: none; padding-left: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.5rem; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.checklist li:hover { background: var(--bg-hover); }
.checklist li input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--aws-orange); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.checklist li.done span { text-decoration: line-through; color: var(--text-muted); }
/* Footer */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-weight: 800; color: var(--aws-orange); font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-desc  { font-size: 0.85rem; color: var(--text-muted); }
.footer h5    { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer ul    { list-style: none; padding: 0; }
.footer li    { margin-bottom: 0.4rem; }
.footer a     { font-size: 0.88rem; color: var(--text-muted); }
.footer a:hover { color: var(--aws-orange); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem; }
/* Scroll top */
#scroll-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--aws-orange); color: #000; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; border: none; opacity: 0; transform: translateY(10px); transition: all 0.3s; z-index: 999; }
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover   { background: #FFB733; }
/* Tabs */
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; margin-bottom: -1px; }
.tab-btn.active, .tab-btn:hover { color: var(--aws-orange); border-bottom-color: var(--aws-orange); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* Responsive */
@media (max-width: 900px) {
  .doc-layout   { grid-template-columns: 1fr; }
  .sidebar      { position: static; }
  .grid-3       { grid-template-columns: 1fr 1fr; }
  .grid-4       { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .nav-search   { display: none; }
  .hero-stats   { gap: 1.5rem; }
}
