/* ============================================================
   SteamDrops — Homepage Styles
   Hero · Pinned · Ending Soon · Effects
   ============================================================ */

/* Prevent 100vw full-bleed from creating a horizontal scrollbar.
   Only on html — body stays the scroll container so sticky headers work. */
html {
    overflow-x: hidden;
}

/* ── Full-bleed — breaks out of .container ────────────────── */
.home-fullbleed {
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}


/* =============================================================
   HERO SECTION
   ============================================================= */
.home-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 48px;
}

/* Background image */
.home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.35) saturate(1.15);
    transform: scale(1.06);
    transition: transform 12s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-hero:hover .home-hero__bg {
    transform: scale(1.0);
}

/* Scan-line overlay — subtle CRT/cyberpunk feel */
.home-hero__scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    mix-blend-mode: multiply;
}

/* Gradient overlays */
.home-hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%),
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}

/* Bottom fade — merges seamlessly into site background */
.home-hero__bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    z-index: 3;
    background: linear-gradient(to top, var(--bg-main, #15202b) 0%, transparent 100%);
}

/* Animated edge glow — subtle blue pulse along the bottom */
.home-hero__edge-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 5;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.6) 20%,
        rgba(6, 182, 212, 0.9) 50%,
        rgba(59, 130, 246, 0.6) 80%,
        transparent 100%
    );
    animation: hero-edge-pulse 3s ease-in-out infinite;
}

@keyframes hero-edge-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* SVG corner accents */
.home-hero__corner {
    position: absolute;
    z-index: 6;
    pointer-events: none;
    opacity: 0.7;
}

.home-hero__corner--tl {
    top: 16px;
    left: 16px;
}

.home-hero__corner--tr {
    top: 16px;
    right: 16px;
}

.home-hero__corner--bl {
    bottom: 16px;
    left: 16px;
}

.home-hero__corner--br {
    bottom: 16px;
    right: 16px;
}

/* Floating particles */
.home-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.home-hero__particles span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: particle-float linear infinite;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.home-hero__particles span:nth-child(1) { left: 10%; animation-duration: 14s; animation-delay: 0s; width: 2px; height: 2px; }
.home-hero__particles span:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.home-hero__particles span:nth-child(3) { left: 45%; animation-duration: 12s; animation-delay: 4s; width: 2px; height: 2px; }
.home-hero__particles span:nth-child(4) { left: 65%; animation-duration: 20s; animation-delay: 1s; background: rgba(59,130,246,0.4); }
.home-hero__particles span:nth-child(5) { left: 80%; animation-duration: 16s; animation-delay: 3s; width: 2px; height: 2px; }
.home-hero__particles span:nth-child(6) { left: 92%; animation-duration: 22s; animation-delay: 5s; background: rgba(168,85,247,0.3); }

@keyframes particle-float {
    0%   { transform: translateY(520px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* Inner container */
.home-hero__inner {
    position: relative;
    z-index: 8;
    height: 100%;
    max-width: var(--container-width, 1100px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 56px;
}

/* Eyebrow badge */
.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #60a5fa;
    padding: 5px 16px;
    border-radius: 24px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
    backdrop-filter: blur(4px);
    animation: eyebrow-glow 3s ease-in-out infinite;
}

.home-hero__eyebrow svg {
    flex-shrink: 0;
}

@keyframes eyebrow-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.15); }
    50%      { box-shadow: 0 0 24px rgba(59, 130, 246, 0.35); }
}

/* Title */
.home-hero__title {
    margin: 0 0 20px;
    max-width: 660px;
}

.home-hero__title-text {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: title-shimmer 6s linear infinite;
    text-shadow: none;
}

@keyframes title-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Stats */
.home-hero__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.home-hero__stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.home-hero__stat svg {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.home-hero__stat strong {
    color: #fff;
    font-weight: 700;
}

.home-hero__stat--timer strong {
    color: #fbbf24;
}

.home-hero__stat-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* CTA buttons */
.home-hero__actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.home-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
    color: #fff;
}

.home-hero__cta svg {
    flex-shrink: 0;
}

.home-hero__cta--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.home-hero__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    color: #fff;
}


/* =============================================================
   SECTION HEADERS
   ============================================================= */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.home-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(59,130,246,0.7), transparent);
    border-radius: 1px;
}

.home-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-section-icon {
    color: rgba(59, 130, 246, 0.6);
    flex-shrink: 0;
}

.home-section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}


/* =============================================================
   PINNED (FEATURED) CARDS
   ============================================================= */
.home-pinned {
    margin-bottom: 48px;
}

.home-pinned__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.home-pinned-card {
    position: relative;
    display: block;
    text-decoration: none;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-pinned-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
    color: #fff;
}

/* Card background */
.home-pinned-card__bg {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.1);
    transition: filter 0.35s;
}

.home-pinned-card:hover .home-pinned-card__bg {
    filter: brightness(0.3) saturate(1.2);
}

.home-pinned-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

/* Gift ribbon SVG overlay */
.home-pinned-card__ribbon {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.home-pinned-card:hover .home-pinned-card__ribbon {
    opacity: 1;
}

/* Green glow for un-entered */
.home-pinned-card--glow {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.home-pinned-card--glow:hover {
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2);
}

/* Copies badge */
.home-pinned-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fde047;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.home-pinned-card__badge svg {
    flex-shrink: 0;
}

/* Tags (right side) */
.home-pinned-card__tags {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Content */
.home-pinned-card__content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.home-pinned-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.home-pinned-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.home-pinned-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* =============================================================
   ENDING SOON
   ============================================================= */
.home-ending-soon {
    margin-bottom: 48px;
}

.home-ending-soon__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Green glow modifier for ga-cards (not yet entered) */
.ga-card--glow-enter {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}

.ga-card--glow-enter:hover {
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.18);
}


/* =============================================================
   BROWSE ALL BUTTON
   ============================================================= */
.home-browse-wrap {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.home-browse-wrap p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.home-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    transition: all 0.25s;
}

.home-browse-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(6, 182, 212, 0.35) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

.home-browse-btn svg {
    transition: transform 0.25s;
}

.home-browse-btn:hover svg {
    transform: translateX(4px);
}


/* =============================================================
   EMPTY STATE
   ============================================================= */
.home-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.home-empty i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.2;
}

.home-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    .home-hero {
        height: 400px;
    }

    .home-hero__inner {
        padding-bottom: 40px;
    }

    .home-hero__corner {
        display: none;
    }

    .home-pinned__grid {
        grid-template-columns: 1fr;
    }

    .home-pinned-card {
        height: 180px;
    }

    .home-hero__actions {
        flex-wrap: wrap;
    }

    .home-ending-soon__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .home-hero {
        height: 350px;
    }

    .home-hero__stats {
        gap: 12px;
    }

    .home-hero__stat-sep {
        display: none;
    }

    .home-hero__cta {
        padding: 11px 22px;
        font-size: 0.88rem;
        width: 100%;
        justify-content: center;
    }

    .home-pinned-card {
        height: 160px;
    }

    .home-pinned-card__title {
        font-size: 1rem;
    }

    .home-pinned-card__meta {
        gap: 10px;
        flex-wrap: wrap;
    }

    .home-ending-soon__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-browse-btn {
        padding: 12px 28px;
        font-size: 0.88rem;
    }
}
