/* Homepage styles */

/* ============================================================
   HERO — bold intersecting geometry, deep layering, parallax
   ============================================================ */
.home-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            133deg,
            #181818 0px,
            #181818 28px,
            #151515 28px,
            #151515 56px
        );
    box-shadow: inset 0 0 160px rgba(255,255,255,0.015);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 900px;
    height: 260px;
    background: #191919;
    bottom: -100px;
    left: -180px;
    transform: rotate(-10deg);
    box-shadow: 0 0 100px rgba(0,0,0,0.7);
    z-index: 8;
}

.home-hero-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255,114,0,0.09) 0%, transparent 65%);
    top: 50%;
    left: 55%;
    margin-left: -450px;
    margin-top: -450px;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.home-hero-glow-secondary {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255,114,0,0.06) 0%, transparent 70%);
    top: 80%;
    left: 18%;
    margin-left: -275px;
    margin-top: -275px;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

/* Dominant orange slash */
.home-hero-panel-a {
    position: absolute;
    width: 90px;
    height: 960px;
    background: var(--ufs-accent);
    top: -280px;
    right: 160px;
    box-shadow: 0 0 60px rgba(255,114,0,0.35), 0 0 160px rgba(255,114,0,0.08);
    z-index: 5;
    will-change: transform;
}

/* Thick dark block */
.home-hero-panel-b {
    position: absolute;
    width: 160px;
    height: 800px;
    background: #1b1b1b;
    bottom: -260px;
    left: 20px;
    box-shadow: 0 0 90px rgba(0,0,0,0.6);
    z-index: 3;
    will-change: transform;
}

/* Mid-tone slab */
.home-hero-panel-c {
    position: absolute;
    width: 75px;
    height: 640px;
    background: #222;
    top: -180px;
    left: 340px;
    box-shadow: 0 0 50px rgba(0,0,0,0.4);
    z-index: 6;
    will-change: transform;
}

/* Ghost panel */
.home-hero-panel-d {
    position: absolute;
    width: 110px;
    height: 460px;
    background: rgba(255,114,0,0.06);
    top: -70px;
    right: 440px;
    z-index: 3;
    will-change: transform;
}

/* Lines */
.home-hero-line {
    position: absolute;
    will-change: transform;
}

.line-slash-tl {
    width: 460px; height: 5px;
    top: 8%; left: -2%;
    background: var(--ufs-accent);
    box-shadow: 0 0 22px rgba(255,114,0,0.6), 0 0 60px rgba(255,114,0,0.2);
    z-index: 7;
}

.line-slash-tr {
    width: 380px; height: 5px;
    top: 18%; right: -2%;
    background: rgba(255,255,255,0.13);
    z-index: 4;
}

.line-slash-bl {
    width: 330px; height: 5px;
    bottom: 20%; left: -2%;
    background: rgba(255,255,255,0.1);
    z-index: 4;
}

.line-slash-br {
    width: 400px; height: 5px;
    bottom: 12%; right: -2%;
    background: var(--ufs-accent);
    box-shadow: 0 0 18px rgba(255,114,0,0.5);
    opacity: 0.8;
    z-index: 7;
}

.line-diag-mid {
    width: 280px; height: 4px;
    top: 48%; left: 8%;
    background: rgba(255,255,255,0.08);
    z-index: 4;
}

.line-thin-1 {
    width: 220px; height: 2px;
    top: 34%; right: 20%;
    background: rgba(255,114,0,0.28);
    z-index: 3;
}

.line-thin-2 {
    width: 180px; height: 2px;
    bottom: 36%; left: 22%;
    background: rgba(255,255,255,0.06);
    z-index: 3;
}

.home-hero-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,114,0,0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 150px 150px, 100px 100px, 240px 240px;
    background-position: 5% 15%, 78% 50%, 35% 82%;
    background-repeat: no-repeat;
    will-change: transform;
}

.home-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(transparent, var(--ufs-bg));
    z-index: 10;
    pointer-events: none;
}

/* ============================================================
   HERO CONTENT
   ============================================================ */
.home-hero-content {
    position: relative;
    z-index: 12;
    text-align: center;
    max-width: 720px;
    padding: 2rem 1.5rem;
}

.home-hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.4rem 1.2rem;
    border-radius: 3px;
}

.home-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.home-hero-content h1 .text-accent {
    color: var(--ufs-accent);
    position: relative;
}

.home-hero-content h1 .text-accent::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ufs-accent);
    opacity: 0.3;
    border-radius: 2px;
}

.home-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.home-hero-stat {
    text-align: center;
}

.home-hero-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.home-hero-stat .text-accent {
    color: var(--ufs-accent);
}

.home-hero-stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-hero-actions .btn {
    padding: 0.65rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,114,0,0.25);
}

.home-hero-actions .btn-discord {
    background: #5865F2;
    color: #fff;
    border: none;
    padding: 0.65rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.home-hero-actions .btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88,101,242,0.35);
    color: #fff;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.home-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-section-title span {
    color: var(--ufs-accent);
    opacity: 0.5;
    font-weight: 400;
}

.home-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* ============================================================
   UNIFIED 2-COLUMN CONTENT LAYOUT
   ============================================================ */
.home-content-section {
    padding: 2rem 0 3rem;
    position: relative;
    z-index: 3;
}

.home-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.home-content-left,
.home-content-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* Generic card used by all blocks in the columns */
.home-content-card {
    background: var(--ufs-block);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* Search card — special glow border */
.home-search-card {
    background: var(--ufs-block);
    border: 1px solid rgba(255,114,0,0.15);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
    position: relative;
}

.home-search-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,114,0,0.2), transparent 40%, transparent 60%, rgba(255,114,0,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.home-search-card .server-search-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.home-search-card .server-search-wrapper .search-block-title {
    display: none;
}

.home-search-card .server-search-wrapper .form-control,
.home-search-card .server-search-wrapper .form-select {
    background-color: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

.home-search-card .server-search-wrapper .form-control:focus {
    border-color: var(--ufs-accent);
    box-shadow: 0 0 0 1px rgba(255,114,0,0.2);
}

/* Feature rows inside cards */
.home-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.home-feature-row:hover {
    background: rgba(255,114,0,0.04);
}

.home-feature-row .home-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,114,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--ufs-accent);
    flex-shrink: 0;
}

.home-feature-row div:last-child {
    flex: 1;
    min-width: 0;
}

.home-feature-row strong {
    display: block;
    font-size: 0.82rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.home-feature-row span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* Upvote items inside cards */
.home-upvotes-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 420px;
    overflow-y: auto;
}

.home-upvotes-list::-webkit-scrollbar {
    width: 4px;
}

.home-upvotes-list::-webkit-scrollbar-thumb {
    background: rgba(255,114,0,0.2);
    border-radius: 2px;
}

.home-upvote-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.home-upvote-item:last-child {
    border-bottom: none;
}

.home-upvote-item:hover {
    background: rgba(255,114,0,0.06);
}

.home-upvote-flag {
    width: 18px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
    font-size: 0.7rem;
    line-height: 1;
}

.home-upvote-name {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.home-upvote-item:hover .home-upvote-name {
    color: var(--ufs-accent);
}

.home-upvote-game {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.home-upvote-time {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Vertical how-it-works steps (right column) */
.home-how-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-how-step-v {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-how-step-v .home-how-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,114,0,0.3);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ufs-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.home-how-step-v h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
}

.home-how-step-v p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin: 0;
}

/* FAQ items inside card */
.home-faq-list {
    display: flex;
    flex-direction: column;
}

.home-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.home-faq-item:last-child {
    border-bottom: none;
}

.home-faq-item details {
    padding: 0;
}

.home-faq-item details summary {
    padding: 0.85rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.home-faq-item details summary:hover {
    color: var(--ufs-accent);
}

.home-faq-item details summary::-webkit-details-marker {
    display: none;
}

.home-faq-item details summary::after {
    content: "+";
    font-size: 1rem;
    color: var(--ufs-accent);
    font-weight: 400;
    transition: transform 0.2s;
}

.home-faq-item details[open] summary::after {
    content: "\2212";
    transform: rotate(180deg);
}

.home-faq-item details .faq-answer {
    padding: 0 0.5rem 0.85rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ============================================================
   GAMES SLIDER (inside left-column card)
   ============================================================ */
.home-games-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.home-games-slider::-webkit-scrollbar {
    height: 4px;
}

.home-games-slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 2px;
}

.home-games-slider::-webkit-scrollbar-thumb {
    background: rgba(255,114,0,0.3);
    border-radius: 2px;
}

.home-game-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 200px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.home-game-slide:hover {
    transform: translateY(-2px);
    border-color: rgba(255,114,0,0.3);
    background: rgba(255,114,0,0.05);
}

.home-game-slide img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.home-game-slide .game-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.home-game-slide .game-tag {
    font-size: 0.62rem;
    color: var(--ufs-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   CTA (spans full width below the 2-column layout)
   ============================================================ */

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-feature-row,
.home-game-slide,
.home-upvote-item {
    animation: fadeInUp 0.6s ease-out both;
}

.home-feature-row:nth-child(2) { animation-delay: 0.1s; }
.home-feature-row:nth-child(3) { animation-delay: 0.15s; }
.home-feature-row:nth-child(4) { animation-delay: 0.2s; }

.home-game-slide:nth-child(2) { animation-delay: 0.1s; }

.home-upvote-item:nth-child(2) { animation-delay: 0.05s; }
.home-upvote-item:nth-child(3) { animation-delay: 0.1s; }
.home-upvote-item:nth-child(4) { animation-delay: 0.15s; }
.home-upvote-item:nth-child(5) { animation-delay: 0.2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .home-content-layout {
        grid-template-columns: 1fr;
    }
    .home-hero-content h1 {
        font-size: 2.4rem;
    }
    .home-hero-stats {
        gap: 1.5rem;
    }
    .home-hero-stat-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 85vh;
    }
    .home-hero-content h1 {
        font-size: 2rem;
    }
    .home-hero-desc {
        font-size: 0.9rem;
    }
    .home-hero-stats {
        gap: 1rem;
    }
    .home-hero-stat-num {
        font-size: 1.3rem;
    }
    .home-game-slide {
        width: 160px;
    }
    .home-section-title {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .home-hero-content h1 {
        font-size: 1.65rem;
    }
    .home-hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 3px;
        padding: 0.3rem 0.9rem;
    }
    .home-hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    .home-hero-stat {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }
    .home-hero-stat-num {
        font-size: 1.1rem;
    }
    .home-hero-stat-label {
        font-size: 0.7rem;
    }
    .home-game-slide {
        width: 140px;
    }
}
