/* ============================================================
   gloss3d.css — "professional 3D glossy" layer (6 Dec 2026)
   ADDITIVE and LAST-LOADING. It adds depth only: bevels, soft
   layered shadows, a top sheen, keycap buttons, a small 3D tilt
   on hover. It does NOT change any colour of the site: every
   hue comes from the existing site.css tokens (owner: "colour
   combination jo abhi hai usse matching hi rakhna").
   Never reaches: the footer (.ab-credit / .ab-footer), the
   design-locked .cgw-app / .srs-app scopes, any text.
   Rollback: remove the <link> to this file from the pages.
   ============================================================ */

/* ---------- 1. Light surfaces: cards ---------- */
/* resting state: white top bevel + soft sheen, a 2px "thickness" edge in the
   card's own border hue, then a near and a far shadow in brand navy */
:root:not([data-theme="dark"]) :is(
  .ab-card, .ab-stat, .ab-panel, .ab-callout, .ab-embed,
  .ab-timeline--steps > li,
  .home-feature, .home-books > li,
  .abt-feature, .emp-card, .fam-card, .mex-role, .sbx-role, .sbx-stat,
  .sbx-topic, .ven-partner, .ven-web li, .blog-card,
  .ab-page [class*="ab-tint-"]) {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 26px 24px -24px rgba(255, 255, 255, .90),
    0 1px 0 var(--g3-edge, var(--line)),
    0 10px 20px -14px rgba(27, 42, 94, .18),
    0 24px 40px -30px rgba(27, 42, 94, .18);
}
/* hover: the edge grows, the far shadow takes the card's own hue */
@media (hover: hover) {
  :root:not([data-theme="dark"]) :is(
    .ab-card:not(.ab-card--static), .ab-timeline--steps > li,
    .home-books > li, .abt-feature, .emp-card, .fam-card, .mex-role,
    .sbx-role, .sbx-stat, .sbx-topic, .ven-partner, .ven-web li, .blog-card,
  .ab-page [class*="ab-tint-"]):hover {
    box-shadow:
      inset 0 1px 0 #fff,
      inset 0 26px 24px -24px rgba(255, 255, 255, .90),
      0 2px 0 var(--g3-edge, var(--line)),
      0 18px 30px -14px var(--g3-glow, rgba(201, 168, 76, .32)),
      0 30px 48px -32px rgba(27, 42, 94, .22);
  }
}

/* the six tints keep their own hue for the edge and the hover glow
   (same rgba values site.css already uses for each tint's hover) */
.ab-page .ab-tint-1 { --g3-edge: var(--tint-1-line); --g3-glow: rgba(233, 194, 95, .36); }
.ab-page .ab-tint-2 { --g3-edge: var(--tint-2-line); --g3-glow: rgba(59, 130, 246, .32); }
.ab-page .ab-tint-3 { --g3-edge: var(--tint-3-line); --g3-glow: rgba(34, 197, 94, .32); }
.ab-page .ab-tint-4 { --g3-edge: var(--tint-4-line); --g3-glow: rgba(124, 58, 237, .30); }
.ab-page .ab-tint-5 { --g3-edge: var(--tint-5-line); --g3-glow: rgba(6, 182, 212, .32); }
.ab-page .ab-tint-6 { --g3-edge: var(--tint-6-line); --g3-glow: rgba(236, 72, 153, .30); }
.home-intro--gold   { --g3-glow: rgba(233, 194, 95, .36); }
.home-intro--green  { --g3-glow: rgba(34, 197, 94, .32); }
.home-intro--blue   { --g3-glow: rgba(59, 130, 246, .32); }
.home-intro--purple { --g3-glow: rgba(124, 58, 237, .30); }

/* 3D tilt for the card families that already lift on hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ab-page .ab-card--interactive:hover,
  .ab-page .home-navcard:hover {
    transform: perspective(1100px) translateY(-6px) rotateX(1.6deg);
  }
}

/* dense grids of small tiles: a quieter shadow so 70+ tiles stay calm */
:root:not([data-theme="dark"]) .ab-page :is(.swx-tile, .mex-role, .sbx-topic, .ven-web li) {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 22px 20px -20px rgba(255, 255, 255, .90),
    0 1px 0 var(--g3-edge, var(--line)),
    0 8px 16px -12px rgba(27, 42, 94, .16);
}
@media (hover: hover) {
  :root:not([data-theme="dark"]) .ab-page :is(.swx-tile, .mex-role, .sbx-topic, .ven-web li):hover {
    box-shadow:
      inset 0 1px 0 #fff,
      0 2px 0 var(--g3-edge, var(--line)),
      0 14px 24px -12px var(--g3-glow, rgba(201, 168, 76, .30));
  }
}
/* fix (Gemini review, 6 Dec 2026): an inline SVG logo carried width=200 and
   spilled out of its 76px logo box into the next tile (OneDrive) */
.swx-logo > svg { width: 72%; height: 72%; }

/* small icon tile inside cards: a glossy chip */
.ab-card__icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 0 rgba(27, 42, 94, .06),
    0 6px 12px -6px rgba(27, 42, 94, .28);
}

/* figures */
.ab-figure img {
  box-shadow: 0 2px 0 var(--line), 0 20px 36px -18px rgba(27, 42, 94, .34);
}

/* ---------- 2. Navy panels: hero, CTA, formula ---------- */
/* glass sheen along the top, a deeper floor, a thick dark edge underneath */
.ab-hero__panel,
.ab-cta__panel,
.home-formula,
.abt-formula,
.mex-console {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 90px 80px -70px rgba(255, 255, 255, .13),
    inset 0 -60px 70px -50px rgba(5, 9, 20, .55),
    0 3px 0 #0B1233,
    0 26px 44px -26px rgba(19, 30, 69, .60);
}

/* glass chips on the hero */
.ab-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 2px 0 rgba(5, 9, 20, .30),
    0 8px 14px -8px rgba(5, 9, 20, .55);
}

/* the stats grid inside the home hero */
.home-hero__stats {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 3px 0 rgba(5, 9, 20, .35),
    0 20px 34px -20px rgba(5, 9, 20, .70);
}

/* dark showcase cards (glass) */
.ab-stage__card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 44px 40px -38px rgba(255, 255, 255, .12),
    0 3px 0 rgba(5, 9, 20, .35),
    0 22px 38px -22px rgba(5, 9, 20, .70);
}

/* ---------- 3. Buttons: glossy keycaps ---------- */
.ab-btn { position: relative; }
.ab-btn--gold,
.sbx-cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 62%),
    var(--grad-cta);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .60),
    inset 0 -2px 0 rgba(124, 45, 18, .25),
    0 2px 0 #C2570C,
    0 10px 16px -10px rgba(249, 115, 22, .45);
}
.ab-btn--navy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 62%),
    var(--grad-primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(27, 42, 94, .25),
    0 2px 0 #2A3F8F,
    0 10px 16px -10px var(--grad-primary-glow);
}
.ab-btn--ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 2px 0 rgba(5, 9, 20, .35),
    0 10px 16px -12px rgba(5, 9, 20, .60);
}
.ab-btn--line {
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 var(--gold-soft),
    0 8px 14px -10px rgba(27, 42, 94, .22);
}
@media (hover: hover) {
  .ab-btn--gold:hover, .sbx-cta:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .60),
      inset 0 -2px 0 rgba(124, 45, 18, .25),
      0 3px 0 #C2570C,
      0 14px 20px -10px rgba(249, 115, 22, .50);
  }
  .ab-btn--navy:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .55),
      inset 0 -2px 0 rgba(27, 42, 94, .25),
      0 3px 0 #2A3F8F,
      0 14px 20px -10px var(--grad-primary-glow);
  }
}
/* press: the keycap goes down */
.ab-btn--gold:active, .sbx-cta:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 #C2570C, 0 6px 10px -6px rgba(249, 115, 22, .6); }
.ab-btn--navy:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 #2A3F8F, 0 6px 10px -6px var(--grad-primary-glow); }
.ab-btn--ghost:active, .ab-btn--line:active { transform: translateY(2px); }

/* small gradient pills and badges: a lit top edge and a short drop */
.ab-step__no,
.ab-stage__badge,
.home-hero__badge,
.home-featured__badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .50),
    0 2px 0 rgba(27, 42, 94, .18),
    0 8px 14px -6px rgba(27, 42, 94, .35);
}

/* ---------- 4. Header ---------- */
:root:not([data-theme="dark"]) .site-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #F6F5F0 100%);
  box-shadow:
    inset 0 -1px 0 #fff,
    0 12px 24px -18px rgba(27, 42, 94, .38);
}
.site-brand__mark { filter: drop-shadow(0 4px 5px rgba(27, 42, 94, .28)); }
.nav__icon, .nav__mega-icon { filter: drop-shadow(0 2px 2px rgba(27, 42, 94, .20)); }
:root:not([data-theme="dark"]) .nav__mega {
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 var(--line),
    0 26px 48px -18px rgba(27, 42, 94, .34);
}
:root:not([data-theme="dark"]) :is(.theme-toggle, .nav-toggle) {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(27, 42, 94, .05),
    0 2px 0 var(--line),
    0 8px 14px -8px rgba(27, 42, 94, .30);
}
:root:not([data-theme="dark"]) :is(.theme-toggle, .nav-toggle):active { transform: translateY(2px); }

/* ---------- 5. Dark theme: same recipe on the dark card surface ---------- */
:root[data-theme="dark"] :is(
  .ab-card, .ab-stat, .ab-panel, .ab-callout, .ab-embed,
  .ab-timeline--steps > li, .home-feature, .home-books > li,
  .abt-feature, .emp-card, .fam-card, .mex-role, .sbx-role, .sbx-stat,
  .sbx-topic, .ven-partner, .ven-web li, .blog-card,
  .ab-page [class*="ab-tint-"]) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 34px 30px -30px rgba(255, 255, 255, .05),
    0 2px 0 rgba(2, 5, 12, .60),
    0 22px 48px -20px rgba(0, 0, 0, .55);
}

/* ---------- FOOTER CREDIT BAR: light, same paper as the rest of the site (owner 7 Dec 2026:
   "footer bhi optimize karo like single website"). Colours only - text and layout unchanged. */
:root:not([data-theme="dark"]) .ab-credit {
  background: linear-gradient(180deg, #FFFFFF, #FAF9F6);
  border-top: 1px solid var(--line, #E6E2D8);
  box-shadow: inset 0 1px 0 #fff, 0 -10px 28px -22px rgba(15, 30, 61, .30);
  color: #3A4152;
}
:root:not([data-theme="dark"]) .ab-credit .ab-credit__by {
  background-image: linear-gradient(180deg, #B8862B 0%, #9A6B14 60%, #7C5410 100%);
}
:root:not([data-theme="dark"]) .ab-credit .ab-credit__by b { color: #8A5F12; }
:root:not([data-theme="dark"]) .ab-credit .ab-credit__mid { color: #5B6478; }
:root:not([data-theme="dark"]) .ab-credit .ab-credit__site { color: #1B2A5E; }
:root:not([data-theme="dark"]) .ab-credit .ab-credit__site:hover { color: #9A6B14; }

/* ---------- PARTNER / BRAND WALLS: logos in their own brand colours, never faded (owner 7 Dec 2026) ---------- */
:root:not([data-theme="dark"]) .ab-page :is(.swx-wall, .ven-wall, .ven-web) img { filter: none; opacity: 1; }
:root:not([data-theme="dark"]) .ab-page .ven-partners img { filter: none; opacity: 1; }
/* four square SVG marks collapsed to 0 x 0 inside the wall - give them a real size */
.ab-page :is(.swx-wall, .ven-partners) img:is([src*="WordPress"], [src*="ChatGPT"], [src*="Microsoft_logo"], [src*="WhatsApp"]) { width: 44px; height: 44px; }
/* ventures partner wall: 18 marks in full rows (6 per row; 2 on a phone), same as software-expert */
.ab-page .ven-partners { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 640px) { .ab-page .ven-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- closing "Tell me what you're working on" block removed from every page
   (owner 7 Dec 2026: "har page se itna footer hata do"). Hidden, not deleted - delete this rule to bring it back.
   The thin credit bar stays. */
.ab-page > .ab-cta, main > .ab-cta { display: none; }
main.ab-page { padding-bottom: clamp(28px, 4vw, 48px); }

/* ---------- /books/ : "Study Notes (PDF)" list, filled by /root/ab-notes-sync.php ---------- */
.nt-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.nt-list li { border: 1px solid var(--line, #E6E2D8); border-radius: 14px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(15, 30, 61, .05), 0 10px 22px -16px rgba(15, 30, 61, .28); transition: transform .2s ease, box-shadow .2s ease; }
.nt-list li:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(15, 30, 61, .06), 0 18px 30px -16px rgba(154, 107, 20, .40); }
.nt-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline; height: 100%; padding: 16px 18px; text-decoration: none; }
.nt-list__no { grid-row: 1 / span 2; font: 700 12px/1 Roboto, sans-serif; letter-spacing: .08em; color: #9A6B14; align-self: start; padding-top: 5px; }
.nt-list b { font: 700 16px/1.35 Poppins, sans-serif; color: #1B2A5E; }
.nt-list i { grid-column: 2; font: 600 11.5px/1.4 Roboto, sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #8A5F12; }
@media (prefers-reduced-motion: reduce) { .nt-list li { transition: none; } .nt-list li:hover { transform: none; } }

/* ---------- credit bar removed from every page (owner 7 Dec 2026, with a screenshot of the bar:
   "har page se footer bhi hata do"). Hidden, not deleted - delete this rule to bring it back. */
.ab-credit { display: none !important; }
.nt-cat { margin: 30px 0 0; font: 700 18px/1.3 Poppins, sans-serif; color: #1B2A5E; display: flex; align-items: baseline; gap: 10px; }
.nt-cat span { font: 600 11.5px/1 Roboto, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8A5F12; }
.nt-cat + .nt-list { margin-top: 14px; }

/* ---------- /books/ topics v3 (owner 7 Dec 2026, night): each subject on its own band; a card = topic name
   + three buttons in three colours (Web blue, PDF red, PPT orange) ---------- */
.nt-group { margin-top: 22px; padding: 6px 18px 20px; border-radius: 18px; border: 1px solid rgba(15, 30, 61, .07); }
.nt-group--1 { background: linear-gradient(180deg, #FFF8E6, #FFFCF3); }
.nt-group--2 { background: linear-gradient(180deg, #EAF2FF, #F6F9FF); }
.nt-group--3 { background: linear-gradient(180deg, #E9F8EF, #F6FCF8); }
.nt-group--4 { background: linear-gradient(180deg, #F3ECFF, #FAF7FF); }
.nt-group .nt-cat { margin-top: 16px; }
.nt-group .nt-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: start; padding: 16px 16px 14px; background: #fff; }
.nt-group .nt-list li:hover { transform: none; }
.nt-group .nt-list__no { grid-row: auto; padding-top: 5px; }
.nt-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; }
.nt-list a.nt-btn { display: inline-block; height: auto; padding: 7px 16px; border-radius: 999px; font: 700 12px/1 Roboto, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 rgba(0, 0, 0, .18), 0 6px 12px -6px rgba(15, 30, 61, .45); transition: transform .15s ease, filter .15s ease; }
.nt-list a.nt-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.nt-btn--web { background: linear-gradient(180deg, #3B82F6, #1D4ED8); }
.nt-btn--pdf { background: linear-gradient(180deg, #EF4444, #B91C1C); }
.nt-btn--ppt { background: linear-gradient(180deg, #F59E0B, #C2410C); }
/* topic front pages (owner's covers) on the /books/ topic cards */
.nt-group .nt-list { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.nt-cover { grid-column: 1 / -1; display: block; width: 100%; height: auto; aspect-ratio: 480 / 679; object-fit: cover; border-radius: 10px; border: 1px solid rgba(15, 30, 61, .10); box-shadow: 0 8px 18px -10px rgba(15, 30, 61, .45); }
@media (max-width: 520px) { .nt-group { padding: 4px 10px 14px; } .nt-group .nt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .nt-group .nt-list li { padding: 10px; } .nt-list b { font-size: 13.5px; } .nt-list a.nt-btn { padding: 6px 11px; font-size: 11px; } }
