@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00f3ff;
    --secondary-color: #ff003c;
    --bg-dark: #0a0a14;
    --bg-darker: #05050a;
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --status-registered: #00ff4c;
    --status-out: #ff003c;
    --card-bg: rgba(16, 16, 32, 0.8);
    --card-border: rgba(0, 243, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
.logo,
.tagline,
.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0));
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(5, 5, 10, 0.7), rgba(5, 5, 10, 0.7)),
        url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-darker) 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    animation: pulse 2s infinite alternate;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    }
}

/* CTA Button */
.cta-button {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), #0099cc);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: var(--bg-dark);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.5);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.cta-button:hover .button-glow {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Section Styling */
.section-container {
    padding: 5rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-divider {
    height: 4px;
    width: 100px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

/* Register Section */
.register-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.register-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.register-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.register-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.register-button {
    position: relative;
    background: linear-gradient(45deg, var(--secondary-color), #cc0033);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
}

.register-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 0, 60, 0.5);
}

.button-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.register-button:hover .button-particles {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Tournament Info Section */
.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tournament-date-time {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 2rem;
    min-width: 250px;
    flex: 1;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
}

.detail-card h3 {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.detail-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.announcement-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
}

.announcement-card h3 {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    text-align: center;
}

.announcement-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
}

/* Players Billboard */
.players-billboard {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.billboard-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem 2rem;
    background: rgba(0, 243, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.billboard-content {
    max-height: 500px;
    overflow-y: auto;
}

.player-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.player-row:hover {
    background-color: rgba(0, 243, 255, 0.05);
}

.player-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-registered .status-indicator {
    background-color: var(--status-registered);
    box-shadow: 0 0 10px var(--status-registered);
}

.status-out .status-indicator {
    background-color: var(--status-out);
    box-shadow: 0 0 10px var(--status-out);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 3rem 5%;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .detail-card {
        padding: 1.5rem;
        min-width: 200px;
    }

    .detail-value {
        font-size: 1.5rem;
    }

    .billboard-header,
    .player-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        padding: 1rem;
    }

    .register-card {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-container {
        padding: 3rem 1rem;
    }

    .tournament-date-time {
        flex-direction: column;
        gap: 1rem;
    }

    /* FIXED: Keep ID visible on mobile */
    .billboard-header,
    .player-row {
        grid-template-columns: 1.2fr 0.8fr 1fr;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .col-name {
        font-size: 0.85rem;
    }

    .col-id {
        font-size: 0.8rem;
        text-align: center;
    }

    .col-status {
        font-size: 0.8rem;
    }

    .register-card {
        padding: 1.5rem;
    }

    .register-card h3 {
        font-size: 1.5rem;
    }

    .register-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}