/* File: public/styles.css */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #4f46e5;
    --accent-color: #f59e0b;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --success-color: #10b981;
    --team1-color: #ec4899;
    --team2-color: #3b82f6;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9fafb;
}

body.age-not-verified {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-content h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--info-color);
}

.disclaimer-text {
    background-color: #eff6ff;
    border: 1px solid var(--info-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    color: #1e40af;
}

.verification-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: var(--dark-color);
}

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.9)), url('/cricket-stadium.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.prediction-history {
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.history-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
}
.history-match-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f1f1f1;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.history-match-container h4 {
    margin-top: 0;
    color: #333;
}

.history-match-container p {
    margin: 5px 0;
    color: #555;
}
.match-success {
    border: 3px solid green;
}
.match-failed {
    border: 3px solid red;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Disclaimer Styles */
.prediction-disclaimer {
    padding: 1.5rem 0;
}

.disclaimer-box {
    background-color: #f0f9ff;
    border: 1px solid var(--info-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.disclaimer-box h3 {
    color: var(--info-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.disclaimer-box p {
    color: #0c4a6e;
}

/* Disclaimer Footer */
.disclaimer-footer {
    background-color: var(--info-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.disclaimer-footer p {
    font-weight: 500;
}

/* View Sections */
.view-section {
    padding: 3rem 0;
    display: none;
}

.view-section.active {
    display: block;
}

/* Prediction View */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--secondary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.match-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.match-date {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.match-venue {
    font-size: 1.1rem;
    font-weight: 600;
}

.match-teams {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    text-align: center;
    width: 45%;
}

.team-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}

.team-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.match-prediction {
    background-color: #f9fafb;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.prediction-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.predicted-winner {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success-color);
}
.actual-winner{
  font-size: 1.3rem;
  font-weight: 700;
  color:#4B0082;
}

.no-matches {
    text-align: center;
    padding: 3rem 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none;
}

/* Schedule View */
.schedule-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.schedule-filter input,
.schedule-filter select {
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
}

.schedule-filter input {
    flex: 1;
}

.schedule-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: #f9fafb;
}

.schedule-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-team-logo {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-team-logo img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}

/* Teams View */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.team-logo-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-card-content {
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.team-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Team Detail View */
.back-button {
    margin-bottom: 2rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-logo-large {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-large img {
    max-width: 100%;
    max-height: 100%;
}

.team-info h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.team-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 150px;
}

.stat-label {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.player-categories {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.player-category {
    padding: 0.5rem 1rem;
    background-color: #e5e7eb;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-category.active {
    background-color: var(--primary-color);
    color: white;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.player-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.player-image {
    height: 180px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-image img {
    max-height: 100%;
    max-width: 100%;
}

.player-info {
    padding: 1rem;
    text-align: center;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.player-role {
    color: #6b7280;
    font-size: 0.9rem;
}

.how-it-works {
    padding: 4rem 0;
    background-color: var(--light-color);
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    nav ul li {
        margin: 0 0.7rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .team-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .verification-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .schedule-filter {
        flex-direction: column;
    }

    .team-stats {
        flex-direction: column;
    }
}

.countdown {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
    background-color: #ffe9c7;
    border: 2px dashed #ff9500;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 500px;
}
