@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Rajdhani:wght@600;700;800&display=swap');

:root {
    --bg-main: #090d16;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --border-card: #1f293d;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Padel Neon Palette */
    --padel-neon: #ccff00;      /* Electric Neon Ball */
    --padel-green: #10b981;     /* Turf Green */
    --padel-cyan: #06b6d4;      /* Court Cyan */
    --padel-orange: #f97316;    /* Match Point Orange */
    --padel-red: #ef4444;       /* Loss / Error */
    --padel-dark: #050811;

    --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-digit: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-badge {
    background: linear-gradient(135deg, var(--padel-neon), var(--padel-green));
    color: #000;
    font-weight: 900;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: var(--padel-neon);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: var(--bg-card-hover);
}

.nav-link.active {
    color: var(--padel-neon);
    background: rgba(204, 255, 0, 0.08);
    border: 1px solid rgba(204, 255, 0, 0.2);
}

.nav-btn-tv {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.nav-btn-tv:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 20px;
    width: 100%;
    flex: 1;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-main);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--padel-neon);
    color: #050811;
}

.btn-primary:hover {
    background: #ddff33;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.35);
}

.btn-cyan {
    background: var(--padel-cyan);
    color: #fff;
}

.btn-cyan:hover {
    background: #22d3ee;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
    background: #1f2937;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background: #374151;
    color: #fff;
}

.btn-success {
    background: var(--padel-green);
    color: #064e3b;
}

.btn-danger {
    background: var(--padel-red);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 12px;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 1.5s infinite;
}

.badge-upcoming {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.badge-finished {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

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

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

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

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-card);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--padel-neon);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
