/* ============================================
   L2 IMPURE - Homepage Styles
   ============================================ */

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    height: 140px;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo 4X MAIOR */
.logo {
    display: flex;
    align-items: center;
    margin-right: var(--space-xl);
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

/* Navegação colada na logo */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 0;
}

/* Auth buttons à direita */
.header-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo-text {
    display: flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

.logo-l2 {
    color: var(--text-gold);
}

.logo-name {
    color: var(--text-primary);
    margin-left: 2px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-md);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.dropdown-arrow {
    transition: transform var(--transition-base);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 200px;
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(var(--space-sm));
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.lang-btn:hover {
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            90deg,
            rgba(10, 10, 15, 0.6) 0%,
            rgba(10, 10, 15, 0.3) 30%,
            rgba(10, 10, 15, 0.1) 50%,
            rgba(10, 10, 15, 0.3) 70%,
            rgba(10, 10, 15, 0.6) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(10, 10, 15, 0) 0%,
            rgba(10, 10, 15, 0) 60%,
            rgba(10, 10, 15, 1) 100%
        );
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    z-index: 1;
    padding: 0 var(--space-lg);
    margin-top: 50px;
}

/* Logo Animada no Hero */
.hero-logo-animated {
    margin-bottom: var(--space-xl);
    max-width: 350px;
}

.logo-video {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 34px rgba(0, 0, 0, 0.6));
}

.hero-announcement {
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-md);
    text-shadow: 0 5px 21px rgba(0, 0, 0, 0.5);
}

.hero-date {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-shadow: 0 5px 21px rgba(0, 0, 0, 0.5);
}

.hero-features {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-features p {
    margin-bottom: 5px;
}

/* Play Button */
.play-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.play-btn-icon {
    font-size: 20px;
    color: var(--accent-primary);
}

.play-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.play-btn-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.play-btn-text small {
    font-size: 12px;
    color: var(--text-muted);
}

/* === MAIN CONTENT === */
.main-content {
    padding: 60px 0;
    background: var(--bg-primary);
}

.main-content .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

.section-title-center {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

/* Server List */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.server-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.server-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(90deg, rgba(212, 161, 74, 0.1), transparent);
}

.server-card.discord {
    border-color: var(--accent-blue);
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.1), transparent);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-rate {
    padding: 8px 12px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.server-rate.discord-icon {
    background: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-details {
    display: flex;
    flex-direction: column;
}

.server-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
}

.server-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
}

.status-text.online {
    color: var(--accent-green);
}

.status-text.coming-soon {
    color: var(--accent-primary);
}

.server-arrow {
    color: var(--text-muted);
}

/* News Card */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.news-source {
    font-size: 13px;
    color: var(--accent-blue);
}

.news-telegram {
    color: var(--text-muted);
    transition: color 0.3s;
}

.news-telegram:hover {
    color: var(--accent-blue);
}

.news-content {
    padding: 15px 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.news-icon {
    font-size: 14px;
}

.news-item strong {
    color: var(--accent-primary);
}

.news-link {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Discord Section */
.discord-section {
    padding: 40px 0;
    background: var(--accent-blue);
    margin: 60px 0;
}

.discord-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.discord-icon-large {
    opacity: 0.9;
}

.discord-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.discord-text p {
    font-size: 14px;
    opacity: 0.9;
}

.btn-discord {
    background: white;
    color: var(--accent-blue);
    padding: 15px 30px;
    font-weight: 700;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.feature-card.highlight {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(212, 161, 74, 0.1), transparent);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === FOOTER === */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

/* === MODAL: PLAY === */
.modal-play {
    max-width: 900px;
}

.modal-main-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.play-step {
    margin-bottom: 30px;
}

.step-header {
    margin-bottom: 15px;
}

.step-label {
    font-size: 14px;
    color: var(--text-muted);
}

.step-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin-left: 8px;
}

.step-title .highlight {
    color: var(--accent-primary);
}

.btn-full {
    width: 100%;
}

/* Download Tabs */
.download-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.download-tab {
    flex: 1;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.download-tab:hover,
.download-tab.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.download-tab small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.download-col {
    text-align: center;
}

.download-col h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.download-col p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.download-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.dl-icon {
    font-size: 14px;
}

/* Path Display */
.path-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.path-icon {
    font-size: 18px;
}

.path-separator {
    color: var(--text-muted);
}

.path-file {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Play Help */
.play-help {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.play-help a {
    color: var(--accent-primary);
}

/* === STATISTICS SECTION (L2MAD Style) === */
.stats-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 30px;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-icon {
    font-size: 22px;
}

.stats-title h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-server-select {
    position: absolute;
    right: 20px;
}

.stats-dropdown {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-weight: 500;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.stats-card-title {
    padding: 15px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.stats-table {
    width: 100%;
}

.stats-table thead {
    display: table-header-group; /* Mostrar header igual L2MAD */
}

.stats-table th,
.stats-table td {
    padding: 10px 15px;
    text-align: left;
    font-size: 13px;
}

.stats-table th {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 11px;
    padding: 8px 15px;
}

.stats-table th:last-child {
    text-align: right;
}

.stats-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-table tbody tr:last-child {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stats-table td:first-child {
    width: 40px;
    color: var(--text-muted);
}

.stats-table td:first-child.rank-gold {
    color: #FFD700;
    font-weight: 600;
}

.stats-table td:last-child {
    text-align: right;
    color: var(--text-muted);
}

.player-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.clan-dot.blue { background: #5865F2; }
.clan-dot.purple { background: #9B59B6; }
.clan-dot.red { background: #E74C3C; }
.clan-dot.green { background: #2ECC71; }

.stats-footer {
    text-align: center;
    margin-top: 20px;
}

.stats-link {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.stats-link:hover {
    color: var(--text-primary);
}

/* === JOIN SECTION (L2MAD Style) === */
.join-section {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.join-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.join-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradiente mais suave igual L2MAD */
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 1) 0%,
        rgba(10, 10, 15, 0.3) 20%,
        rgba(10, 10, 15, 0.3) 80%,
        rgba(10, 10, 15, 1) 100%
    );
}

.join-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
}

.join-subtitle {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    letter-spacing: 2px;
}

.join-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.join-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-join {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-join:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 18px 50px;
    font-size: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 20px 40px;
    }
    
    .hero-logo-animated {
        max-width: 280px;
        margin-bottom: var(--space-lg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-date {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .discord-content {
        flex-direction: column;
    }
    
    .join-title {
        font-size: 2.5rem;
    }
    
    .join-subtitle {
        font-size: 1.5rem;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
