/* ========================================
   SETUP GUIDES HUB
   Hub clair — guides regroupés par catégorie
   ======================================== */

.guides_hub {
    --guides-ink: #2c123b;
    --guides-ink-soft: #48265c;
    --guides-muted: #666a81;
    --guides-line: rgba(44, 18, 59, 0.08);
    --guides-ease: cubic-bezier(0.22, 1, 0.36, 1);

    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 28px 0 12px;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

/* ---------- Hero ---------- */

.guides_hub_hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 720px;
}

.guides_hub_eyebrow {
    display: inline-block;
    margin: 0;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 49, 210, 0.08);
    color: #ff31d2;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guides_hub_title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(2.15rem, 4.2vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--guides-ink);
}

.guides_hub_lede {
    margin: 0;
    max-width: 38rem;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.55;
    color: var(--guides-muted);
}

/* ---------- Categories ---------- */

.guides_hub_categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.guides_hub_category {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.guides_hub_category_title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--guides-ink-soft);
}

/* ---------- Cards row ---------- */

.guides_hub_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 16px 0 0;
    list-style: none;
    overflow: visible;
}

.guides_hub_list:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(50% - 9px);
}

.guides_hub_card {
    /* Brand defaults — pink #FF31D2 */
    --card-accent: 255, 49, 210;
    --card-fill: 252, 230, 244; /* #fce6f4 */
    --card-glow: 0.32;

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 100%;
    padding: 28px 24px;
    border-radius: 22px;
    border: 1px solid rgba(var(--card-accent), 0.2);
    background:
        radial-gradient(
            ellipse 95% 80% at 8% 108%,
            rgba(var(--card-accent), var(--card-glow)) 0%,
            rgba(var(--card-accent), 0.12) 38%,
            transparent 68%
        ),
        linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(var(--card-fill), 0.72) 38%,
            rgba(var(--card-fill), 0.95) 100%
        );
    box-shadow:
        0 8px 28px rgba(44, 18, 59, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition:
        transform 0.4s var(--guides-ease),
        box-shadow 0.4s ease,
        border-color 0.3s ease,
        --card-glow 0.35s ease;
}

/* Brand accents: pink / cyan / violet (site palette) */
.guides_hub_card--pink {
    --card-accent: 255, 49, 210; /* #FF31D2 */
    --card-fill: 252, 230, 244; /* #fce6f4 */
}

.guides_hub_card--cyan {
    --card-accent: 99, 234, 252; /* #63eafc */
    --card-fill: 230, 240, 252; /* #e6f0fc */
}

.guides_hub_card--violet {
    --card-accent: 72, 38, 92; /* #48265c */
    --card-fill: 240, 230, 246; /* #f0e6f6 */
}

/* Pastille plateformes (Twitch / YouTube / Kick) — même rendu que les headers catégories */
.guides_hub_card_platforms {
    --platforms-x: -8%;
    --platforms-y: -42%;
    --platforms-rot: -7deg;
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background-color: #ff31d2;
    transform: translate(var(--platforms-x), var(--platforms-y)) rotate(var(--platforms-rot)) scale(1);
    box-shadow: 0 2px 8px rgba(255, 49, 210, 0.28);
    pointer-events: none;
    line-height: 0;
    transform-origin: center center;
    animation: guides_hub_platforms_pop 4.5s ease-in-out infinite;
}

.guides_hub_card_platforms_icon {
    display: block;
    height: 17px;
    width: auto;
    object-fit: contain;
}

.guides_hub_card_platforms_icon--youtube {
    height: 14px;
}

@keyframes guides_hub_platforms_pop {
    0%,
    86%,
    100% {
        transform: translate(var(--platforms-x), var(--platforms-y)) rotate(var(--platforms-rot)) scale(1);
    }
    90% {
        transform: translate(var(--platforms-x), var(--platforms-y)) rotate(var(--platforms-rot)) scale(1.14);
    }
    94% {
        transform: translate(var(--platforms-x), var(--platforms-y)) rotate(var(--platforms-rot)) scale(0.96);
    }
}

.guides_hub_card:hover {
    --card-glow: 0.42;
    transform: translateY(-3px);
    border-color: rgba(var(--card-accent), 0.34);
    box-shadow:
        0 16px 40px rgba(44, 18, 59, 0.09),
        0 0 0 1px rgba(var(--card-accent), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-decoration: none;
    color: inherit;
}

.guides_hub_card:focus-visible {
    outline: 3px solid rgba(99, 234, 252, 0.55);
    outline-offset: 4px;
}

.guides_hub_card_title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--guides-ink);
}

.guides_hub_card_body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.guides_hub_card_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guides_hub_card_label {
    margin: 0;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--guides-muted);
}

.guides_hub_card_chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guides_hub_card_chip,
.guides_hub_card_note {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--guides-line);
    background: rgba(44, 18, 59, 0.03);
    color: var(--guides-ink-soft);
    font-weight: 500;
    font-size: 0.82rem;
    line-height: 1.2;
    width: fit-content;
}

.guides_hub_card_cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
    padding: 11px 20px;
    border-radius: 50px;
    background: var(--guides-ink);
    border: 2px solid var(--guides-ink);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(44, 18, 59, 0.18);
    transition:
        transform 0.35s var(--guides-ease),
        box-shadow 0.35s ease;
}

.guides_hub_card_cta span {
    display: inline-block;
    transition: transform 0.35s var(--guides-ease);
}

.guides_hub_card:hover .guides_hub_card_cta {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(44, 18, 59, 0.26);
}

.guides_hub_card:hover .guides_hub_card_cta span {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .guides_hub_card,
    .guides_hub_card_cta,
    .guides_hub_card_cta span {
        transition: none;
    }

    .guides_hub_card_platforms {
        animation: none;
    }

    .guides_hub_card:hover,
    .guides_hub_card:hover .guides_hub_card_cta,
    .guides_hub_card:hover .guides_hub_card_cta span {
        transform: none;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 980px) {
    .guides_hub_categories {
        gap: 32px;
    }

    .guides_hub_list,
    .guides_hub_list:has(> :only-child) {
        grid-template-columns: 1fr;
        max-width: none;
        gap: 14px;
    }

    .guides_hub_card {
        padding: 24px 22px;
    }

    .guides_hub_card_platforms {
        --platforms-x: -6%;
        --platforms-y: -38%;
        right: 12px;
        gap: 7px;
        padding: 6px 10px;
    }

    .guides_hub_card_platforms_icon {
        height: 15px;
    }

    .guides_hub_card_platforms_icon--youtube {
        height: 12px;
    }
}

@media (max-width: 720px) {
    .guides_hub {
        gap: 36px;
        padding-top: 12px;
    }

    .guides_hub_hero {
        gap: 14px;
    }

    .guides_hub_categories {
        gap: 28px;
    }

    .guides_hub_list {
        gap: 22px;
    }
}
