/**
 * Category Cards — Custom CSS-only card graphics
 * Each post card on archive pages auto-gets a unique visual per category.
 * Zero images needed.
 *
 * @package AEOGodMode
 */

/* ─── Archive Grid ─── */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ─── Base Card ─── */
.cat-card {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8ee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cat-card__graphic-link {
    text-decoration: none;
    display: block;
}

.cat-card__graphic {
    height: 210px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card__body {
    padding: 20px 22px 24px;
}

.cat-card__body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.cat-card__body p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #6b6b80;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-card__link:hover {
    color: #60a5fa;
}

.cat-card__icon {
    position: relative;
    z-index: 5;
    width: 56px;
    height: 56px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cat-card__label {
    position: absolute;
    bottom: 14px;
    left: 18px;
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cat-card__graphic [class^="deco-"] {
    position: absolute;
    transition: transform 0.4s ease, opacity 0.4s ease;
}


/* ══════════════════════════════════════
   COMPARISON BRAND ICONS
   ══════════════════════════════════════ */
.cat-card__brands {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    pointer-events: none;
}

.cat-card__brand-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.cat-card__brand-icon--a {
    margin-right: 28px;
}

.cat-card__brand-icon--b {
    margin-left: 28px;
}


/* ══════════════════════════════════════
   1. AEO FUNDAMENTALS — Deep Blue / Cyan
   ══════════════════════════════════════ */
.cat--aeo-fundamentals .cat-card__graphic {
    background: linear-gradient(155deg, #0a1628 0%, #0d2847 40%, #0a1e3d 100%);
}

.cat--aeo-fundamentals .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 160, 0.1) 0%, transparent 40%);
}

.cat--aeo-fundamentals .cat-card__graphic::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(0, 200, 255, 0.12);
    border-radius: 50%;
}

.cat--aeo-fundamentals .deco-1 {
    top: 25px;
    right: 30px;
    width: 120px;
    height: 120px;
    border: 1.5px solid rgba(0, 200, 255, 0.08);
    border-radius: 50%;
}

.cat--aeo-fundamentals .deco-2 {
    top: 50px;
    right: 55px;
    width: 70px;
    height: 70px;
    border: 1.5px dashed rgba(0, 240, 160, 0.15);
    border-radius: 50%;
}

.cat--aeo-fundamentals .deco-3 {
    bottom: 30px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 200, 255, 0.06);
    transform: rotate(45deg);
    border-radius: 4px;
}

.cat--aeo-fundamentals .cat-card__label {
    background: rgba(0, 200, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.cat--aeo-fundamentals .cat-card__icon {
    color: #00d4ff;
}


/* ══════════════════════════════════════
   2. CASE STUDIES & DATA — Emerald
   ══════════════════════════════════════ */
.cat--case-studies-data .cat-card__graphic {
    background: linear-gradient(155deg, #081a12 0%, #0d2e1a 40%, #071d10 100%);
}

.cat--case-studies-data .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(0, 230, 120, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 25% 80%, rgba(52, 211, 153, 0.08) 0%, transparent 40%);
}

.cat--case-studies-data .deco-1 {
    bottom: 40px;
    right: 30px;
    width: 12px;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 230, 120, 0.3), rgba(0, 230, 120, 0.05));
    border-radius: 4px 4px 0 0;
}

.cat--case-studies-data .deco-2 {
    bottom: 40px;
    right: 50px;
    width: 12px;
    height: 55px;
    background: linear-gradient(to top, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.05));
    border-radius: 4px 4px 0 0;
}

.cat--case-studies-data .deco-3 {
    bottom: 40px;
    right: 70px;
    width: 12px;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 230, 120, 0.35), rgba(0, 230, 120, 0.05));
    border-radius: 4px 4px 0 0;
}

.cat--case-studies-data .deco-4 {
    bottom: 40px;
    right: 90px;
    width: 12px;
    height: 40px;
    background: linear-gradient(to top, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.05));
    border-radius: 4px 4px 0 0;
}

.cat--case-studies-data .deco-5 {
    top: 30px;
    left: 20px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 230, 120, 0.4), transparent);
    transform: rotate(-15deg);
}

.cat--case-studies-data .cat-card__label {
    background: rgba(0, 230, 120, 0.15);
    color: #00e678;
    border: 1px solid rgba(0, 230, 120, 0.2);
}

.cat--case-studies-data .cat-card__icon {
    color: #00e678;
}


/* ══════════════════════════════════════
   3. COMPARISONS — Amber / Orange
   ══════════════════════════════════════ */
.cat--comparisons .cat-card__graphic {
    background: linear-gradient(155deg, #1a1208 0%, #2e1e0d 40%, #1d1407 100%);
}

.cat--comparisons .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 170, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 120, 0, 0.08) 0%, transparent 40%);
}

.cat--comparisons .deco-1 {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 170, 0, 0.3), transparent);
}

.cat--comparisons .deco-2 {
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cat--comparisons .deco-3 {
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 120, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cat--comparisons .deco-vs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: rgba(255, 170, 0, 0.18);
    letter-spacing: 6px;
    z-index: 5;
}

.cat--comparisons .deco-4 {
    bottom: 45px;
    left: 30px;
    width: 16px;
    height: 16px;
    background: rgba(255, 170, 0, 0.08);
    transform: rotate(45deg);
    border-radius: 2px;
}

.cat--comparisons .deco-5 {
    bottom: 50px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: rgba(255, 120, 0, 0.06);
    transform: rotate(45deg);
    border-radius: 2px;
}

.cat--comparisons .cat-card__label {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.2);
}


/* ══════════════════════════════════════
   4. CONTENT STRATEGY — Violet
   ══════════════════════════════════════ */
.cat--content-strategy .cat-card__graphic {
    background: linear-gradient(155deg, #150a28 0%, #1e0d3e 40%, #140a25 100%);
}

.cat--content-strategy .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 35%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 65%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.cat--content-strategy .deco-1 {
    top: 20px;
    right: 0;
    width: 200px;
    height: 120px;
    border-top: 1.5px solid rgba(168, 85, 247, 0.12);
    border-right: 1.5px solid rgba(168, 85, 247, 0.12);
    border-radius: 0 60px 0 0;
}

.cat--content-strategy .deco-2 {
    top: 45px;
    right: 25px;
    width: 150px;
    height: 90px;
    border-top: 1.5px solid rgba(139, 92, 246, 0.1);
    border-right: 1.5px solid rgba(139, 92, 246, 0.1);
    border-radius: 0 40px 0 0;
}

.cat--content-strategy .deco-3 {
    bottom: 40px;
    left: 20px;
    width: 25px;
    height: 25px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
}

.cat--content-strategy .deco-4 {
    bottom: 55px;
    left: 55px;
    width: 15px;
    height: 15px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 50%;
}

.cat--content-strategy .cat-card__label {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.cat--content-strategy .cat-card__icon {
    color: #a855f7;
}


/* ══════════════════════════════════════
   5. E-E-A-T & AUTHORITY — Gold
   ══════════════════════════════════════ */
.cat--eeat-authority .cat-card__graphic {
    background: linear-gradient(155deg, #1a1505 0%, #2a2008 40%, #1a1505 100%);
}

.cat--eeat-authority .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(250, 204, 21, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(234, 179, 8, 0.06) 0%, transparent 40%);
}

.cat--eeat-authority .deco-1 {
    top: 20px;
    right: 30px;
    width: 80px;
    height: 95px;
    border: 2px solid rgba(250, 204, 21, 0.12);
    border-radius: 8px 8px 40px 40px;
}

.cat--eeat-authority .deco-2 {
    top: 35px;
    right: 45px;
    width: 50px;
    height: 65px;
    border: 1.5px solid rgba(234, 179, 8, 0.08);
    border-radius: 6px 6px 25px 25px;
}

.cat--eeat-authority .deco-3 {
    top: 40px;
    left: 30px;
    width: 8px;
    height: 8px;
    background: rgba(250, 204, 21, 0.25);
    border-radius: 50%;
    box-shadow: 20px 15px 0 rgba(250, 204, 21, 0.15), 40px 5px 0 rgba(250, 204, 21, 0.2), 12px 35px 0 rgba(250, 204, 21, 0.1);
}

.cat--eeat-authority .cat-card__label {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.cat--eeat-authority .cat-card__icon {
    color: #facc15;
}


/* ══════════════════════════════════════
   6. FUNDAMENTALS — Teal
   ══════════════════════════════════════ */
.cat--fundamentals .cat-card__graphic {
    background: linear-gradient(155deg, #071a1a 0%, #0d2d2d 40%, #081e1e 100%);
}

.cat--fundamentals .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 65% 30%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 75%, rgba(45, 212, 191, 0.08) 0%, transparent 40%);
}

.cat--fundamentals .deco-1 {
    bottom: 35px;
    right: 25px;
    width: 45px;
    height: 35px;
    background: rgba(20, 184, 166, 0.1);
    border: 1.5px solid rgba(20, 184, 166, 0.15);
    border-radius: 6px;
}

.cat--fundamentals .deco-2 {
    bottom: 60px;
    right: 45px;
    width: 45px;
    height: 35px;
    background: rgba(45, 212, 191, 0.08);
    border: 1.5px solid rgba(45, 212, 191, 0.12);
    border-radius: 6px;
}

.cat--fundamentals .deco-3 {
    bottom: 85px;
    right: 35px;
    width: 45px;
    height: 35px;
    background: rgba(20, 184, 166, 0.06);
    border: 1.5px solid rgba(20, 184, 166, 0.1);
    border-radius: 6px;
}

.cat--fundamentals .deco-4 {
    top: 25px;
    left: 25px;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, rgba(20, 184, 166, 0.3), transparent);
}

.cat--fundamentals .deco-5 {
    top: 35px;
    left: 25px;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, rgba(20, 184, 166, 0.2), transparent);
}

.cat--fundamentals .cat-card__label {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.cat--fundamentals .cat-card__icon {
    color: #14b8a6;
}


/* ══════════════════════════════════════
   7. LLMS.TXT — Neon Green / Matrix
   ══════════════════════════════════════ */
.cat--llms-txt .cat-card__graphic {
    background: linear-gradient(155deg, #050f05 0%, #0a1f0a 40%, #071507 100%);
}

.cat--llms-txt .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.08) 0%, transparent 35%);
}

.cat--llms-txt .deco-terminal {
    position: absolute;
    top: 22px;
    left: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(34, 197, 94, 0.25);
    white-space: pre;
    line-height: 1.6;
}

.cat--llms-txt .deco-cursor {
    position: absolute;
    top: 22px;
    left: 92px;
    width: 7px;
    height: 13px;
    background: rgba(34, 197, 94, 0.4);
    animation: catcard-blink 1s infinite;
}

@keyframes catcard-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.cat--llms-txt .deco-1 {
    bottom: 35px;
    right: 20px;
    width: 4px;
    height: 4px;
    background: rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    box-shadow:
        12px 0 0 rgba(34, 197, 94, 0.2),
        24px 0 0 rgba(34, 197, 94, 0.15),
        36px 0 0 rgba(34, 197, 94, 0.1),
        0 -12px 0 rgba(34, 197, 94, 0.2),
        12px -12px 0 rgba(34, 197, 94, 0.15),
        24px -12px 0 rgba(34, 197, 94, 0.1),
        36px -12px 0 rgba(34, 197, 94, 0.08),
        0 -24px 0 rgba(34, 197, 94, 0.15),
        12px -24px 0 rgba(34, 197, 94, 0.1),
        24px -24px 0 rgba(34, 197, 94, 0.08);
}

.cat--llms-txt .cat-card__label {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.cat--llms-txt .cat-card__icon {
    color: #22c55e;
}


/* ══════════════════════════════════════
   8. LOCAL BUSINESS AEO — Coral
   ══════════════════════════════════════ */
.cat--local-business-aeo .cat-card__graphic {
    background: linear-gradient(155deg, #1a0a0a 0%, #2e1212 40%, #1d0b0b 100%);
}

.cat--local-business-aeo .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(248, 113, 113, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 25% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 40%);
}

.cat--local-business-aeo .deco-1 {
    top: 25px;
    right: 35px;
    width: 30px;
    height: 42px;
    border: 2px solid rgba(248, 113, 113, 0.2);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.cat--local-business-aeo .deco-2 {
    top: 33px;
    right: 43px;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(248, 113, 113, 0.15);
    border-radius: 50%;
    transform: rotate(-45deg);
}

.cat--local-business-aeo .deco-3 {
    top: 60px;
    right: 20px;
    width: 130px;
    height: 130px;
    border: 1px dashed rgba(248, 113, 113, 0.08);
    border-radius: 50%;
}

.cat--local-business-aeo .deco-4 {
    top: 85px;
    right: 45px;
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(248, 113, 113, 0.06);
    border-radius: 50%;
}

.cat--local-business-aeo .deco-5 {
    bottom: 50px;
    left: 20px;
    width: 80px;
    height: 1.5px;
    background: rgba(248, 113, 113, 0.12);
}

.cat--local-business-aeo .deco-6 {
    bottom: 65px;
    left: 20px;
    width: 50px;
    height: 1.5px;
    background: rgba(248, 113, 113, 0.08);
    transform: rotate(30deg);
    transform-origin: left;
}

.cat--local-business-aeo .cat-card__label {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.cat--local-business-aeo .cat-card__icon {
    color: #f87171;
}


/* ══════════════════════════════════════
   9. MEASURING AEO — Indigo
   ══════════════════════════════════════ */
.cat--measuring-aeo .cat-card__graphic {
    background: linear-gradient(155deg, #0c0a28 0%, #15103e 40%, #0e0b2a 100%);
}

.cat--measuring-aeo .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(129, 140, 248, 0.08) 0%, transparent 40%);
}

.cat--measuring-aeo .deco-1 {
    top: 25px;
    right: 20px;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(99, 102, 241, 0.12);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.cat--measuring-aeo .deco-2 {
    top: 40px;
    right: 35px;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(129, 140, 248, 0.1);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.cat--measuring-aeo .deco-3 {
    top: 72px;
    right: 60px;
    width: 35px;
    height: 2px;
    background: rgba(99, 102, 241, 0.35);
    transform: rotate(-35deg);
    transform-origin: right center;
    border-radius: 2px;
}

.cat--measuring-aeo .deco-4 {
    bottom: 40px;
    left: 25px;
    width: 6px;
    height: 6px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    box-shadow: 14px 0 0 rgba(99, 102, 241, 0.25), 28px 0 0 rgba(99, 102, 241, 0.2), 42px 0 0 rgba(99, 102, 241, 0.15), 56px 0 0 rgba(99, 102, 241, 0.1);
}

.cat--measuring-aeo .cat-card__label {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cat--measuring-aeo .cat-card__icon {
    color: #818cf8;
}


/* ══════════════════════════════════════
   10. PLATFORM-SPECIFIC — Magenta
   ══════════════════════════════════════ */
.cat--platform-specific .cat-card__graphic {
    background: linear-gradient(155deg, #1a0815 0%, #2e0d25 40%, #1d0a18 100%);
}

.cat--platform-specific .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 60% 35%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(219, 39, 119, 0.08) 0%, transparent 40%);
}

.cat--platform-specific .deco-1 {
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(236, 72, 153, 0.08);
    border: 1.5px solid rgba(236, 72, 153, 0.15);
    border-radius: 8px;
}

.cat--platform-specific .deco-2 {
    top: 25px;
    right: 80px;
    width: 50px;
    height: 50px;
    background: rgba(219, 39, 119, 0.06);
    border: 1.5px solid rgba(219, 39, 119, 0.12);
    border-radius: 8px;
}

.cat--platform-specific .deco-3 {
    top: 80px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(236, 72, 153, 0.06);
    border: 1.5px solid rgba(236, 72, 153, 0.1);
    border-radius: 8px;
}

.cat--platform-specific .deco-4 {
    top: 50px;
    right: 73px;
    width: 10px;
    height: 10px;
    background: rgba(236, 72, 153, 0.25);
    border-radius: 50%;
}

.cat--platform-specific .cat-card__label {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.cat--platform-specific .cat-card__icon {
    color: #ec4899;
}


/* ══════════════════════════════════════
   11. SCHEMA & STRUCTURED DATA — Cyan
   ══════════════════════════════════════ */
.cat--schema-structured-data .cat-card__graphic {
    background: linear-gradient(155deg, #060f1a 0%, #0a1e35 40%, #081828 100%);
}

.cat--schema-structured-data .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 55% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 75%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
}

.cat--schema-structured-data .deco-json {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(6, 182, 212, 0.12);
    line-height: 1;
}

.cat--schema-structured-data .deco-1 {
    top: 40px;
    left: 20px;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.05));
}

.cat--schema-structured-data .deco-2 {
    top: 55px;
    left: 20px;
    width: 25px;
    height: 1.5px;
    background: rgba(6, 182, 212, 0.2);
}

.cat--schema-structured-data .deco-3 {
    top: 75px;
    left: 20px;
    width: 25px;
    height: 1.5px;
    background: rgba(6, 182, 212, 0.15);
}

.cat--schema-structured-data .deco-4 {
    top: 95px;
    left: 20px;
    width: 25px;
    height: 1.5px;
    background: rgba(6, 182, 212, 0.1);
}

.cat--schema-structured-data .deco-5 {
    top: 52px;
    left: 48px;
    width: 5px;
    height: 5px;
    background: rgba(6, 182, 212, 0.35);
    border-radius: 50%;
    box-shadow: 0 20px 0 rgba(6, 182, 212, 0.25), 0 40px 0 rgba(6, 182, 212, 0.15);
}

.cat--schema-structured-data .cat-card__label {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.cat--schema-structured-data .cat-card__icon {
    color: #06b6d4;
}


/* ══════════════════════════════════════
   12. TECHNICAL AEO — Silver / Steel
   ══════════════════════════════════════ */
.cat--technical-aeo .cat-card__graphic {
    background: linear-gradient(155deg, #101015 0%, #1a1a22 40%, #121218 100%);
}

.cat--technical-aeo .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 45% 35%, rgba(161, 161, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(113, 113, 122, 0.06) 0%, transparent 40%);
}

.cat--technical-aeo .deco-1 {
    top: 20px;
    right: 25px;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(161, 161, 170, 0.1);
    border-radius: 50%;
}

.cat--technical-aeo .deco-2 {
    top: 40px;
    right: 45px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(161, 161, 170, 0.12);
    border-radius: 50%;
}

.cat--technical-aeo .deco-3 {
    top: 16px;
    right: 58px;
    width: 8px;
    height: 12px;
    background: rgba(161, 161, 170, 0.12);
    border-radius: 2px;
}

.cat--technical-aeo .deco-4 {
    top: 58px;
    right: 16px;
    width: 12px;
    height: 8px;
    background: rgba(161, 161, 170, 0.12);
    border-radius: 2px;
}

.cat--technical-aeo .deco-5 {
    top: 94px;
    right: 58px;
    width: 8px;
    height: 12px;
    background: rgba(161, 161, 170, 0.12);
    border-radius: 2px;
}

.cat--technical-aeo .deco-6 {
    bottom: 50px;
    left: 20px;
    width: 70px;
    height: 1.5px;
    background: rgba(161, 161, 170, 0.15);
}

.cat--technical-aeo .deco-7 {
    bottom: 50px;
    left: 90px;
    width: 1.5px;
    height: 25px;
    background: rgba(161, 161, 170, 0.1);
}

.cat--technical-aeo .cat-card__label {
    background: rgba(161, 161, 170, 0.12);
    color: #a1a1aa;
    border: 1px solid rgba(161, 161, 170, 0.15);
}

.cat--technical-aeo .cat-card__icon {
    color: #a1a1aa;
}


/* ══════════════════════════════════════
   13. WORDPRESS-SPECIFIC — WP Blue
   ══════════════════════════════════════ */
.cat--wordpress-specific .cat-card__graphic {
    background: linear-gradient(155deg, #0a0f1a 0%, #0e1a30 40%, #0b1220 100%);
}

.cat--wordpress-specific .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 55% 40%, rgba(56, 139, 253, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
}

.cat--wordpress-specific .deco-w {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(56, 139, 253, 0.06);
    line-height: 1;
}

.cat--wordpress-specific .deco-1 {
    top: 30px;
    left: 20px;
    width: 90px;
    height: 90px;
    border: 1.5px solid rgba(56, 139, 253, 0.1);
    border-radius: 50%;
}

.cat--wordpress-specific .deco-2 {
    top: 50px;
    left: 35px;
    width: 18px;
    height: 18px;
    background: rgba(56, 139, 253, 0.12);
    border-radius: 4px;
    transform: rotate(15deg);
}

.cat--wordpress-specific .deco-3 {
    top: 80px;
    left: 55px;
    width: 14px;
    height: 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    transform: rotate(-10deg);
}

.cat--wordpress-specific .cat-card__label {
    background: rgba(56, 139, 253, 0.15);
    color: #388bfd;
    border: 1px solid rgba(56, 139, 253, 0.2);
}

.cat--wordpress-specific .cat-card__icon {
    color: #388bfd;
}


/* ═══════════════════════════════════
   FALLBACK — unconfigured categories
   ═══════════════════════════════════ */
.cat--default .cat-card__graphic,
.cat-card:not([class*="cat--"]) .cat-card__graphic {
    background: linear-gradient(155deg, #111118 0%, #1a1a25 40%, #131320 100%);
}

.cat--default .cat-card__graphic::before,
.cat-card:not([class*="cat--"]) .cat-card__graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(120, 120, 140, 0.1) 0%, transparent 50%);
}

.cat--default .cat-card__label,
.cat-card:not([class*="cat--"]) .cat-card__label {
    background: rgba(120, 120, 140, 0.15);
    color: #9898a8;
    border: 1px solid rgba(120, 120, 140, 0.2);
}

.cat--default .cat-card__icon,
.cat-card:not([class*="cat--"]) .cat-card__icon {
    color: #9898a8;
}


/* ══════════════════════════════════════
   HOVER ANIMATIONS — GPU-accelerated
   (transform + opacity only, no reflow)
   ══════════════════════════════════════ */

/* Icon hover — universal subtle scale */
.cat-card:hover .cat-card__icon {
    transform: scale(1.1);
}

/* 1. AEO Fundamentals — circles pulse outward */
.cat-card.cat--aeo-fundamentals:hover .deco-1 {
    transform: scale(1.15);
    opacity: 0.6;
}

.cat-card.cat--aeo-fundamentals:hover .deco-2 {
    transform: scale(1.2) rotate(15deg);
    opacity: 0.8;
}

.cat-card.cat--aeo-fundamentals:hover .deco-3 {
    transform: rotate(60deg) scale(1.2);
    opacity: 0.7;
}

.cat-card.cat--aeo-fundamentals:hover .cat-card__graphic::after {
    transform: scale(1.1);
}

/* 2. Case Studies — bars grow taller */
.cat-card.cat--case-studies-data:hover .deco-1 {
    transform: scaleY(1.25);
    opacity: 0.9;
}

.cat-card.cat--case-studies-data:hover .deco-2 {
    transform: scaleY(1.35);
    opacity: 0.85;
}

.cat-card.cat--case-studies-data:hover .deco-3 {
    transform: scaleY(1.2);
    opacity: 0.95;
}

.cat-card.cat--case-studies-data:hover .deco-4 {
    transform: scaleY(1.4);
    opacity: 0.8;
}

.cat-card.cat--case-studies-data:hover .deco-5 {
    transform: rotate(-15deg) scaleX(1.3);
    opacity: 0.8;
}

/* 3. Comparisons — VS scales up, diamonds spin */
.cat-card.cat--comparisons:hover .deco-vs {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    color: rgba(255, 170, 0, 0.3);
}

.cat-card.cat--comparisons:hover .deco-2 {
    transform: scale(1.15);
    opacity: 0.7;
}

.cat-card.cat--comparisons:hover .deco-3 {
    transform: scale(1.15);
    opacity: 0.7;
}

.cat-card.cat--comparisons:hover .deco-4 {
    transform: rotate(90deg) scale(1.2);
    opacity: 0.6;
}

.cat-card.cat--comparisons:hover .deco-5 {
    transform: rotate(90deg) scale(1.2);
    opacity: 0.5;
}

.cat-card.cat--comparisons:hover .cat-card__brands {
    transform: scale(1.05);
}

/* 4. Content Strategy — curves shift inward */
.cat-card.cat--content-strategy:hover .deco-1 {
    transform: translate(-8px, 4px);
    opacity: 0.8;
}

.cat-card.cat--content-strategy:hover .deco-2 {
    transform: translate(-6px, 3px);
    opacity: 0.7;
}

.cat-card.cat--content-strategy:hover .deco-3 {
    transform: scale(1.4);
    opacity: 0.7;
}

.cat-card.cat--content-strategy:hover .deco-4 {
    transform: scale(1.3);
    opacity: 0.6;
}

/* 5. E-E-A-T — shield glows, stars brighten */
.cat-card.cat--eeat-authority:hover .deco-1 {
    transform: scale(1.08);
    opacity: 0.7;
}

.cat-card.cat--eeat-authority:hover .deco-2 {
    transform: scale(1.1);
    opacity: 0.6;
}

.cat-card.cat--eeat-authority:hover .deco-3 {
    transform: scale(1.3);
    opacity: 0.9;
}

.cat-card.cat--eeat-authority:hover .cat-card__icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.4));
}

/* 6. Fundamentals — cards fan outward */
.cat-card.cat--fundamentals:hover .deco-1 {
    transform: translate(5px, -3px);
    opacity: 0.7;
}

.cat-card.cat--fundamentals:hover .deco-2 {
    transform: translate(3px, -5px);
    opacity: 0.65;
}

.cat-card.cat--fundamentals:hover .deco-3 {
    transform: translate(0, -7px);
    opacity: 0.6;
}

.cat-card.cat--fundamentals:hover .deco-4 {
    transform: scaleX(1.4);
    opacity: 0.7;
}

.cat-card.cat--fundamentals:hover .deco-5 {
    transform: scaleX(1.3);
    opacity: 0.6;
}

/* 7. llms.txt — terminal text brightens, dots pulse */
.cat-card.cat--llms-txt:hover .deco-terminal {
    color: rgba(34, 197, 94, 0.45);
}

.cat-card.cat--llms-txt:hover .deco-cursor {
    opacity: 1;
    transform: scaleY(1.2);
}

.cat-card.cat--llms-txt:hover .deco-1 {
    transform: scale(1.15);
    opacity: 0.9;
}

.cat-card.cat--llms-txt:hover .cat-card__icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.3));
}

/* 8. Local Business — pin bounces, rings expand */
.cat-card.cat--local-business-aeo:hover .deco-1 {
    transform: rotate(-45deg) translateY(-4px);
    opacity: 0.8;
}

.cat-card.cat--local-business-aeo:hover .deco-2 {
    transform: rotate(-45deg) scale(1.2);
    opacity: 0.7;
}

.cat-card.cat--local-business-aeo:hover .deco-3 {
    transform: scale(1.1);
    opacity: 0.5;
}

.cat-card.cat--local-business-aeo:hover .deco-4 {
    transform: scale(1.15);
    opacity: 0.45;
}

.cat-card.cat--local-business-aeo:hover .deco-5 {
    transform: scaleX(1.2);
    opacity: 0.6;
}

.cat-card.cat--local-business-aeo:hover .deco-6 {
    transform: rotate(30deg) scaleX(1.3);
    opacity: 0.5;
}

/* 9. Measuring AEO — needle sweeps, dots brighten */
.cat-card.cat--measuring-aeo:hover .deco-1 {
    transform: rotate(8deg);
    opacity: 0.6;
}

.cat-card.cat--measuring-aeo:hover .deco-2 {
    transform: rotate(8deg);
    opacity: 0.55;
}

.cat-card.cat--measuring-aeo:hover .deco-3 {
    transform: rotate(-50deg);
    opacity: 0.9;
}

.cat-card.cat--measuring-aeo:hover .deco-4 {
    transform: scale(1.3);
    opacity: 0.8;
}

/* 10. Platform-Specific — tiles shuffle */
.cat-card.cat--platform-specific:hover .deco-1 {
    transform: translate(3px, -3px) rotate(4deg);
    opacity: 0.7;
}

.cat-card.cat--platform-specific:hover .deco-2 {
    transform: translate(-3px, 2px) rotate(-3deg);
    opacity: 0.65;
}

.cat-card.cat--platform-specific:hover .deco-3 {
    transform: translate(2px, 3px) rotate(2deg);
    opacity: 0.6;
}

.cat-card.cat--platform-specific:hover .deco-4 {
    transform: scale(1.3);
    opacity: 0.7;
}

/* 11. Schema — JSON brackets pulse, tree dots shift */
.cat-card.cat--schema-structured-data:hover .deco-json {
    transform: scale(1.12);
    opacity: 0.8;
}

.cat-card.cat--schema-structured-data:hover .deco-1 {
    transform: scaleY(1.15);
    opacity: 0.7;
}

.cat-card.cat--schema-structured-data:hover .deco-2 {
    transform: translateX(4px);
    opacity: 0.7;
}

.cat-card.cat--schema-structured-data:hover .deco-3 {
    transform: translateX(4px);
    opacity: 0.65;
}

.cat-card.cat--schema-structured-data:hover .deco-4 {
    transform: translateX(4px);
    opacity: 0.6;
}

.cat-card.cat--schema-structured-data:hover .deco-5 {
    transform: scale(1.3);
    opacity: 0.8;
}

/* 12. Technical AEO — gear rotates, connectors extend */
.cat-card.cat--technical-aeo:hover .deco-1 {
    transform: rotate(20deg);
    opacity: 0.5;
}

.cat-card.cat--technical-aeo:hover .deco-2 {
    transform: rotate(20deg);
    opacity: 0.55;
}

.cat-card.cat--technical-aeo:hover .deco-3 {
    transform: translateY(-3px);
    opacity: 0.6;
}

.cat-card.cat--technical-aeo:hover .deco-4 {
    transform: translateX(3px);
    opacity: 0.6;
}

.cat-card.cat--technical-aeo:hover .deco-5 {
    transform: translateY(3px);
    opacity: 0.6;
}

.cat-card.cat--technical-aeo:hover .deco-6 {
    transform: scaleX(1.3);
    opacity: 0.6;
}

.cat-card.cat--technical-aeo:hover .cat-card__icon {
    transform: rotate(30deg) scale(1.1);
}

/* 13. WordPress — W scales up, orbiting shapes shift */
.cat-card.cat--wordpress-specific:hover .deco-w {
    transform: scale(1.15);
    opacity: 0.5;
}

.cat-card.cat--wordpress-specific:hover .deco-1 {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.5;
}

.cat-card.cat--wordpress-specific:hover .deco-2 {
    transform: rotate(25deg) scale(1.2);
    opacity: 0.6;
}

.cat-card.cat--wordpress-specific:hover .deco-3 {
    transform: rotate(-20deg) scale(1.15);
    opacity: 0.55;
}

/* Transition for comparison brands container */
.cat-card__brands {
    transition: transform 0.4s ease;
}

/* Transition for deco elements that use color changes */
.cat--comparisons .deco-vs,
.cat--llms-txt .deco-terminal {
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.4s ease;
}

/* Transition for ::after pseudo on AEO Fundamentals */
.cat--aeo-fundamentals .cat-card__graphic::after {
    transition: transform 0.4s ease;
}

/* Transition for deco-json and deco-w text elements */
.cat--schema-structured-data .deco-json,
.cat--wordpress-specific .deco-w {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .cat-card__graphic [class^="deco-"],
    .cat-card__icon,
    .cat-card__brands,
    .cat-card__graphic::after {
        transition: none !important;
    }
}


/* ─── Responsive ─── */
@media (max-width: 640px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cat-card__graphic {
        height: 180px;
    }
}