/* CSS Design System for Lineage 2 Site */
:root {
    --primary: #00E38C;
    /* Verde Arcano */
    --primary-hover: #2BFFB2;
    /* Verde Neon */
    --primary-border: #1FAF75;
    /* Verde Místico */
    --secondary: #121A16;
    /* Preto Esverdeado */
    --accent: #B13A3A;
    /* Vermelho Queimado */
    --background: #0B0E0C;
    /* Preto Profundo */
    --card-bg: #1A2B22;
    /* Verde Escuro Rochoso */
    --text: #E6EDE9;
    /* Branco Suave */
    --text-secondary: #B8C1BC;
    /* Cinza Claro */
    --text-muted: #7C8681;
    /* Cinza Frio */
    --divider: #3A3F3C;
    /* Pedra Escura */
    --glass: rgba(26, 43, 34, 0.6);
    --glass-border: rgba(31, 175, 117, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #0B0E0C;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 227, 140, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary-border);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #0B0E0C;
    border-color: var(--primary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    padding: 40px 0;
}

/* Scaling video to cover */
@media (min-aspect-ratio: 16/9) {
    .hero-video-container {
        width: 100%;
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video-container {
        width: 177.78vh;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 10px;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }

    .btn {
        width: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.8rem;
    }
}

section h2+p {
    text-align: center;
    color: var(--text);
    /* Branco Gelo */
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Info Grid & Accordion */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-border);
}

.info-item {
    background: var(--card-bg);
    border: 1px solid var(--divider);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.info-header:hover {
    background: rgba(0, 227, 140, 0.05);
}

.info-item.active {
    border-color: var(--primary-border);
}

.info-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.info-icon-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.info-item.active .info-icon-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.info-item.active .info-content {
    max-height: 1000px;
    /* Large enough to fit content */
    border-top: 1px solid var(--glass-border);
}

.info-inner {
    padding: 20px;
    color: var(--text);
    /* Branco Gelo / principal */
    font-size: 0.95rem;
}

.info-inner table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: var(--text);
}

.info-inner td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-inner ul {
    padding-left: 20px;
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Downloads Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.download-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--secondary) 100%);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.download-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.download-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.download-card p {
    color: var(--text);
    /* Branco Gelo */
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.download-card .btn {
    width: 100%;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 8, 0.95);
    /* Profundo */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 227, 140, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header-img {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--primary);
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--text);
    /* Branco Gelo */
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.modal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 25px;
}

.modal-text {
    line-height: 1.8;
    color: var(--text);
    /* Branco Gelo */
    font-size: 1.05rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--primary);
    color: #000;
}

/* Ranking System */
.rank-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.rank-tab {
    padding: 10px 25px;
    background: var(--card-bg);
    border: 1px solid var(--divider);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
}

.rank-tab.active {
    background: var(--primary);
    color: #0B0E0C;
    border-color: var(--primary);
}

.rank-table-container {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.rank-table-container.active {
    display: block;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--divider);
}

.rank-table th {
    background: rgba(0, 227, 140, 0.1);
    color: var(--primary);
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.rank-table td {
    padding: 15px;
    border-bottom: 1px solid var(--divider);
    color: var(--text);
}

.rank-table tr:last-child td {
    border-bottom: none;
}

.rank-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rank-pos {
    width: 50px;
    font-weight: 800;
    color: var(--primary-border);
}

.rank-table tr:nth-child(1) .rank-pos {
    color: #FFD700;
}

/* Gold */
.rank-table tr:nth-child(2) .rank-pos {
    color: #C0C0C0;
}

/* Silver */
.rank-table tr:nth-child(3) .rank-pos {
    color: #CD7F32;
}

/* Bronze */

@media (max-width: 768px) {
    .rank-tabs {
        flex-direction: column;
    }

    .rank-table th:nth-child(4),
    .rank-table td:nth-child(4) {
        display: none;
        /* Hide level on small screens */
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 20px;
    }

    .modal-header-img {
        height: 200px;
    }

    .modal-body h2 {
        font-size: 1.5rem;
    }
}