/* =============================================================================
   NEW HOMEPAGE — hp__ namespace
   6 sections: Brand Hero, Featured Story, Latest, Categories, Content Types, CTA
   ============================================================================= */

/* ── Section wrapper ── */
.hp-section {
    padding: 48px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) { .hp-section { padding: 56px 32px; } }
@media (min-width: 1280px) { .hp-section { padding: 64px 40px; } }

.hp-section__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.hp-section__hd-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-section__bar {
    display: inline-block;
    width: 3px;
    height: 20px;
    background: var(--clr-brand);
    border-radius: 999px;
    flex-shrink: 0;
}

.hp-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: var(--clr-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.hp-section__more {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-brand);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.hp-section__more:hover { opacity: 0.75; }

.hp-empty {
    font-size: 0.9375rem;
    color: var(--clr-text-dim);
    text-align: center;
    padding: 40px 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 1 — BRAND HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hp-brand-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* Break out of geekly-main padding */
    margin-top: -24px;
    margin-left: -16px;
    margin-right: -16px;
}

@media (min-width: 1280px) {
    .hp-brand-hero {
        margin-top: -32px;
        margin-left: -40px;
        margin-right: -40px;
    }
}

@media (min-width: 1280px) {
    .hp-brand-hero {
        margin-top: -40px;
        margin-left: -48px;
        margin-right: -48px;
    }
}

/* Background */
.hp-brand-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--clr-bg-base);
}

.hp-brand-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 60% 40%, rgba(230,57,70,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 60% 40%, rgba(230,57,70,0.28) 0%, transparent 35%),
        radial-gradient(ellipse 140% 120% at 50% 50%, rgba(230,57,70,0.05) 0%, transparent 100%);
    animation: geekly-glow-pulse 6s ease-in-out infinite;
}

.hp-brand-hero__scanlines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.05) 3px,
        rgba(0,0,0,0.05) 4px
    );
    pointer-events: none;
}

/* Brand accent bar */
.hp-brand-hero__bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--clr-brand) 0%, color-mix(in srgb, var(--clr-brand) 25%, transparent) 60%, transparent 100%);
    z-index: 4;
}

/* Inner content */
.hp-brand-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px 20px 120px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) { .hp-brand-hero__inner { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1280px) { .hp-brand-hero__inner { padding-left: 40px; padding-right: 40px; } }

/* Eyebrow */
.hp-brand-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-brand);
    margin-bottom: 20px;
}

.hp-brand-hero__eyebrow-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--clr-brand);
    border-radius: 999px;
}

/* Title */
.hp-brand-hero__title {
    margin: 0 0 20px;
    line-height: 1;
}

.hp-brand-hero__title-pre {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--clr-text-secondary);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hp-brand-hero__title-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 700;
    color: var(--clr-text-primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 0.9;
    /* Brand red text shadow for depth */
    text-shadow: 0 0 80px rgba(230,57,70,0.3);
}

/* Subtitle */
.hp-brand-hero__sub {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    color: var(--clr-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 0 32px;
}

/* Action buttons */
.hp-brand-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hp-brand-hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, var(--clr-brand) 0%, var(--clr-brand-dark) 100%);
    border: 1px solid var(--clr-brand);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(230,57,70,0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hp-brand-hero__cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(230,57,70,0.5);
    color: #ffffff;
}

.hp-brand-hero__cta-ghost {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    background: transparent;
    border: 1px solid var(--clr-border);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.hp-brand-hero__cta-ghost:hover {
    color: var(--clr-text-primary);
    border-color: var(--clr-text-dim);
}

/* Content type pills */
.hp-brand-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-brand-hero__pill {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 12px;
    border-radius: 999px;
}

.hp-brand-hero__pill--accent {
    color: var(--clr-brand);
    border-color: rgba(230,57,70,0.25);
    background: rgba(230,57,70,0.06);
}

/* Scroll hint */
.hp-brand-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.25);
    animation: geekly-scroll-bounce 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes geekly-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 2 — FEATURED STORY
   ══════════════════════════════════════════════════════════════════════════ */
.hp-featured {
    position: relative;
    overflow: hidden;
    min-height: clamp(380px, 55vw, 560px);
    /* Break out of geekly-main padding */
    margin-left: -16px;
    margin-right: -16px;
}

@media (min-width: 1280px) {
    .hp-featured {
        margin-left: -40px;
        margin-right: -40px;
        min-height: clamp(420px, 48vw, 600px);
    }
}

@media (min-width: 1280px) {
    .hp-featured {
        margin-left: -48px;
        margin-right: -48px;
    }
}

.hp-featured__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    text-decoration: none;
}

.hp-featured__bg {
    position: absolute;
    inset: 0;
}

.hp-featured__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hp-featured__bg--gradient {
    background:
        radial-gradient(ellipse at top right, color-mix(in srgb, var(--clr-brand) 14%, transparent) 0%, transparent 50%),
        linear-gradient(180deg, var(--clr-bg-deep) 0%, var(--clr-bg-base) 100%);
}

.hp-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11,10,14,0.97) 0%,
        rgba(11,10,14,0.75) 35%,
        rgba(11,10,14,0.3) 65%,
        rgba(11,10,14,0.1) 100%
    );
}

.hp-featured__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: clamp(24px, 4vw, 48px) 20px clamp(28px, 4vw, 52px);
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
}

@media (min-width: 768px) { .hp-featured__content { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1280px) { .hp-featured__content { padding-left: 40px; padding-right: 40px; } }

.hp-featured__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hp-featured__label-text {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-brand);
}

.hp-featured__label-line {
    display: inline-block;
    flex: 1;
    max-width: 48px;
    height: 1px;
    background: var(--clr-brand);
    opacity: 0.5;
}

.hp-featured__meta {
    margin-bottom: 10px;
}

.hp-featured__badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.hp-featured__badge--cat {
    background: rgba(230,57,70,0.2);
    border: 1px solid rgba(230,57,70,0.4);
    color: var(--clr-brand);
}

.hp-featured__badge--type {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

.hp-featured__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--clr-text-primary);
    line-height: 1.1;
    margin: 0 0 12px;
    max-width: 700px;
    text-wrap: balance;
}

.hp-featured__excerpt {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    color: rgba(230,237,243,0.7);
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 560px;
}

.hp-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-featured__byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

.hp-featured__author {
    font-weight: 600;
    color: rgba(255,255,255,0.65);
}

.hp-featured__sep { color: var(--clr-brand); }

.hp-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-brand);
    transition: gap var(--transition-fast);
}

.hp-featured__link:hover .hp-featured__cta { gap: 10px; }

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 3 — LATEST STORIES (card grid)
   ══════════════════════════════════════════════════════════════════════════ */
.hp-latest {
    border-top: 1px solid var(--clr-border);
}

.hp-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .hp-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .hp-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.hp-card {
    display: flex;
    flex-direction: column;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.hp-card:hover {
    border-color: color-mix(in srgb, var(--clr-brand) 30%, var(--clr-border));
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    transform: translateY(-3px);
}

.hp-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--clr-bg-elevated);
}

.hp-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-card:hover .hp-card__thumb img { transform: scale(1.04); }

.hp-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--clr-bg-elevated) 0%, var(--clr-bg-active) 100%);
}

.hp-card__type-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--clr-text-primary);
    background: rgba(17,16,20,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

.hp-card__score {
    position: absolute;
    bottom: 8px; right: 8px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--clr-brand);
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.hp-card__cat {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-brand);
}

.hp-card__cat--type { color: var(--clr-text-dim); }

.hp-card__title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.hp-card:hover .hp-card__title { color: var(--clr-brand); }

.hp-card__date {
    font-size: 0.75rem;
    color: var(--clr-text-dim);
    margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 4 — BROWSE BY CATEGORY
   ══════════════════════════════════════════════════════════════════════════ */
.hp-categories {
    border-top: 1px solid var(--clr-border);
}

.hp-cat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) { .hp-cat-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .hp-cat-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .hp-cat-strip { grid-template-columns: repeat(6, 1fr); } }

.hp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 12px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hp-cat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--clr-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.hp-cat-card:hover {
    border-color: color-mix(in srgb, var(--clr-brand) 30%, var(--clr-border));
    background: var(--clr-bg-active);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.hp-cat-card:hover::after { transform: scaleX(1); }

.hp-cat-card__icon {
    width: 30px; height: 30px;
    color: var(--clr-brand);
    transition: transform 0.2s ease;
}

.hp-cat-card:hover .hp-cat-card__icon { transform: scale(1.2); }

.hp-cat-card__icon svg { width: 100%; height: 100%; }

.hp-cat-card__name {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-text-primary);
    margin: 0;
    transition: color var(--transition-fast);
}

.hp-cat-card:hover .hp-cat-card__name { color: var(--clr-brand); }

.hp-cat-card__count {
    font-size: 0.5625rem;
    color: var(--clr-text-dim);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 5 — WHAT'S ON COVEREDGEEKLY (content type showcase)
   ══════════════════════════════════════════════════════════════════════════ */
.hp-content-types {
    border-top: 1px solid var(--clr-border);
}

.hp-type-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) { .hp-type-showcase { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .hp-type-showcase { grid-template-columns: repeat(4, 1fr); } }

.hp-type-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.hp-type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tc, var(--clr-brand));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hp-type-card:hover {
    border-color: color-mix(in srgb, var(--tc, var(--clr-brand)) 30%, var(--clr-border));
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.hp-type-card:hover::before { opacity: 1; }

.hp-type-card--articles { --tc: var(--clr-brand); }
.hp-type-card--quizzes { --tc: var(--clr-warning); }
.hp-type-card--lists { --tc: var(--clr-success); }
.hp-type-card--reviews { --tc: var(--clr-purple); }

.hp-type-card__icon {
    width: 36px; height: 36px;
    color: var(--tc, var(--clr-brand));
    margin-bottom: 16px;
}

.hp-type-card__icon svg { width: 100%; height: 100%; }

.hp-type-card__title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.hp-type-card__desc {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.hp-type-card__link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc, var(--clr-brand));
    text-decoration: none;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.hp-type-card:hover .hp-type-card__link { gap: 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 6 — BRAND CTA
   ══════════════════════════════════════════════════════════════════════════ */
.hp-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(72px, 10vw, 120px) 20px;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg-deep);
    /* Break out of geekly-main padding */
    margin-left: -16px;
    margin-right: -16px;
}

@media (min-width: 768px) { .hp-cta { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1280px) {
    .hp-cta {
        margin-left: -40px;
        margin-right: -40px;
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (min-width: 1280px) {
    .hp-cta {
        margin-left: -48px;
        margin-right: -48px;
        padding-left: 48px;
        padding-right: 48px;
    }
}

.hp-cta__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hp-cta__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(230,57,70,0.12) 0%, transparent 65%);
    animation: geekly-glow-pulse 6s ease-in-out infinite;
}

.hp-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hp-cta__logo {
    height: 52px;
    width: auto;
    margin: 0 auto 32px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.hp-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--clr-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 14px;
}

.hp-cta__sub {
    font-size: 1.0625rem;
    color: var(--clr-text-muted);
    margin: 0 0 40px;
    line-height: 1.6;
}

.hp-cta__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-cta__social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--hc, var(--clr-border));
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hp-cta__social svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    color: var(--hc, var(--clr-text-muted));
}

.hp-cta__social:hover {
    color: var(--hc, var(--clr-text-primary)) !important;
    border-color: var(--hc, var(--clr-text-dim));
    background: color-mix(in srgb, var(--hc, transparent) 8%, var(--clr-bg-active));
    transform: translateY(-3px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--hc, #000) 20%, rgba(0,0,0,0.4));
}

.hp-cta__social:hover svg { color: var(--hc, var(--clr-text-primary)); }


/* =============================================================================
   HOMEPAGE — Vertical ticker in hero + coloured content type pills
   ============================================================================= */

/* ── Hero ticker (right side) ── */
.hp-brand-hero__ticker {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    display: none;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 1280px) {
    .hp-brand-hero__ticker {
        display: flex;
        gap: 0;
    }
    /* Adjust inner to not overlap the ticker */
    .hp-brand-hero__inner {
        max-width: 65%;
        margin: 0;
    }
}

.hp-brand-hero__ticker-col {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hp-brand-hero__ticker-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: geekly-ticker-up 40s linear infinite;
}

.hp-brand-hero__ticker-track--reverse {
    animation: geekly-ticker-down 50s linear infinite;
}

.hp-brand-hero__ticker-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hp-brand-hero__ticker-type {
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230,57,70,0.45);
}

.hp-brand-hero__ticker-title {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.07);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-brand-hero__ticker-fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 2;
}

.hp-brand-hero__ticker-fade--top {
    top: 0;
    background: linear-gradient(to bottom, var(--clr-bg-base) 0%, transparent 100%);
}

.hp-brand-hero__ticker-fade--bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--clr-bg-base) 0%, transparent 100%);
}

/* Left fade removed — ticker is hidden on mobile, not needed on desktop */

/* ── Coloured content type pills ── */
.hp-brand-hero__pill--red {
    color: var(--clr-brand);
    border-color: rgba(230,57,70,0.3);
    background: rgba(230,57,70,0.07);
}

.hp-brand-hero__pill--amber {
    color: var(--clr-warning);
    border-color: rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.07);
}

.hp-brand-hero__pill--green {
    color: var(--clr-success);
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.07);
}

.hp-brand-hero__pill--purple {
    color: var(--clr-purple);
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.07);
}

.hp-brand-hero__pill--blue {
    color: #3B82F6;
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.07);
}


/* =============================================================================
   HOMEPAGE — MOST POPULAR TODAY CARD + TRENDING BAR
   ============================================================================= */

/* ── Trending Today card ─────────────────────────────────────────────────── */

/* Full width at all sizes — let the hero layout control the column width */
.hp-brand-hero__top-post {
    margin-top: 32px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* The card is a poster: image fills the whole card, content overlaid at bottom */
.hp-brand-hero__top-post-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1.5px solid rgba(230,57,70,0.35);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(230,57,70,0.12) inset,
        0 0 40px rgba(230,57,70,0.08);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    aspect-ratio: 16/10;
}

.hp-brand-hero__top-post-card:hover {

    border-color: rgba(230,57,70,0.65);
    box-shadow:
        0 28px 72px rgba(0,0,0,0.8),
        0 0 0 1px rgba(230,57,70,0.25) inset,
        0 0 60px rgba(230,57,70,0.14);
}

/* Mobile: no rounded corners — card bleeds edge to edge */
@media (max-width: 767px) {
    .hp-brand-hero__top-post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Full-bleed image */
.hp-brand-hero__top-post-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hp-brand-hero__top-post-thumb img,
.hp-brand-hero__top-post-thumb picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-brand-hero__top-post-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-brand-hero__top-post-card:hover .hp-brand-hero__top-post-thumb img,
.hp-brand-hero__top-post-card:hover .hp-brand-hero__top-post-thumb picture img {
    transform: scale(1.04);
}

/* Gradient overlay — heavy at bottom for legibility, subtle brand tint */
.hp-brand-hero__top-post-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.05) 0%,
            rgba(0,0,0,0.15) 35%,
            rgba(10,5,5,0.72) 65%,
            rgba(10,0,0,0.92) 100%
        ),
        linear-gradient(
            135deg,
            rgba(230,57,70,0.08) 0%,
            transparent 50%
        );
}

/* Content sits at the bottom of the card, overlaid on the image */
.hp-brand-hero__top-post-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Rank row: big #1 + label pill side by side */
.hp-brand-hero__top-post-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

/* The big #1 number */
.hp-brand-hero__top-post-rank {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--clr-brand);
    text-shadow:
        0 0 20px rgba(230,57,70,0.7),
        0 0 40px rgba(230,57,70,0.4),
        0 2px 8px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* "Most Popular Today" label pill */
.hp-brand-hero__top-post-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(230,57,70,0.9);
    padding: 5px 10px 4px 8px;
    border-radius: 4px;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(230,57,70,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Content type label */
.hp-brand-hero__top-post-type {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230,57,70,0.9);
}

/* Title */
.hp-brand-hero__top-post-title {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Footer row: views + CTA */
.hp-brand-hero__top-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.hp-brand-hero__top-post-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

.hp-brand-hero__top-post-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-brand);
    transition: gap 0.2s ease;
}

.hp-brand-hero__top-post-card:hover .hp-brand-hero__top-post-cta {
    gap: 7px;
}

/* Desktop: absolute-positioned in the right column between inner and ticker */
@media (min-width: 1280px) {
    .hp-brand-hero__top-post {
        position: absolute;
        left: 67%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 360px;
        max-width: 360px;
        margin-top: 0;
    }
    .hp-brand-hero__top-post-card {
        aspect-ratio: 3/4;
        /* No transform on desktop either — image zoom via img scale handles the "alive" feel */
        transition: box-shadow 0.4s ease, border-color 0.4s ease;
    }
    .hp-brand-hero__top-post-card:hover {
        border-color: rgba(230,57,70,0.85);
        box-shadow:
            0 28px 80px rgba(0,0,0,0.85),
            0 0 0 1.5px rgba(230,57,70,0.4) inset,
            0 0 80px rgba(230,57,70,0.25),
            0 0 140px rgba(230,57,70,0.1);
    }
    .hp-brand-hero__top-post-title {
        font-size: 1.3125rem;
        -webkit-line-clamp: 4;
    }
    .hp-brand-hero__top-post-body {
        padding: 22px 22px 24px;
        gap: 7px;
    }
}


/* =============================================================================
   HOMEPAGE — TRENDING TODAY SECTION
   ============================================================================= */

/* ── Section wrapper ── */
.hp-trending {
    position: relative;
    overflow: hidden;
    /* Dark panel with a subtle radial brand glow */
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(230,57,70,0.07) 0%, transparent 70%),
        var(--clr-bg-elevated);
    border-top: 1px solid rgba(230,57,70,0.2);
    border-bottom: 1px solid var(--clr-border);
    padding: 44px 0 52px;
    /* Full-width breakout from geekly-main padding */
    margin-left: -16px;
    margin-right: -16px;
}

/* Brand accent line at top */
.hp-trending::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--clr-brand) 0%,
        color-mix(in srgb, var(--clr-brand) 30%, transparent) 50%,
        transparent 100%
    );
    z-index: 1;
}

.hp-trending__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Section header ── */
.hp-trending__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hp-trending__hd-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hp-trending__hd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--clr-brand);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(230,57,70,0.5);
}

.hp-trending__hd-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hp-trending__hd-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--clr-text-primary);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1;
}

.hp-trending__hd-sub {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--clr-text-dim);
    letter-spacing: 0.02em;
}

.hp-trending__hd-date {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--clr-text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--clr-border);
    padding: 5px 10px;
    border-radius: 20px;
}

/* ── Cards grid ── */

/* Mobile: horizontal scroll */
.hp-trending__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hp-trending__grid::-webkit-scrollbar { display: none; }

/* ── Individual card — full-bleed poster ── */
.hp-trending__card {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 180px;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hp-trending__card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(230,57,70,0.45);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,57,70,0.2) inset;
}

/* Hero card (rank 1) — special border/shadow only; width controlled by flex-grow */
.hp-trending__card--hero {
    border-color: rgba(230,57,70,0.25);
    box-shadow: 0 10px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(230,57,70,0.1) inset;
}

.hp-trending__card--hero:hover {
    border-color: rgba(230,57,70,0.6);
    box-shadow: 0 20px 52px rgba(0,0,0,0.7), 0 0 0 1px rgba(230,57,70,0.25) inset;
}

/* ── Thumbnail — fills entire card ── */
.hp-trending__card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hp-trending__card-thumb img,
.hp-trending__card-thumb picture,
.hp-trending__card-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Image zoom on hover removed — card expansion is the interaction */

/* Placeholder for cards without a thumbnail */
.hp-trending__card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        160deg,
        rgba(230,57,70,0.12) 0%,
        var(--clr-bg-active) 40%,
        rgba(0,0,0,0.4) 100%
    );
}

/* Gradient scrim — strong at bottom, fades to transparent at top */
.hp-trending__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0)  0%,
        rgba(0,0,0,0.08) 30%,
        rgba(0,0,0,0.55) 58%,
        rgba(0,0,0,0.90) 100%
    );
    pointer-events: none;
}

/* ── Card body — overlaid at bottom ── */
.hp-trending__card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 16px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 2;
}

/* Big rank number */
.hp-trending__card-rank {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255,255,255,0.9);
    text-shadow:
        0 0 12px rgba(0,0,0,0.9),
        0 2px 6px rgba(0,0,0,0.8);
    flex-shrink: 0;
    align-self: flex-end;
}

/* Hero rank — brand red glow */
.hp-trending__card--hero .hp-trending__card-rank {
    font-size: 3rem;
    color: var(--clr-brand);
    text-shadow:
        0 0 20px rgba(230,57,70,0.8),
        0 0 40px rgba(230,57,70,0.4),
        0 2px 8px rgba(0,0,0,0.9);
}

/* Meta: type + title + views */
.hp-trending__card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.hp-trending__card-type {
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230,57,70,0.9);
}

.hp-trending__card-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.hp-trending__card--hero .hp-trending__card-title {
    font-size: 0.9375rem;
}

.hp-trending__card-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
}

/* ── Desktop: flex accordion layout ──
   All cards share the same base flex-grow.
   The hovered card expands; all others shrink equally.
   The --hero class sets the initial expanded state for card 1.
*/
@media (min-width: 768px) {
    .hp-trending__inner {
        padding: 0 32px;
    }
    .hp-trending__grid {
        display: flex;
        overflow: visible;
        gap: 12px;
        padding-bottom: 0;
        align-items: stretch;
    }
    .hp-trending__card {
        width: auto;
        height: 300px;
        flex: 1 1 0;           /* all cards equal base width */
        scroll-snap-align: unset;
        transition: flex-grow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.35s ease,
                    transform 0.22s ease,
                    box-shadow 0.22s ease,
                    border-color 0.22s ease;
    }
    /* Active card expands — all others stay at flex:1 1 0 */
    .hp-trending__card--active {
        flex-grow: 2.2 !important;
        transform: translateY(-4px);
    }
    /* Card 1 starts expanded before JS loads (no --js class yet) */
    .hp-trending__grid:not(.hp-trending__grid--js) .hp-trending__card--hero {
        flex-grow: 2.2;
    }
    /* Subtle hover hint on non-active cards */
    .hp-trending__card:not(.hp-trending__card--active):hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,0.15);
    }
    /* 6th card hidden at 768–1099px */
    .hp-trending__card:nth-child(6) {
        display: none;
    }
}

@media (min-width: 1100px) {
    .hp-trending__grid {
        gap: 14px;
    }
    .hp-trending__card:nth-child(6) {
        display: flex;
    }
    .hp-trending__card {
        height: 320px;
    }
    .hp-trending__card--hero {
        height: 320px;
    }
}

@media (min-width: 1280px) {
    .hp-trending {
        padding: 52px 0 60px;
        margin-left: -40px;
        margin-right: -40px;
    }
    .hp-trending__inner {
        padding: 0 48px;
    }
    .hp-trending__hd-title {
        font-size: 1.75rem;
    }
    .hp-trending__card {
        height: 340px;
    }
    .hp-trending__card--hero {
        height: 340px;
    }
}


/* ── GIF in rendered comments ── */
.geekly-comment-gif-wrap {
    position: relative;
    display: inline-block;
    margin: 8px 0 4px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
    font-size: 0;
}
.geekly-comment-gif-wrap img,
.geekly-comment-gif-wrap canvas {
    display: block;
    max-width: 320px;
    max-height: 260px;
    width: auto;
    height: auto;
    border-radius: 10px;
    vertical-align: top;
}
.geekly-comment-gif-wrap .geekly-gif-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.15s;
}
.geekly-comment-gif-wrap:hover .geekly-gif-play-btn { opacity: 1; }
/* When playing, hide the button until hover */
.geekly-comment-gif-wrap.is-playing .geekly-gif-play-btn { opacity: 0; }
.geekly-comment-gif-wrap.is-playing:hover .geekly-gif-play-btn { opacity: 1; }
/* Popup menu */
.geekly-sidebar__create-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 16px;
    right: 16px;
    background: var(--clr-bg-elevated, #1a1920);
    border: 1px solid var(--clr-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 9999;
    animation: geekly-create-menu-in 0.15s ease;
}
.geekly-sidebar__create-menu[hidden] { display: none; }
@keyframes geekly-create-menu-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.geekly-sidebar__create-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--clr-text-muted, rgba(255,255,255,0.8));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}
.geekly-sidebar__create-menu-item:hover {
    background: rgba(230,57,70,0.1);
    color: #fff;
}
.geekly-sidebar__create-menu-item svg {
    flex-shrink: 0;
    color: var(--clr-text-dim, rgba(255,255,255,0.4));
    transition: color 0.12s;
}
.geekly-sidebar__create-menu-item:hover svg {
    color: var(--clr-brand);
}
