:root {
    /* Padel Palette */
    --primary: #B8E986;
    /* Tennis Ball Green */
    --secondary: #4A90E2;
    /* Court Blue */
    --accent: #F5A623;
    /* Clay Orange */
    --bg-body: #F9F9F9;
    --bg-card: #FFFFFF;
    --text-main: #333333;
    --text-light: #777777;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* UI */
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="clay-court"] {
    --primary: #D35400;
    /* Clay Red */
    --secondary: #2C3E50;
    /* Dark Slate */
    --bg-body: #FDF2E9;
}

[data-theme="night-match"] {
    --primary: #00E5FF;
    /* Neon Blue */
    --secondary: #121212;
    /* Night Black */
    --bg-body: #1E1E1E;
    --bg-card: #2C2C2C;
    --text-main: #FFFFFF;
    --text-light: #AAAAAA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-ball {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-book {
    padding: 0.8rem 2rem;
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-book:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* Hero */
.hero {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #2980B9 100%);
    color: white;
    border-radius: 0 0 50% 50% / 40px;
}

[data-theme="clay-court"] .hero {
    background: linear-gradient(135deg, #D35400 0%, #E67E22 100%);
}

[data-theme="night-match"] .hero {
    background: linear-gradient(135deg, #121212 0%, #2C2C2C 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Booking Widget (Simulated) */
.booking-widget {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-main);
}

/* Courts */
.courts {
    padding: 6rem 0;
}

.court-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.court-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.court-card:hover {
    transform: translateY(-5px);
}

.court-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.court-info {
    padding: 1.5rem;
}

.court-status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Tournaments */
.tournaments {
    padding: 6rem 0;
    background: var(--bg-body);
}

.bracket {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.match-score {
    font-weight: 700;
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .booking-widget {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}