/*
 * Home theme layer: hero → servers → discord → donate.
 * Loaded after assets/css/style.css, so values here win for these sections.
 * Base/header/nav/footer/login/member styles stay in assets/css/style.css.
 */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 110px) 0 clamp(52px, 5vw, 88px);
    background: linear-gradient(135deg, #0d1324 0%, #101c31 35%, #111827 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    filter: blur(18px);
    animation: float 8s ease-in-out infinite;
}

.hero-particles span:nth-child(1) {
    left: 10%;
    top: 12%;
}

.hero-particles span:nth-child(2) {
    top: 35%;
    right: 14%;
    animation-delay: 1s;
}

.hero-particles span:nth-child(3) {
    bottom: 18%;
    left: 24%;
    width: 160px;
    height: 160px;
    animation-delay: 2.2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); opacity: 0.45; }
    50% { transform: translateY(-18px); opacity: 0.75; }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

.hero-text h1 {
    max-width: 640px;
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #ff8d66, #ff6b35 40%, #ffd166 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    max-width: 640px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.9vw, 1.35rem);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd166 0%, #ff9a5a 36%, #66d9e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 30px;
}

.hero-stat {
    min-width: 110px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.44);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.hero-stat strong {
    display: block;
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: min(100%, 420px);
    filter: drop-shadow(0 24px 40px rgba(18, 9, 30, 0.65));
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    animation: bounce 2s infinite;
}

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

.btn-connect {
    background: linear-gradient(135deg, #5eead4 0%, #22c55e 100%);
    color: #051b10;
}

.btn-vote {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border-color: rgba(255,255,255,0.1);
}

.btn-donate {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #1b1206;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.btn-forum {
    border: 1px solid rgba(255, 232, 163, 0.55);
    background: linear-gradient(135deg, #ffe8a3 0%, #f2c14e 48%, #e0a12a 100%);
    color: #241304;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(224, 161, 42, 0.26);
    animation: forum-glow 3.2s ease-in-out infinite;
}

.btn-forum:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-forum i {
    font-size: 1.05em;
}

@keyframes forum-glow {
    0%, 100% { box-shadow: 0 12px 28px rgba(224, 161, 42, 0.22); }
    50% { box-shadow: 0 12px 34px rgba(242, 193, 78, 0.46); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-forum {
        animation: none;
    }
}

.servers-section {
    padding: 86px 0;
    background: linear-gradient(180deg, rgba(12, 17, 31, 0.6), rgba(10, 15, 29, 0.94));
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.server-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 21, 36, 0.9);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.34);
}

.server-card-header {
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, rgba(17, 26, 42, 1), rgba(26, 36, 54, 1));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.server-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-badge-easy {
    background: rgba(110, 231, 183, 0.12);
    border-color: rgba(110, 231, 183, 0.25);
    color: #a7f3d0;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.server-status i {
    font-size: 0.56rem;
}

.server-status.online {
    color: #4ade80;
}

.server-status.offline {
    color: #f87171;
}

.server-card-header h3 {
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.server-banner {
    display: block;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.server-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.server-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 18px 8px;
    background: rgba(17, 23, 40, 0.8);
}

.server-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    font-size: 0.92rem;
}

.server-specs i {
    color: var(--primary);
    font-size: 1.1rem;
}

.server-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
    background: rgba(17, 23, 40, 0.8);
}

.discord-section {
    padding: 86px 0;
    background: radial-gradient(circle at top left, rgba(255, 107, 53, 0.15), transparent 25%), #0d1324;
}

.discord-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 38px;
}

.discord-copy h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.discord-copy p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 1.06rem;
}

.discord-widget {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    box-shadow: var(--shadow);
}

.discord-widget iframe {
    width: 100%;
    min-height: 390px;
    border: 0;
    background: transparent;
}

.donate-section {
    padding: 72px 0 92px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.donate-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(18, 24, 38, 0.9);
    box-shadow: var(--shadow);
}

.donate-content h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.donate-content > div > p {
    color: var(--muted);
    margin-bottom: 18px;
}

.donate-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.donate-methods span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-content,
    .discord-layout {
        grid-template-columns: 1fr;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .donate-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .hero-cta,
    .server-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .server-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-stat {
        min-width: 92px;
    }

    .server-actions {
        grid-template-columns: 1fr;
    }

    .donate-content {
        padding: 22px 18px;
    }
}
