/* ============================================
   GIRAN FORGE - Custom Styles
   Theme: Dark with Purple/Gold accents
   ============================================ */

/* ==================== Variables ==================== */
:root {
    /* Primary Colors */
    --primary-purple: #6c5ce7;
    --primary-purple-dark: #5849c2;
    --primary-purple-light: #a29bfe;
    
    /* Gold Accent */
    --gold: #ffd700;
    --gold-light: #ffed4a;
    --gold-dark: #c9a227;
    
    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c4;
    --text-muted: #6c6c7c;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #c9a227 100%);
    --gradient-purple: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,1) 100%);
    
    /* Effects */
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-purple: 0 0 20px rgba(108, 92, 231, 0.4);
    
    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ==================== Utilities ==================== */
.text-gold {
    color: var(--gold) !important;
}

.text-purple {
    color: var(--primary-purple) !important;
}

.bg-dark-custom {
    background-color: var(--bg-dark);
}

/* ==================== Buttons ==================== */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-gold);
    color: var(--bg-dark);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

.btn-outline-gold:hover {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow-gold);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* ==================== Particles Background ==================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==================== Navbar ==================== */
.navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 8, 0.98);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-text {
    color: var(--text-primary);
}

.brand-highlight {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 25px;
    transition: var(--transition-normal);
}

/* Navbar Styles */
.navbar-transparent { background: transparent; backdrop-filter: none; border-bottom: none; }
.navbar-transparent.scrolled { background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); }
.navbar-solid { background: rgba(10, 10, 15, 0.98); }
.navbar-gradient { background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 100%); }
.navbar-blur { background: rgba(10, 10, 15, 0.6); backdrop-filter: blur(30px); }

/* Hover Effects */
[data-hover="none"] .nav-link:hover { color: #fff !important; }
[data-hover="glow"] .nav-link:hover { color: var(--gold) !important; text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
[data-hover="underline"] .nav-link:hover { color: #fff !important; border-bottom: 2px solid var(--gold); border-radius: 0; }
[data-hover="scale"] .nav-link:hover { color: #fff !important; transform: scale(1.1); }
[data-hover="color"] .nav-link:hover { color: var(--gold) !important; }
[data-hover="background"] .nav-link:hover { color: #fff !important; background: rgba(255, 215, 0, 0.2); }

/* Active Effects */
[data-active="none"] .nav-link.active { color: #fff !important; }
[data-active="underline"] .nav-link.active { color: var(--gold) !important; border-bottom: 2px solid var(--gold); border-radius: 0; background: transparent; }
[data-active="background"] .nav-link.active { color: #fff !important; background: rgba(255, 215, 0, 0.2); }
[data-active="border"] .nav-link.active { color: var(--gold) !important; border: 1px solid var(--gold); background: transparent; }
[data-active="glow"] .nav-link.active { color: var(--gold) !important; text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); background: transparent; }
[data-active="bold"] .nav-link.active { color: #fff !important; font-weight: 700; background: transparent; }

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* ==================== Language Selector ==================== */
.lang-selector {
    min-width: 50px;
    padding: 6px 12px;
}

.lang-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Brasil */
.lang-flag.flag-br {
    background: linear-gradient(to bottom, #009c3b 0%, #009c3b 38%, #ffdf00 38%, #ffdf00 62%, #009c3b 62%, #009c3b 100%);
    position: relative;
}
.lang-flag.flag-br::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #002776;
    border-radius: 50%;
}

/* Estados Unidos */
.lang-flag.flag-us {
    background: repeating-linear-gradient(
        to bottom,
        #bf0a30 0px, #bf0a30 1px,
        #fff 1px, #fff 2px
    );
    position: relative;
}
.lang-flag.flag-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 7px;
    background: #002868;
}
.lang-flag.flag-us::after {
    content: '★';
    position: absolute;
    top: -1px;
    left: 1px;
    font-size: 5px;
    color: #fff;
}

/* Espanha */
.lang-flag.flag-es {
    background: linear-gradient(to bottom,
        #c60b1e 0%, #c60b1e 25%,
        #ffc400 25%, #ffc400 75%,
        #c60b1e 75%, #c60b1e 100%
    );
}

.dropdown-item .lang-flag {
    margin-right: 8px;
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../images/bg-fallback.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.6) 50%, rgba(108,92,231,0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    color: var(--gold);
    font-weight: 500;
}

.badge-icon {
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.title-highlight {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-size: 4.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 30px;
}

/* ==================== Countdown ==================== */
.countdown-wrapper {
    margin-bottom: 35px;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

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

.countdown-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
    line-height: 1;
}

.countdown-unit {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-separator {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==================== Hero Stats Card ==================== */
.hero-stats-card {
    background: rgba(18, 18, 26, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
}

.stats-header {
    margin-bottom: 25px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4ade80;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
}

.status-dot.pulse {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.stat-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--gold);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== Scroll Indicator ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== Section Styles ==================== */
.section-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 10;
}

.features-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.features-video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.features-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.feature-animate {
    opacity: 1 !important;
    transform: none !important;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Bootstrap Tabs - Animação suave de transição */
.tab-content {
    position: relative;
}

.tab-content > .tab-pane {
    display: none !important;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-content > .tab-pane.active.show {
    display: block !important;
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition-normal);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-gold);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
    color: var(--bg-dark);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== Rankings Section ==================== */
.rankings-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.rankings-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.rankings-section .video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.rankings-section .video-background .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rankings-tabs {
    margin-top: 40px;
}

.rankings-tabs .nav-pills {
    gap: 15px;
    margin-bottom: 40px;
}

.rankings-tabs .nav-link {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.rankings-tabs .nav-link:hover {
    border-color: #fff;
    color: var(--gold);
}

.rankings-tabs .nav-link.active {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: transparent;
}

.ranking-table {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.ranking-table .table {
    margin: 0;
    color: var(--text-primary);
}

.ranking-table thead {
    background: rgba(255, 215, 0, 0.1);
}

.ranking-table thead th {
    padding: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    color: var(--gold);
}

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

.ranking-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.ranking-table tbody td {
    padding: 20px;
    vertical-align: middle;
    border: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-badge.rank-1 { background: linear-gradient(135deg, #ffd700, #c9a227); color: #000; }
.rank-badge.rank-2 { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); color: #000; }
.rank-badge.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.rank-badge.rank-4, .rank-badge.rank-5 { background: var(--bg-darker); color: var(--text-secondary); }

.player-name { font-weight: 600; color: var(--gold); }
.clan-tag { color: var(--primary-purple-light); }
.pvp-count, .pk-count { font-weight: 700; color: #4ade80; }
.clan-name { font-weight: 600; color: var(--gold); }
.level-badge {
    background: var(--gradient-purple);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* ==================== Rankings Designs ==================== */

/* Design 1 - Clássico (Default) */
.ranking-design1 .ranking-table {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}
.ranking-design1 .ranking-table .table {
    background: transparent !important;
}
.ranking-design1 .ranking-table thead,
.ranking-design1 .ranking-table tbody,
.ranking-design1 .ranking-table tr {
    background: transparent !important;
}
.ranking-design1 .ranking-table thead th {
    background: transparent !important;
    color: var(--gold) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.ranking-design1 .ranking-table tbody td {
    background: transparent !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ranking-design1 .ranking-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Design 2 - Cards Separados */
.ranking-design2 .ranking-table {
    background: transparent !important;
    border: none;
    border-radius: 0;
}
.ranking-design2 .ranking-table .table {
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0 12px;
}
.ranking-design2 .ranking-table thead {
    display: none;
}
.ranking-design2 .ranking-table tbody {
    background: transparent !important;
}
.ranking-design2 .ranking-table tbody tr {
    background: linear-gradient(135deg, #141420 0%, #1e1e2d 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ranking-design2 .ranking-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, #1e1e2d 100%) !important;
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ranking-design2 .ranking-table tbody td {
    padding: 25px 20px;
    border: none !important;
    background: transparent !important;
}
.ranking-design2 .ranking-table tbody td:first-child {
    border-radius: 15px 0 0 15px;
}
.ranking-design2 .ranking-table tbody td:last-child {
    border-radius: 0 15px 15px 0;
}
.ranking-design2 .rank-badge {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
.ranking-design2 .player-name {
    font-size: 1.1rem;
}

/* Design 3 - Neon Cyberpunk */
.ranking-design3 .ranking-table {
    background: #05051a !important;
    border: 3px solid #00ffff;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), 0 0 60px rgba(255, 0, 255, 0.2);
}
.ranking-design3 .ranking-table .table {
    background: transparent !important;
}
.ranking-design3 .ranking-table thead {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.3) 0%, rgba(255, 0, 255, 0.3) 50%, rgba(0, 255, 255, 0.3) 100%) !important;
    border-bottom: 2px solid #00ffff;
}
.ranking-design3 .ranking-table thead th {
    color: #00ffff !important;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    padding: 25px 20px;
}
.ranking-design3 .ranking-table tbody {
    background: #05051a !important;
}
.ranking-design3 .ranking-table tbody tr {
    background: #05051a !important;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.ranking-design3 .ranking-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 255, 0.15), rgba(0, 255, 255, 0.15)) !important;
}
.ranking-design3 .ranking-table tbody td {
    padding: 20px;
    color: #e0e0e0 !important;
    background: transparent !important;
    border: none !important;
}
.ranking-design3 .player-name {
    color: #ff00ff !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    font-weight: 600;
}
.ranking-design3 .clan-tag {
    color: #00ff88 !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}
.ranking-design3 .rank-badge {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    width: 45px;
    height: 50px;
}
.ranking-design3 .rank-badge.rank-1 {
    background: linear-gradient(180deg, #00ffff, #0088ff);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}
.ranking-design3 .rank-badge.rank-2 {
    background: linear-gradient(180deg, #ff00ff, #8800ff);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}
.ranking-design3 .rank-badge.rank-3 {
    background: linear-gradient(180deg, #00ff88, #00aa55);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

/* Design 4 - Medieval Pergaminho */
.ranking-design4 .ranking-table {
    background: linear-gradient(180deg, #3d2914 0%, #2a1a0a 50%, #1a0f05 100%) !important;
    border: 6px solid #8b4513;
    border-radius: 0;
    box-shadow:
        inset 0 0 100px rgba(139, 69, 19, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 0 3px #654321;
    position: relative;
}
.ranking-design4 .ranking-table .table {
    background: transparent !important;
}
.ranking-design4 .ranking-table::before,
.ranking-design4 .ranking-table::after {
    content: '⚔';
    position: absolute;
    top: -20px;
    font-size: 30px;
    color: #cd853f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
}
.ranking-design4 .ranking-table::before { left: 20px; }
.ranking-design4 .ranking-table::after { right: 20px; transform: scaleX(-1); }
.ranking-design4 .ranking-table thead {
    background: linear-gradient(180deg, #8b4513 0%, #654321 50%, #4a3520 100%) !important;
    border-bottom: 4px solid #cd853f;
}
.ranking-design4 .ranking-table thead th {
    color: #ffd700 !important;
    background: transparent !important;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 215, 0, 0.3);
    padding: 20px;
}
.ranking-design4 .ranking-table tbody {
    background: transparent !important;
}
.ranking-design4 .ranking-table tbody tr {
    background: transparent !important;
    border-bottom: 2px solid rgba(139, 69, 19, 0.4);
    transition: all 0.3s ease;
}
.ranking-design4 .ranking-table tbody tr:hover {
    background: rgba(205, 133, 63, 0.2) !important;
}
.ranking-design4 .ranking-table tbody td {
    padding: 18px 20px;
    color: #deb887 !important;
    background: transparent !important;
    border: none !important;
    font-family: 'Georgia', serif;
}
.ranking-design4 .player-name {
    color: #ffd700 !important;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.ranking-design4 .clan-tag {
    color: #cd853f !important;
}
.ranking-design4 .rank-badge {
    border-radius: 0;
    width: 40px;
    height: 45px;
    clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 50% 85%, 0% 100%, 0% 20%);
    border: none;
    font-family: 'Georgia', serif;
}
.ranking-design4 .rank-badge.rank-1 {
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 50%, #8b6914 100%);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.ranking-design4 .rank-badge.rank-2 {
    background: linear-gradient(180deg, #c0c0c0 0%, #808080 50%, #505050 100%);
}
.ranking-design4 .rank-badge.rank-3 {
    background: linear-gradient(180deg, #cd7f32 0%, #8b4513 50%, #5c3317 100%);
}

/* ==================== Download Section ==================== */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(108, 92, 231, 0.1) 100%);
}

.download-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
}

.download-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.download-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(10px);
}

.download-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card .card-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.download-card .card-content {
    flex: 1;
}

.download-card .card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.download-card .card-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.download-card .file-size {
    display: block;
    color: var(--primary-purple-light);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ==================== Community Section ==================== */
.community-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition-normal);
}

.community-card:hover {
    transform: translateY(-10px);
}

.community-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.community-card h4 {
    margin-bottom: 10px;
}

.community-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.community-card .member-count {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Community Card Colors */
.community-card.discord { border-color: rgba(88, 101, 242, 0.3); }
.community-card.discord i { color: #5865F2; }
.community-card.discord:hover { background: rgba(88, 101, 242, 0.1); box-shadow: 0 0 30px rgba(88, 101, 242, 0.3); }
.community-card.discord .member-count { color: #5865F2; }

.community-card.youtube { border-color: rgba(255, 0, 0, 0.3); }
.community-card.youtube i { color: #FF0000; }
.community-card.youtube:hover { background: rgba(255, 0, 0, 0.1); box-shadow: 0 0 30px rgba(255, 0, 0, 0.3); }
.community-card.youtube .member-count { color: #FF0000; }

.community-card.instagram { border-color: rgba(225, 48, 108, 0.3); }
.community-card.instagram i { color: #E1306C; }
.community-card.instagram:hover { background: rgba(225, 48, 108, 0.1); box-shadow: 0 0 30px rgba(225, 48, 108, 0.3); }
.community-card.instagram .member-count { color: #E1306C; }

.community-card.telegram { border-color: rgba(0, 136, 204, 0.3); }
.community-card.telegram i { color: #0088CC; }
.community-card.telegram:hover { background: rgba(0, 136, 204, 0.1); box-shadow: 0 0 30px rgba(0, 136, 204, 0.3); }
.community-card.telegram .member-count { color: #0088CC; }

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-title {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.server-status-card {
    background: var(--bg-card);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.server-status-card .status-indicator {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: statusPulse 2s infinite;
}

.server-status-card .status-indicator.online { background: #4ade80; }
.server-status-card .status-indicator.offline { background: #ef4444; }

.status-info {
    display: inline-block;
}

.status-label {
    font-weight: 600;
    margin-right: 10px;
}

.status-value {
    color: #4ade80;
    font-weight: 600;
}

.online-count {
    margin-top: 15px;
    color: var(--text-muted);
}

.online-count i {
    color: var(--gold);
    margin-right: 5px;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--text-muted);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

.disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.7;
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-gold);
    color: var(--bg-dark);
}

/* ==================== Animations ==================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--gold); }
    50% { box-shadow: 0 0 20px var(--gold), 0 0 30px var(--gold); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== Responsive ==================== */
@media (max-width: 1199px) {
    .hero-title { font-size: 3rem; }
    .title-highlight { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-card);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-buttons {
        margin-top: 20px;
        justify-content: center;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-title { font-size: 2.5rem; }
    .title-highlight { font-size: 3rem; }
    .title-line { font-size: 1.2rem; }

    .hero-stats-card {
        margin-top: 50px;
    }

    .countdown-value { font-size: 2rem; }
    .countdown-item { min-width: 65px; padding: 12px 15px; }

    .scroll-indicator { display: none; }

    .section-title { font-size: 2rem; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .title-highlight { font-size: 2.5rem; }
    .title-line { font-size: 1rem; }

    .countdown { flex-wrap: wrap; justify-content: center; }
    .countdown-separator { display: none; }
    .countdown-item { min-width: 70px; }
    .countdown-value { font-size: 1.8rem; }

    .hero-buttons { justify-content: center; }

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

    .rankings-tabs .nav-pills { flex-wrap: wrap; }
    .rankings-tabs .nav-link { padding: 12px 20px; font-size: 0.9rem; }

    .download-card { flex-direction: column; text-align: center; }

    .footer-bottom { text-align: center; }
    .footer-bottom-links { justify-content: center; margin-top: 15px; }

    .section-title { font-size: 1.8rem; }
    .section-badge { font-size: 0.75rem; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.6rem; }
    .title-highlight { font-size: 2rem; }

    .btn-lg { padding: 12px 24px; font-size: 0.9rem; }

    .feature-card { padding: 30px 20px; }

    .step-item { flex-direction: column; text-align: center; }
    .step-number { margin: 0 auto; }
}

/* Animação para linhas do ranking */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ranking content transition */
.ranking-content {
    min-height: 300px;
}

.ranking-cache-info {
    opacity: 0.7;
    font-size: 0.85rem;
    padding: 10px;
}

.ranking-cache-info i {
    margin-right: 5px;
}

#rankingTable tbody tr {
    opacity: 0;
}

/* ==================== Auth Modals ==================== */
.auth-modal {
    background: rgba(18, 18, 26, 0.98);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-modal .modal-header {
    padding: 30px 30px 10px;
}

.auth-modal-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-modal-logo img {
    height: 50px;
}

.auth-modal-logo .modal-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.auth-modal .modal-body {
    padding: 20px 30px 30px;
}

.auth-modal .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
}

.auth-modal .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-purple);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.auth-modal .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.auth-modal .input-group-text {
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary-purple);
}

.auth-modal .toggle-password {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

.auth-modal .toggle-password:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-purple);
}

.btn-auth-login {
    background: linear-gradient(135deg, var(--primary-purple), #5a4fcf);
    border: none;
    padding: 12px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition-normal);
}

.btn-auth-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-auth-register {
    background: linear-gradient(135deg, var(--gold), #e6c200);
    border: none;
    padding: 12px;
    font-weight: 600;
    color: #000;
    transition: var(--transition-normal);
}

.btn-auth-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-auth-register:disabled {
    background: rgba(255, 215, 0, 0.3);
    color: rgba(0,0,0,0.4);
    cursor: not-allowed;
}

.auth-modal-links {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-modal-links a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.auth-modal-links a:hover {
    color: var(--gold);
}

/* Password Strength Bar */
.password-strength-container {
    padding: 0 5px;
}

.password-strength-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-fill.strength-weak {
    background: #ef4444;
    width: 25%;
}

.password-strength-fill.strength-fair {
    background: #f97316;
    width: 50%;
}

.password-strength-fill.strength-good {
    background: #eab308;
    width: 75%;
}

.password-strength-fill.strength-strong {
    background: #22c55e;
    width: 100%;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 5px;
    color: var(--text-muted);
}

.password-strength-text.strength-weak { color: #ef4444; }
.password-strength-text.strength-fair { color: #f97316; }
.password-strength-text.strength-good { color: #eab308; }
.password-strength-text.strength-strong { color: #22c55e; }

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-requirements .requirement {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-requirements .requirement i {
    font-size: 0.8rem;
}

.password-requirements .requirement.valid {
    color: #22c55e;
}

.password-requirements .requirement.valid i::before {
    content: "\F26B";
}

.password-requirements .requirement.invalid {
    color: #ef4444;
}

/* Auth Modal Alerts */
.auth-modal .alert {
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
}

.auth-modal .alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-modal .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
