/* ============================================
   STATE LEVEL CRICKET TOURNAMENT WEBSITE
   Main Stylesheet
   ============================================ */

/* ===== CSS Variables / Design Tokens ===== */
:root {
    --primary: #1a5276;
    --primary-dark: #0e2f44;
    --primary-light: #2980b9;
    --secondary: #27ae60;
    --secondary-dark: #1e8449;
    --secondary-light: #2ecc71;
    --accent: #f39c12;
    --accent-dark: #d68910;
    --accent-light: #f1c40f;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 15px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    height: var(--header-height);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    white-space: nowrap;
    margin-left: -25px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.nav-menu .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== Dropdown Navigation ===== */
/* Dropdown styles removed - navigation now uses direct links */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text-white);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--accent);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.hero .date-venue {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .date-venue i {
    margin-right: 5px;
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Countdown Timer ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: var(--radius);
    min-width: 100px;
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
}

.countdown-item .label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ===== Highlights / Stats Section ===== */
.highlights {
    background: var(--text-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--text-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.stat-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--text-white);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-card .label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--text-white);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-feature i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 5px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* ===== Rules Section ===== */
.rules {
    background: var(--text-white);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.rule-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.rule-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.rule-card .rule-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.rule-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.rule-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Registration Form ===== */
.registration {
    background: var(--bg-light);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--text-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--secondary);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 0;
    line-height: 1.4;
}

.field-error:empty {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232c3e50' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* ===== Team Name Autocomplete ===== */
.team-name-search {
    position: relative;
}

.team-name-suggestions {
    display: none;
    position: absolute;
    top: calc(100% - 20px);
    left: 0;
    right: 0;
    z-index: 20;
    overflow: hidden;
    background: var(--text-white);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.team-name-suggestions.is-visible {
    display: block;
}

.team-name-suggestion {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: var(--text-dark);
    background: var(--text-white);
    border: 0;
    border-bottom: 1px solid var(--border);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.team-name-suggestion:last-child {
    border-bottom: 0;
}

.team-name-suggestion:hover,
.team-name-suggestion:focus {
    color: var(--primary-dark);
    background: rgba(41, 128, 185, 0.1);
    outline: none;
}

.existing-team-notice {
    margin-top: -5px;
    margin-bottom: 20px;
    padding: 14px 16px;
    color: var(--primary-dark);
    background: rgba(41, 128, 185, 0.09);
    border-left: 4px solid var(--primary-light);
    border-radius: var(--radius);
}

.existing-team-notice strong {
    color: var(--primary);
}

.existing-team-notice ul {
    margin: 8px 0 0 20px;
}

/* ===== Player Entry ===== */
.player-entry {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border: 1px solid var(--border);
    position: relative;
}

.player-entry .remove-player {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: var(--text-white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.player-entry .remove-player:hover {
    background: #c0392b;
}

.player-count {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

.add-player-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.add-player-btn:hover {
    background: var(--primary-dark);
}

/* ===== File Upload ===== */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-light);
    background: rgba(41, 128, 185, 0.05);
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.file-upload p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.file-upload input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ===== Payment Section ===== */
.payment-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.payment-summary .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--secondary);
    background: rgba(39, 174, 96, 0.05);
}

.payment-method i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.payment-method span {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.qr-code {
    text-align: center;
    padding: 30px;
    background: var(--text-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 20px 0;
}

.qr-code img {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
}

/* ===== Form Submit Button ===== */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    padding: 15px 50px;
    font-size: 1.1rem;
}

/* ===== Teams List Page ===== */
.teams {
    background: var(--text-white);
}

.teams-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.teams-filter select,
.teams-filter input {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 25px;
    text-align: center;
    color: var(--text-white);
}

.team-card-header .team-logo {
    width: 80px;
    height: 80px;
    background: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.team-card-header h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-card-body {
    padding: 20px;
}

.team-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.team-card-body p i {
    width: 20px;
    color: var(--primary);
    margin-right: 5px;
}

.team-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-registered {
    background: rgba(39, 174, 96, 0.1);
    color: var(--secondary);
}

.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent);
}

/* ===== Fixtures & Results Page ===== */
.fixtures {
    background: var(--bg-light);
}

.match-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.match-card:hover {
    box-shadow: var(--shadow-lg);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.match-date {
    color: var(--text-light);
    font-size: 0.95rem;
}

.match-date i {
    margin-right: 5px;
    color: var(--primary);
}

.match-status {
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-upcoming {
    background: rgba(41, 128, 185, 0.1);
    color: var(--primary-light);
}

.match-live {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    animation: pulse 1.5s infinite;
}

.match-completed {
    background: rgba(39, 174, 96, 0.1);
    color: var(--secondary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.match-team {
    padding: 15px;
}

.match-team .team-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.match-team .team-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 5px;
}

.match-team .team-overs {
    color: var(--text-light);
    font-size: 0.9rem;
}

.match-vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.match-venue {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* ===== Points Table ===== */
.points-table {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.points-table table {
    width: 100%;
    border-collapse: collapse;
}

.points-table th {
    background: var(--primary);
    color: var(--text-white);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.points-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.points-table tr:hover td {
    background: var(--bg-light);
}

.points-table .position {
    font-weight: 700;
}

.points-table .position-1 { color: var(--accent); }
.points-table .position-2 { color: var(--text-light); }
.points-table .position-3 { color: #cd7f32; }

/* ===== Gallery Page ===== */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .overlay h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.gallery-item .overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== Contact Page ===== */
.contact {
    background: var(--text-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 25px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
}

.contact-detail h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-detail p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.footer-about .logo {
    color: var(--text-white);
    margin-bottom: 15px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary);
}

/* ===== Page Header Banner ===== */
.page-header {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
    color: var(--text-white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Toast / Notification ===== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: var(--radius);
    color: var(--text-white);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: var(--transition);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: var(--secondary);
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: var(--primary-light);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: #e74c3c;
}

/* ===== Player Status Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: rgba(39, 174, 96, 0.15);
    color: var(--secondary);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--accent);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.badge-primary {
    background: rgba(26, 82, 118, 0.15);
    color: var(--primary);
}

.badge-info {
    background: rgba(41, 128, 185, 0.15);
    color: var(--primary-light);
}

/* ===== Player Details Page ===== */
.player-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--text-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.player-details-table th {
    background: var(--primary);
    color: var(--text-white);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.player-details-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.player-details-table tr:last-child td {
    border-bottom: none;
}

.player-details-table tr:nth-child(even) td {
    background: var(--bg-light);
}

.player-details-table .player-name {
    font-weight: 700;
    color: var(--primary);
}

.player-photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border);
}

.player-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.player-doc-link:hover {
    text-decoration: underline;
}

/* ===== Team Detail Header ===== */
.team-detail-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-white);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.team-detail-header .team-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.team-detail-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.team-detail-header .district {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.team-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.team-detail-meta .meta-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.team-detail-meta .meta-item .label {
    font-weight: 600;
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    section {
        padding: 50px 0;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--text-white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1.1rem; }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }
    
    .countdown-item .number {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: -50px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .match-vs {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Responsive - Small Mobile ===== */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: calc(50% - 10px);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .hamburger,
    .nav-menu .btn {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .form-container {
        box-shadow: none;
        padding: 0;
    }
}

/* ===== Loading & Error States ===== */
.loading-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-light);
}

.loading-state i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.loading-state p {
    font-size: 1.1rem;
}

.error-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.error-state i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.error-state h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error-state p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== Committee Section ===== */
.committee-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.cricket-player-bg {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.player-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


.news-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.news-title {
    background: var(--primary-dark);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.3rem;
    display: inline-block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.btn-get-more {
    float: right;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 8px 15px 0 0;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-get-more:hover {
    background: #c0392b;
    color: white;
}

.news-list {
    padding: 20px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.news-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.committee-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.committee-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.committee-card-sidebar {
    text-align: center;
}

.committee-photo-small {
    width: 100%;
    height: 220px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0;
    border-radius: var(--radius);
}

.committee-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.committee-card-sidebar h4 {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    padding: 10px 10px 3px;
}

.designation-small {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 0 10px 10px;
}


@media (max-width: 768px) {
    .committee-layout {
        grid-template-columns: 1fr;
    }
    
    .committee-photos {
        grid-template-columns: 1fr;
    }
    
    .news-date {
        min-width: 100px;
        font-size: 0.7rem;
    }
}
