/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- Basic Reset & Body Style --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000; /* Set a black base for the body */
    color: #ffffff;
}

/* --- Global Container --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Navbar Styles (from your file) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo .icon-mic {
    width: 24px;
    height: 24px;
    color: #cf0000;
    transition: transform 0.3s ease;
}

.nav-logo:hover .icon-mic {
    transform: scale(1.1);
}

.nav-center-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-center-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 0.25rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-center-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cf0000;
    transition: width 0.3s ease;
}

.nav-center-links a:hover {
    color: #cf0000;
}

.nav-center-links a:hover::after {
    width: 100%;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sign-in-link {
     color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.sign-in-link:hover {
    color: #cf0000;
}

.cta-button {
    background-color: #cf0000;
    color: #ffffff;
    padding: 0.40rem 0.40rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
    align-items: center;
    justify-content: center;
}

.cta-button::after {
    content: none;
}

.cta-button:hover {
    background-color: #b30000;
    transform: scale(1.05);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200; 
}
.nav-toggle .bar {
    width: 2rem;
    height: 0.25rem;
    background-color: white;
    border-radius: 10px;
}

.mobile-nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    list-style: none;
    z-index: 1100;
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-menu a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 600;
}


/* --- Hero Section Styles --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #222222, #000000);
    min-height: calc(100vh - 81px); 
}

.hero-tag {
    background-color: #cc0000;
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    border: none;
}

.hero-image {
    max-width: 100%;
    width: 1000px; /* Doubled from 500px */
    height: auto;
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: #cf0000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #b30000;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #ffffff;
}

.btn .icon-mic {
    width: 20px;
    height: 20px;
}

/* --- Active Battles Section --- */
.battles {
    padding: 4rem 0;
    background-color: #000;
}

.battles-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.battles-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.battles-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.btn-outline-white {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #cf0000;
    color: #000000;
    border-color: #cf0000;
}

.battles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.battle-card {
    background: #1a1a1a;
    border: 2px solid #cf0000;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.battle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(207, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
}

.card-status-live {
    background-color: #cf0000;
    color: white;
}

.card-status-time {
    background-color: #444;
    color: #eee;
}

.card-status-time svg {
    width: 16px;
}

.card-type {
    font-size: 0.9rem;
    font-weight: 700;
    color: #cf0000;
    background-color: rgba(207, 0, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mc-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #555;
    border: 2px solid #cf0000;
}

.mc-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cf0000;
    margin: 0.5rem 0;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-weight: 600;
    margin-top: 1rem;
}

.card-stats svg {
    width: 20px;
    height: 20px;
}

.card-footer {
    padding: 1rem;
    background-color: #111;
}

.btn-full-width {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-watch {
    background-color: #cf0000;
    color: white;
}

.btn-watch:hover {
    background-color: #b30000;
}

.btn-remind {
    background-color: #555;
    color: #ddd;
}

.btn-remind:hover {
    background-color: #777;
}


/* --- Leaderboard Section (Homepage) --- */
.leaderboard {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #000, #111);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.leaderboard-header h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trophy-icon {
    width: 32px;
    height: 32px;
    color: #ffd700; /* Gold */
}

.leaderboard-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.leaderboard-table-container {
    background: #1a1a1a;
    border: 1px solid #333; /* Lighter gray border */
    border-radius: 12px;
    overflow: hidden; /* Changed from auto to hidden for the container */
    overflow-x: auto; /* Allow horizontal scroll only when needed */
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table thead tr {
    background-color: #000; /* Darker header */
    border-bottom: 2px solid #cf0000; /* Red accent */
}

.leaderboard-table th {
    padding: 1.25rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #aaa;
    white-space: nowrap; /* Prevent headers from wrapping */
}

.leaderboard-table td {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap; /* Prevent cell content from wrapping */
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: background-color 0.3s ease;
}

.leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

.leaderboard-table tbody tr:hover {
    background-color: #222;
}

/* MC Column Style */
.mc-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mc-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #555;
    border: 2px solid #777;
    flex-shrink: 0; /* Prevent avatar shrinking */
}

/* Win Rate Bar */
.win-rate-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.win-rate-text {
    width: 40px; /* Aligns text */
    font-size: 0.9rem;
    flex-shrink: 0;
}

.win-rate-bar {
    /* flex: 1; removed */
    min-width: 100px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

.win-rate-fill {
    height: 100%;
    background-color: #cf0000;
    border-radius: 4px;
}

/* Trend Arrows */
.trend-up {
    width: 24px;
    height: 24px;
    color: #4caf50; /* Green */
}

.trend-down {
    width: 24px;
    height: 24px;
    color: #cf0000; /* Red */
}

.wl-win {
    color: #4caf50; /* Green */
    font-weight: 700;
}
.wl-loss {
    color: #cf0000; /* Red */
    font-weight: 700;
}
.points-red {
    color: #cf0000;
    font-weight: 700;
}

.rank-gold {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
}
.rank-silver {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0c0c0;
}
.rank-bronze {
    font-size: 1.1rem;
    font-weight: 700;
    color: #cd7f32;
}


/* --- Upcoming Events Section --- */
.events {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #111, #000);
}

.events-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.events-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.events-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.event-card {
    background-color: #0a0a0a; /* Almost black */
    border: 1px solid #333; /* Subtle gray border */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative; /* For the gradient */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Subtle gradient from top-left */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%; /* Make gradient larger */
    height: 150%;
    background: radial-gradient(circle at top left, rgba(207, 0, 0, 0.1) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(207, 0, 0, 0.1);
    border-color: #cf0000; /* Light up border on hover */
}

.event-card:hover::before {
    opacity: 1;
}

/* Card Header */
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 2; /* Above gradient */
}

.event-tag {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: white;
}
.tag-red { background-color: #cf0000; }

.event-status {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: white;
}
.status-open { background-color: #4caf50; } /* Green */
.status-full { background-color: #cf0000; } /* Red */
.status-soon { background-color: #3b82f6; } /* Blue */

/* Card Body */
.event-card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Makes body take up space */
    position: relative;
    z-index: 2; /* Above gradient */
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.event-info {
    list-style: none;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #ccc;
}

.info-item svg {
    width: 20px;
    height: 20px;
    color: #cf0000;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

/* Progress Bar */
.event-progress-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #cf0000;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.progress-fill-muted { /* For the "Soon" card */
    height: 100%;
    background-color: #555;
    border-radius: 5px;
    width: 0%; /* 0% fill, but container is visible */
}


/* Card Footer */
.event-card-footer {
    padding: 1.5rem;
    padding-top: 0;
    margin-top: auto; /* Pushes footer to bottom */
    position: relative;
    z-index: 2; /* Above gradient */
}

.btn-register {
    background-color: #cf0000;
    color: white;
}
.btn-register:hover {
    background-color: #b30000;
}

.btn-full {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    text-align: center;
}

/* The "different" red button */
.btn-outline-red {
    background-color: transparent;
    color: #cf0000;
    border: 2px solid #cf0000;
    text-align: center;
}
.btn-outline-red:hover {
    background-color: #cf0000;
    color: white;
}


/* --- Footer Section --- */
.site-footer {
    background-color: #0a0a0a; /* A new, very dark gray */
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #222;
    position: relative; /* Added for aurora effect */
    overflow: hidden; /* Added for aurora effect */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative; /* Added for aurora effect */
    z-index: 2; /* Added for aurora effect */
}

.footer-column .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo .icon-mic {
    width: 24px;
    height: 24px;
    color: #cf0000;
}

.footer-column p {
    color: #aaa;
    line-height: 1.6;
    max-width: 250px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #cf0000;
    transform: scale(1.1);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #cf0000;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #000000;
    font-weight: bold; /* Your added style */
	text-shadow: 1px 1px #cc0000; /* Your added style */
    font-size: 0.9rem;
    position: relative; 
    z-index: 2;
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 850px) {
    .nav-center-links,
    .nav-right-actions {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }

    .battles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }
    .hero-image {
        width: 80%;
    }
    .hero-description {
        font-size: 1rem;
    }

    .battles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .battles-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Makes leaderboard table scrollable */
    .leaderboard-table-container {
        overflow-x: auto;
    }
    
    .leaderboard-table {
        min-width: 700px; /* Force scrolling */
    }

    /* --- Footer Mobile --- */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column .footer-logo {
        justify-content: center;
    }
    
    .footer-column p {
        margin: 0 auto; /* Center paragraph */
    }
    
    .footer-socials {
        justify-content: center; /* Center social icons */
    }

    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }
}


/* --- Aurora Footer Lights --- */
#wrap {
    width: 100%;
    height: 100%;
    position: absolute; /* Changed from relative */
    top: 0; /* Added */
    left: 0; /* Added */
    margin: 0;
    overflow: hidden;
    z-index: 1; /* Added */
}

#lightings {
	bottom: -60px;
	position: absolute;
	width: 100%;
}

#lightings section {
	border-radius: 50%;
	height: 20px;
	width: 100%;
	position: relative;
	margin: auto;
}

/* --- Keyframe Animations (Red/Orange Theme) --- */
#one {
	-webkit-animation: one 5s ease-in-out infinite alternate;
	animation: one 5s ease-in-out infinite alternate;
}
@-webkit-keyframes one {
    from { -webkit-box-shadow: 0 0 250px 20px #b30000; } /* Dark Red */
    to { -webkit-box-shadow: 0 0 100px 15px #ff4500; } /* Orange-Red */
}
@keyframes one {
    from { box-shadow: 0 0 250px 20px #b30000; } /* Dark Red */
    to { box-shadow: 0 0 100px 15px #ff4500; } /* Orange-Red */
}

#two {
	width: 90%;
	-webkit-animation: two 4s ease-in-out infinite alternate;
	animation: two 4s ease-in-out infinite alternate;
}
@-webkit-keyframes two {
    from { -webkit-box-shadow: 0 0 250px 20px #cf0000; } /* Theme Red */
    to { -webkit-box-shadow: 0 0 100px 15px #ffa500; } /* Orange */
}
@keyframes two {
    from { box-shadow: 0 0 250px 20px #cf0000; } /* Theme Red */
    to { box-shadow: 0 0 100px 15px #ffa500; } /* Orange */
}

#three {
	width: 80%;
	-webkit-animation: three 3s ease-in-out infinite alternate;
	animation: three 3s ease-in-out infinite alternate;
}
@-webkit-keyframes three {
    from { -webkit-box-shadow: 0 0 250px 20px #ff8c00; } /* Dark Orange */
    to { -webkit-box-shadow: 0 0 100px 15px #cf0000; } /* Theme Red */
}
@keyframes three {
    from { box-shadow: 0 0 250px 20px #ff8c00; } /* Dark Orange */
    to { box-shadow: 0 0 100px 15px #cf0000; } /* Theme Red */
}

#four {
	width: 70%;
	-webkit-animation: four 2s ease-in-out infinite alternate;
	animation: four 2s ease-in-out infinite alternate;
}
@-webkit-keyframes four {
    from { -webkit-box-shadow: 0 0 250px 20px #ff0000; } /* Bright Red */
    to { -webkit-box-shadow: 0 0 100px 15px #ff8c00; } /* Dark Orange */
}
@keyframes four {
    from { box-shadow: 0 0 250px 20px #ff0000; } /* Bright Red */
    to { box-shadow: 0 0 100px 15px #ff8c00; } /* Dark Orange */
}

#five {
	width: 60%;
	-webkit-animation: five 1s ease-in-out infinite alternate;
	animation: five 1s ease-in-out infinite alternate;
}
@-webkit-keyframes five {
    from { -webkit-box-shadow: 0 0 250px 20px #ff4500; } /* Orange-Red */
    to { -webkit-box-shadow: 0 0 100px 15px #b30000; } /* Dark Red */
}
@keyframes five {
    from { box-shadow: 0 0 250px 20px #ff4500; } /* Orange-Red */
    to { box-shadow: 0 0 100px 15px #b30000; } /* Dark Red */
}

/* --- Sign In Page Styles --- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: calc(100vh - 81px - 450px); /* Full height minus navbar and footer */
    background: linear-gradient(to bottom, #111, #000);
}

.login-box {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-box p {
    color: #aaa;
    margin-bottom: 2rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #1a1a1a;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-social:hover {
    background-color: #2a2a2a;
}

.btn-social svg {
    width: 24px;
    height: 24px;
}

.btn-social-facebook {
    background-color: #1877F2;
    border-color: #1877F2;
}

.btn-social-facebook:hover {
    background-color: #166eeb;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #777;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider span {
    padding: 0 1rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #cf0000;
    box-shadow: 0 0 0 3px rgba(207, 0, 0, 0.3);
}

.form-options {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: #cf0000;
    text-decoration: underline;
}

.signup-link {
    margin-top: 2rem;
    color: #aaa;
}

.signup-link a {
    color: #cf0000;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* --- Register Page Styles --- */
.register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: calc(100vh - 81px - 450px); /* Full height minus navbar and footer */
    background: linear-gradient(to bottom, #111, #000);
}

.register-box {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px; /* Same as login */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.register-box h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.register-box p {
    color: #aaa;
    margin-bottom: 2rem;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: 16px; /* Adjusted size */
    height: 16px;
    accent-color: #cf0000;
    flex-shrink: 0;
}

.form-group-checkbox label {
    color: #aaa;
}

.form-group-checkbox a {
    color: #cf0000;
    text-decoration: none;
}

.form-group-checkbox a:hover {
    text-decoration: underline;
}

.login-link {
    margin-top: 2rem;
    color: #aaa;
}

.login-link a {
    color: #cf0000;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* --- Battles Page Styles --- */
.battles-page-container {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #111, #000);
    min-height: calc(100vh - 81px - 450px); /* minus nav and footer */
}

.battles-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.battles-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.battles-page-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.form-control-select {
    width: 250px;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.form-control-select:focus {
    outline: none;
    border-color: #cf0000;
    box-shadow: 0 0 0 3px rgba(207, 0, 0, 0.3);
}

/* --- Leaderboard Page Styles --- */
.leaderboard-page-container {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #111, #000);
    min-height: calc(100vh - 81px - 450px); /* minus nav and footer */
}

.leaderboard-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.leaderboard-page-header h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.leaderboard-page-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.leaderboard-page-table {
    border: 1px solid #444; /* Slightly more prominent border */
}

/* Gold/Silver/Bronze Row Styling */
.leaderboard-table tbody tr.rank-1 {
    background: linear-gradient(90deg, rgba(255,215,0,0.15) 0%, rgba(26,26,26,0) 100%);
    border-left: 4px solid #ffd700;
}
.leaderboard-table tbody tr.rank-2 {
    background: linear-gradient(90deg, rgba(192,192,192,0.15) 0%, rgba(26,26,26,0) 100%);
    border-left: 4px solid #c0c0c0;
}
.leaderboard-table tbody tr.rank-3 {
    background: linear-gradient(90deg, rgba(205,127,50,0.15) 0%, rgba(26,26,26,0) 100%);
    border-left: 4px solid #cd7f32;
}

.leaderboard-table tbody tr.rank-1 td,
.leaderboard-table tbody tr.rank-2 td,
.leaderboard-table tbody tr.rank-3 td {
    font-weight: 700; /* Bolder text for top ranks */
}

.leaderboard-table tbody tr:hover {
    background-color: #282828; /* Slightly lighter hover for page table */
}

/* --- NEW: Events Page Styles --- */
.events-page-container {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #111, #000);
    min-height: calc(100vh - 81px - 450px); /* minus nav and footer */
}

.events-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.events-page-header h1 { /* Changed from h2 */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.events-page-header p {
    font-size: 1.1rem;
    color: #aaa;
}

/* Make events grid on this page use 2 columns */
.events-page-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* --- NEW: CTA Section Styles --- */
.cta-section {
    background: linear-gradient(to bottom, #000, #0a0a0a); /* Match footer gradient start */
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-section p {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.cta-button-large {
    padding: 1.25rem 2.5rem; /* Larger padding */
    font-size: 1.1rem; /* Slightly larger text */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .login-container,
    .register-container,
    .battles-page-container,
    .leaderboard-page-container,
    .events-page-container { /* Added events page */
        /* Adjust min-height based on mobile footer size */
        min-height: calc(100vh - 81px - 700px); 
    }

    .events-page-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .cta-section h2 {
        font-size: 2rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
}

