/* ============================================================
   Exam Blueprints page
   - polished, animated, colorful
   - five category accents: cloud / ai / security / it / governance
   ============================================================ */

:root {
    --eb-cloud-a: #2563eb;   /* blue */
    --eb-cloud-b: #06b6d4;   /* cyan */
    --eb-ai-a: #7c3aed;      /* violet */
    --eb-ai-b: #ec4899;      /* pink */
    --eb-security-a: #dc2626;/* red */
    --eb-security-b: #f97316;/* orange */
    --eb-it-a: #059669;      /* emerald */
    --eb-it-b: #84cc16;      /* lime */
    --eb-governance-a: #b45309; /* amber-dark */
    --eb-governance-b: #fbbf24; /* gold */
    --eb-ink: #0f172a;
    --eb-muted: #475569;
    --eb-line: #e2e8f0;
    --eb-soft: #f8fafc;
}

/* ----- Nav link decoration ----- */
.glq-nav-blueprints { position: relative; }
.glq-nav-blueprints .glq-nav-spark {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    position: relative;
}
.glq-nav-blueprints::after {
    content: "NEW";
    position: absolute;
    top: -2px;
    right: -8px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fff;
    line-height: 1;
    animation: eb-tag-pulse 2.6s ease-in-out infinite;
}
@keyframes eb-tag-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236,72,153,.45); }
    50%      { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(236,72,153,0); }
}

/* ============================================================
   HERO
   ============================================================ */
.eb-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(6,182,212,.15), transparent 60%),
        linear-gradient(180deg, #0b1024 0%, #131a3a 70%, #0e1430 100%);
    color: #f8fafc;
    isolation: isolate;
}
.eb-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}
.eb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: eb-float 18s ease-in-out infinite;
}
.eb-orb-1 { width: 380px; height: 380px; background: #6366f1; top: -120px; left: -80px; animation-delay: 0s; }
.eb-orb-2 { width: 320px; height: 320px; background: #ec4899; top: 30%; right: -100px; animation-delay: -4s; }
.eb-orb-3 { width: 260px; height: 260px; background: #06b6d4; bottom: -80px; left: 25%; animation-delay: -9s; }
.eb-orb-4 { width: 200px; height: 200px; background: #f59e0b; top: 50%; left: 45%; animation-delay: -13s; opacity: 0.4; }
@keyframes eb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -20px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.eb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e0e7ff;
    margin-bottom: 1.25rem;
}
.eb-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52,211,153,0.25);
    animation: eb-blink 2s ease-in-out infinite;
}
@keyframes eb-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.eb-hero-title {
    font-family: var(--glq-serif, "Playfair Display", serif);
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.eb-grad {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 35%, #fb923c 65%, #fde047 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: eb-grad-shift 8s ease-in-out infinite;
}
@keyframes eb-grad-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.eb-hero-sub {
    font-size: 1.18rem;
    max-width: 720px;
    margin: 0 0 2rem;
    color: rgba(248,250,252,0.85);
    line-height: 1.6;
}

.eb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.2rem;
    margin: 2rem 0 2.2rem;
}
.eb-stat {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--eb-delay, 0ms);
}
.eb-stat.eb-in { opacity: 1; transform: none; }
.eb-stat-num {
    display: block;
    font-family: var(--glq-serif, "Playfair Display", serif);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.eb-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248,250,252,0.7);
}

.eb-cta-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.eb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    border: none;
}
.eb-cta-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(236,72,153,0.6);
}
.eb-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(236,72,153,0.7);
    color: #fff;
}
.eb-cta-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
}
.eb-cta-ghost:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   QUICK JUMP PILLS
   ============================================================ */
.eb-quick-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    margin-top: -2.2rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
.eb-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem 0.6rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: var(--eb-ink);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid var(--eb-line);
    box-shadow: 0 4px 14px -6px rgba(15,23,42,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.eb-pill::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p-a), var(--p-b));
}
.eb-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(15,23,42,0.18);
    color: var(--eb-ink);
    border-color: transparent;
}
.eb-pill-count {
    background: var(--eb-soft);
    color: var(--eb-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
}
.eb-pill-cloud      { --p-a: var(--eb-cloud-a);      --p-b: var(--eb-cloud-b); }
.eb-pill-ai         { --p-a: var(--eb-ai-a);         --p-b: var(--eb-ai-b); }
.eb-pill-security   { --p-a: var(--eb-security-a);   --p-b: var(--eb-security-b); }
.eb-pill-it         { --p-a: var(--eb-it-a);         --p-b: var(--eb-it-b); }
.eb-pill-governance { --p-a: var(--eb-governance-a); --p-b: var(--eb-governance-b); }

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.eb-categories { padding-top: 2rem; }
.eb-cat {
    padding: 2.6rem 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.eb-cat.eb-in { opacity: 1; transform: none; }

.eb-cat-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.eb-cat-marker {
    width: 6px;
    align-self: stretch;
    min-height: 50px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--c-a), var(--c-b));
    box-shadow: 0 0 12px var(--c-a);
}
.eb-cat-title {
    font-family: var(--glq-serif, "Playfair Display", serif);
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--eb-ink);
    letter-spacing: -0.01em;
}
.eb-cat-tagline {
    margin: 0;
    color: var(--eb-muted);
    font-size: 1.02rem;
}

.eb-cat-cloud      { --c-a: var(--eb-cloud-a);      --c-b: var(--eb-cloud-b); }
.eb-cat-ai         { --c-a: var(--eb-ai-a);         --c-b: var(--eb-ai-b); }
.eb-cat-security   { --c-a: var(--eb-security-a);   --c-b: var(--eb-security-b); }
.eb-cat-it         { --c-a: var(--eb-it-a);         --c-b: var(--eb-it-b); }
.eb-cat-governance { --c-a: var(--eb-governance-a); --c-b: var(--eb-governance-b); }

/* ============================================================
   CARDS
   ============================================================ */
.eb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.4rem;
}

.eb-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 1.4rem 1.4rem 1.3rem;
    border: 1px solid var(--eb-line);
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transition-delay: var(--eb-delay, 0ms);
    --mx: 50%;
    --my: 50%;
}
.eb-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.eb-card-link:hover, .eb-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
}
.eb-card-badge-fallback {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c-a), var(--c-b));
}
.eb-card.eb-in { opacity: 1; transform: none; }

.eb-card:hover,
.eb-card:focus-visible {
    box-shadow: 0 20px 40px -18px rgba(15,23,42,0.25), 0 8px 16px -12px rgba(15,23,42,0.15);
    transform: translateY(-6px);
    border-color: transparent;
    outline: none;
}

/* Top accent stripe */
.eb-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-a), var(--c-b));
    opacity: 0.85;
}

/* Pointer-following soft glow */
.eb-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 240px at var(--mx) var(--my), color-mix(in oklab, var(--c-a) 18%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.eb-card:hover .eb-card-glow,
.eb-card:focus-visible .eb-card-glow { opacity: 1; }

.eb-card > * { position: relative; z-index: 1; }
/* Whole-card click target sits above non-interactive content, below quiz buttons */
.eb-card > a.eb-card-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    text-decoration: none;
    color: transparent;
    background: transparent;
}
.eb-card > a.eb-card-cover:focus-visible {
    outline: 2px solid var(--c-a);
    outline-offset: 2px;
}
.eb-card > .eb-card-quizzes { z-index: 3; }

.eb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
}
.eb-card-badge {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--eb-soft);
    padding: 4px;
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.eb-card:hover .eb-card-badge,
.eb-card:focus-visible .eb-card-badge { transform: rotate(-4deg) scale(1.06); }

.eb-card-code {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in oklab, var(--c-a) 18%, white), color-mix(in oklab, var(--c-b) 18%, white));
    color: color-mix(in oklab, var(--c-a) 70%, #1e293b);
    border: 1px solid color-mix(in oklab, var(--c-a) 25%, transparent);
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eb-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
    color: var(--eb-ink);
    line-height: 1.3;
}

.eb-card-note {
    font-size: 0.92rem;
    color: var(--eb-muted);
    line-height: 1.55;
    margin: 0 0 1rem;
    /* clamp note to keep card heights tidy */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.15rem;
}
.eb-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--eb-muted);
    background: var(--eb-soft);
    padding: 0.32rem 0.65rem;
    border-radius: 8px;
}
.eb-meta svg { opacity: 0.7; }

.eb-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--c-a), var(--c-b));
    color: #fff;
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 6px 18px -10px color-mix(in oklab, var(--c-a) 80%, transparent);
}
.eb-card-btn svg { transition: transform 0.25s ease; }
.eb-card-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--c-a) 80%, transparent);
    filter: saturate(1.15);
}
.eb-card-btn:hover svg { transform: translateY(2px); }

/* ============================================================
   QUIZ BUTTONS (per card)
   ============================================================ */
.eb-card-quizzes {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--eb-line);
    position: relative;
    z-index: 3;
}
.eb-quiz-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eb-muted);
    margin-bottom: 0.55rem;
}
.eb-quiz-label svg {
    color: var(--c-a);
    animation: eb-star-twinkle 3.6s ease-in-out infinite;
}
@keyframes eb-star-twinkle {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    50% { transform: rotate(20deg) scale(1.18); opacity: 0.7; }
}
.eb-quiz-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}
.eb-quiz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.4rem;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--eb-ink);
    background: var(--eb-soft);
    border: 1px solid var(--eb-line);
    transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.eb-quiz-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-a), var(--c-b));
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 0;
}
.eb-quiz-btn > * { position: relative; z-index: 1; }
.eb-quiz-btn:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--c-a) 80%, transparent);
}
.eb-quiz-btn:hover::before { opacity: 1; }

/* Difficulty-specific tint dots */
.eb-quiz-btn::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-left: 0.35rem;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}
.eb-quiz-1::after { background: #22c55e; box-shadow: 0 0 4px #22c55e; }
.eb-quiz-2::after { background: #f59e0b; box-shadow: 0 0 4px #f59e0b; }
.eb-quiz-3::after { background: #ef4444; box-shadow: 0 0 4px #ef4444; }

/* Single-quiz variant — spans full width, prominent */
.eb-quiz-single { grid-template-columns: 1fr; }
.eb-quiz-solo {
    background: linear-gradient(135deg, color-mix(in oklab, var(--c-a) 15%, transparent), color-mix(in oklab, var(--c-b) 10%, transparent));
    border-color: color-mix(in oklab, var(--c-a) 40%, transparent);
    font-weight: 600;
    letter-spacing: 0.02em;
    gap: 0.5rem;
}
.eb-quiz-solo::after { background: var(--c-a); box-shadow: 0 0 6px var(--c-a); }
.eb-quiz-solo:hover {
    background: linear-gradient(135deg, var(--c-a), var(--c-b));
    border-color: transparent;
}

/* ============================================================
   OUTRO
   ============================================================ */
.eb-outro {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(124,58,237,.08), transparent 60%),
        var(--eb-soft);
}
.eb-outro-card {
    text-align: center;
    background: linear-gradient(135deg, #0b1024 0%, #1e1b4b 50%, #4c1d95 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 24px 60px -24px rgba(76,29,149,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    overflow: hidden;
}
.eb-outro-card.eb-in { opacity: 1; transform: none; }
.eb-outro-card::before,
.eb-outro-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}
.eb-outro-card::before {
    width: 240px; height: 240px;
    background: #ec4899;
    top: -60px; right: -40px;
}
.eb-outro-card::after {
    width: 220px; height: 220px;
    background: #06b6d4;
    bottom: -60px; left: -40px;
}
.eb-outro-card > * { position: relative; z-index: 1; }
.eb-outro-title {
    font-family: var(--glq-serif, "Playfair Display", serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 0.8rem;
    letter-spacing: -0.01em;
}
.eb-outro-sub {
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 1.8rem;
    opacity: 0.85;
    line-height: 1.6;
}
.eb-outro-cta {
    display: inline-flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .eb-hero { padding: 3.5rem 0 3rem; }
    .eb-stats { gap: 0.6rem 1.4rem; }
    .eb-stat-num { font-size: 1.85rem; }
    .eb-grid { grid-template-columns: 1fr; }
    .eb-quick-jump { margin-top: -1rem; }
    .eb-outro-card { padding: 2.2rem 1.2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eb-orb, .eb-kicker-dot, .glq-nav-blueprints::after { animation: none !important; }
    .eb-grad { animation: none !important; background-position: 0 0; }
    .eb-card, .eb-stat, .eb-cat, .eb-outro-card { opacity: 1 !important; transform: none !important; }
}
