/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #126e51;
    --primary-dark: #0d5940;
    --secondary: #027b5b;
    --accent: #ffdf1b;
    --accent-dark: #e6c400;
    --bg-dark: #1c2529;
    --bg-medium: #212a2d;
    --bg-light: #374345;
    --text-light: #f8f9fa;
    --text-muted: #b0b6bc;
    --win: #4caf50;
    --loss: #f44336;
    --border-color: #495057;
    /* --- MODIFIED: Reduced for a sharper, more minimal look --- */
    --border-radius: 0.3rem;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    --transition: all 0.25s ease-in-out;
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    /* --- MODIFIED: Reduced line-height for text density --- */
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* --- MODIFIED: Reduced responsive padding --- */
    padding: clamp(0.5rem, 1.5vw, 0.75rem);
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
    margin-bottom: 1rem; /* Reduced margin */
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
    /* --- MODIFIED: Reduced responsive gap --- */
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

/* --- MODIFIED: Combined rules for brevity, using clamps for responsiveness --- */
header .brand svg {
    width: clamp(1.75rem, 4vw, 2.25rem);
    height: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--accent);
}

header .brand-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600; /* Adjusted weight for consistency */
}

header .right-section {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem); /* Reduced gap */
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
}

.right-section {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced gap */
}

.countdown-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500; /* Slightly reduced weight */
    font-size: 0.8rem; /* Reduced font size */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--bg-light);
    /* --- MODIFIED: Reduced padding for a smaller pill shape --- */
    padding: 0.3rem 0.6rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.countdown-link:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.countdown-label {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced gap */
    background-color: var(--primary);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    /* --- MODIFIED: Reduced padding for a smaller button --- */
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition);
}
.nav-toggle:hover {
    background-color: var(--primary-dark);
}
.nav-toggle .filter-text {
    font-weight: 600;
    font-size: 0.9rem; /* Reduced font size */
}
.nav-toggle svg {
    width: 1rem; /* Reduced icon size */
    height: 1rem;
}

/* --- Filters (Mobile First: Hidden by default) --- */
.filters {
    display: none;
    background: var(--bg-medium);
    padding: 0.8rem; /* Reduced padding */
    border-radius: var(--border-radius);
    margin-bottom: 1rem; /* Reduced margin */
    grid-template-columns: 1fr;
    gap: 0.75rem; /* Reduced gap */
}

.filters.active {
    display: grid;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Reduced gap */
}

.filter-item label {
    font-size: 0.8rem; /* Reduced font size */
    font-weight: 500;
    color: var(--text-muted);
}

.filter-item select,
.filter-item input[type="text"] {
    /* --- MODIFIED: Reduced padding for smaller input fields --- */
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 0.25rem; /* Sharper radius */
    font-size: 0.9rem; /* Reduced font size */
    transition: var(--transition);
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23b0b6bc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center; /* Adjusted icon position */
    background-size: 14px; /* Slightly smaller icon */
}

.filter-item select:focus,
.filter-item input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 223, 27, 0.2); /* Reduced shadow */
}

.search {
    position: relative;
}
.search svg {
    position: absolute;
    left: 0.75rem; /* Adjusted icon position */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 1rem;
    height: 1rem;
}
.search input {
    padding-left: 2.5rem; /* Adjusted padding for icon */
}

#refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem; /* Reduced font size */
    line-height: 1;
    vertical-align: middle;
}
#refresh-btn:hover {
    background-color: var(--accent-dark);
}

/* --- Stats Section --- */
.stats {
    display: grid;
    /* --- MODIFIED: Reduced minmax for smaller cards on small screens --- */
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem; /* Reduced gap */
    margin-bottom: 1rem; /* Reduced margin */
}

.stat-card {
    background-color: var(--bg-medium);
    padding: 0.6rem; /* Reduced padding */
    border-radius: var(--border-radius);
    text-align: center;
    /* --- MODIFIED: Thinner border --- */
    border-top: 3px solid var(--primary);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px); /* Reduced hover effect */
}
.stat-card a {
    text-decoration: none;
}
.stat-title {
    font-size: 0.7rem; /* Reduced font size */
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value {
    font-size: 1rem; /* Reduced font size */
    font-weight: 700;
    color: var(--accent);
}

/* --- Predictions Section --- */
#predictions-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; /* Reduced gap */
}

.prediction-card {
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    /* --- MODIFIED: Thinner border --- */
    border-left: 3px solid var(--primary);
}
.prediction-card:hover {
    transform: translateY(-4px); /* Reduced hover effect */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25); /* Adjusted shadow */
}
.prediction-card.win { border-left-color: var(--win); }
.prediction-card.loss { border-left-color: var(--loss); }

.date {
    background-color: var(--primary);
    color: var(--text-light);
    /* --- MODIFIED: Reduced padding for a thinner bar --- */
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    font-size: 0.9rem; /* Reduced font size */
    text-align: center;
}

.match {
    padding: 0.8rem; /* Reduced padding */
    border-bottom: 1px solid var(--border-color);
}
.match:last-of-type { border-bottom: none; }
.team {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem; /* Reduced margin */
    color: var(--text-light);
    font-size: 0.95rem; /* Reduced font size */
}
.league, .prediction {
    display: inline-block;
    font-size: 0.75rem; /* Reduced font size */
    /* --- MODIFIED: Reduced padding for smaller pills --- */
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
}
.league {
    background-color: var(--bg-light);
    color: var(--text-muted);
}
.prediction {
    background-color: var(--accent);
    color: var(--bg-dark);
}
.confidence, .odds, .score, .result {
    font-size: 0.8rem; /* Reduced font size */
    color: var(--text-muted);
}
.score {
    font-weight: 600;
    color: var(--text-light);
}
.result { font-weight: 600; }
.bet-info {
    background-color: var(--bg-dark);
    padding: 0.75rem; /* Reduced padding */
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Reduced gap */
    justify-content: space-between;
    align-items: center;
}
.bet-type, .bet-odds, .bet-result, .bet-profit {
    font-size: 0.85rem; /* Reduced font size */
    font-weight: 500;
    color: var(--text-muted);
}

/* --- Utility & Loading States --- */
.loading, .error, .no-predictions {
    text-align: center;
    padding: 1.5rem; /* Reduced padding */
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
}
.loading { color: var(--accent); }
.error { color: var(--loss); }
.no-predictions { color: var(--text-muted); }

/* --- Informational Cards & Footer --- */
.contact-card, .faq-section, footer {
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
    padding: 1.25rem; /* Reduced padding */
    margin-top: 1rem; /* Reduced margin */
    box-shadow: var(--box-shadow);
}
.card-title {
    font-size: 1.3rem; /* Reduced font size */
    font-weight: 700;
    margin-bottom: 0.8rem; /* Reduced margin */
    color: var(--text-light);
}
.card-description {
    color: var(--text-muted);
    margin-bottom: 1rem; /* Reduced margin */
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem; /* Reduced margin */
    padding: 0.75rem; /* Reduced padding */
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}
.contact-icon {
    background: var(--primary);
    /* --- MODIFIED: Smaller icon container --- */
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem; /* Reduced margin */
    flex-shrink: 0;
    font-weight: 700;
}
.contact-content h3 {
    font-size: 1rem; /* Reduced font size */
    font-weight: 600;
    margin-bottom: 0.2rem; /* Reduced margin */
}
.contact-content p { color: var(--text-muted); }
.contact-content a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
.contact-content a:hover { text-decoration: underline; }
.footer-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem; /* Reduced font size */
    color: var(--text-muted);
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border: 0;
    /* --- MODIFIED: Reduced padding for a smaller button --- */
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}
.btn-primary:hover { background: var(--accent-dark); }
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced gap */
    margin: 1rem 0; /* Reduced margin */
}
.qr-code {
    /* --- MODIFIED: Smaller QR code --- */
    width: 8rem;
    height: 8rem;
    background: #fff;
    padding: 0.4rem; /* Reduced padding */
    border-radius: var(--border-radius);
    margin: 0 auto;
}
.resources-container {
    height: 350px; /* Reduced height */
    border-radius: var(--border-radius);
    margin: 1rem 0; /* Reduced margin */
    overflow: hidden;
}
.resources-frame {
    width: 100%;
    height: 100%;
    border: 0;
}
.responsible-betting, .footer-links {
    text-align: center;
    margin-bottom: 1rem; /* Reduced margin */
}
.responsible-betting h3 { margin-bottom: 0.5rem; }
.responsible-betting p { color: var(--text-muted); font-size: 0.85rem; }
.social-links {
    display: flex;
    gap: 0.75rem; /* Reduced gap */
    justify-content: center;
}
.social-link {
    background: var(--bg-light);
    border-radius: 50%;
    /* --- MODIFIED: Smaller social icons --- */
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--accent);
}
.social-link:hover {
    transform: translateY(-2px); /* Reduced hover effect */
    background: var(--primary);
}
.social-link svg {
    width: 1rem; /* Reduced icon size */
    height: 1rem;
}

/* --- FAQ Section --- */
.faq-header {
    padding-bottom: 0.8rem; /* Reduced padding */
    margin-bottom: 0.8rem; /* Reduced margin */
    border-bottom: 1px solid var(--border-color);
}
.faq-title {
    font-size: 1.1rem; /* Reduced font size */
    font-weight: 600;
    color: var(--accent);
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child { border-bottom: none; }
.faq-item input[type="checkbox"] { display: none; }
.faq-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0; /* Reduced padding */
    cursor: pointer;
    font-size: 0.95rem; /* Reduced font size */
    font-weight: 500;
    transition: var(--transition);
}
.faq-item label:hover { color: var(--accent); }
.faq-arrow {
    transition: transform 0.3s ease;
}
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}
.faq-answer-content {
    padding-bottom: 0.8rem; /* Reduced padding */
    color: var(--text-muted);
}
.faq-answer-content a { color: var(--accent); }
.faq-item input:checked ~ .faq-answer {
    max-height: 20rem;
}
.faq-item input:checked ~ label .faq-arrow {
    transform: rotate(180deg);
}
.faq-item input:checked ~ label {
    color: var(--accent);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; } /* Thinner scrollbar */
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px; /* Adjusted radius */
}
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* --- Media Queries (Tablet and up) --- */
@media (min-width: 768px) {
    .container { padding: 1.25rem; } /* Reduced padding */
    .nav-toggle { display: none; }
    .filters {
        display: grid;
        /* --- MODIFIED: Reduced minmax for more compact filters --- */
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem; /* Reduced gap */
    }
    .search { grid-column: span 2; }
    #refresh-btn { grid-column: 1 / -1; }
    #predictions-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .payment-options {
        flex-direction: row;
        gap: 1.5rem; /* Reduced gap */
    }
    .paypal-container, .qr-container { flex: 1; }
    .card-title { font-size: 1.5rem; } /* Slightly larger title for bigger screens */
}

/* --- Media Queries (Large Desktop) --- */
@media (min-width: 1024px) {
    #predictions-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .resources-container { height: 450px; } /* Adjusted height */
}