/* =========================================
   1. GLOBAL STYLES & CSS VARIABLES
   ========================================= */

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

:root {
    /* Define primary brand colors for a dark betting/gaming theme */
    --primary-color: #00ff88;      /* Bright green/neon for action and highlights */
    --secondary-color: #00b362;    /* Darker green for hover/secondary elements */
    --background-dark: #1e272e;    /* Dark slate background for the body */
    --card-dark: #2c3a47;          /* Slightly lighter dark background for cards/containers */
    --header-dark: #12181d;        /* Very dark background for header/footer */
    --text-light: #f5f6fa;         /* Light text for contrast */
    --text-muted: #a4b0be;         /* Muted text for subtitles/paragraphs */
    --border-color: #485460;       /* Border color for separation */
    --max-width: 1200px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    /* Ensure the body fills the viewport for alignment */
    min-height: 100vh;
    display: flex; /* Helps center login and structure homepage */
    flex-direction: column;
}

/* =========================================
   2. HOMEPAGE (index.html) STYLES
   ========================================= */

/* --- Header and Navigation --- */
.main-header {
    background-color: var(--header-dark);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 2px solid var(--primary-color);
}

.logo-area h2 {
    font-size: 28px;
    font-weight: 700;
}

.logo-area span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Specific styling for the Log In button in the nav */
.login-button {
    background-color: var(--primary-color);
    color: var(--header-dark) !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-weight: 700;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: var(--header-dark) !important;
}

/* --- Banner Section --- */
.banner {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.banner-overlay h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.banner-overlay p {
    font-size: 1.2em;
    color: var(--text-light);
}

/* --- Main Content Layout --- */
main {
    flex-grow: 1; /* Allows content area to take up all available vertical space */
}

.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

/* --- Sports Sidebar --- */
.sports-list {
    background-color: var(--card-dark);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.sports-list h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sports-list ol {
    list-style: none;
}

.sports-list li {
    padding: 8px 0;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sports-list li:hover {
    color: var(--primary-color);
    background-color: rgba(0, 255, 136, 0.1);
    padding-left: 5px;
}

/* --- Welcome Text Area --- */
.welcome-text-area h2 {
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.welcome-text-area span {
    color: var(--primary-color);
}

.welcome-text-area p {
    margin-bottom: 15px;
    color: var(--text-muted);
    text-align: justify;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--header-dark);
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}
/* =========================================
   4. RESPONSIVE / MEDIA QUERIES
   ========================================= */

/* Mobile adjustments for Homepage */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 10px 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
        gap: 15px;
    }

    .banner-overlay h1 {
        font-size: 2em;
    }

    .content-wrapper {
        grid-template-columns: 1fr; /* Stack sidebar and main content */
        gap: 30px;
        padding: 15px;
    }
}

/* Mobile adjustments for Login Page */
@media (max-width: 500px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
        box-shadow: none;
        border: none;
        max-width: 100%;
    }
}
    

     /* ... THIS IS THE TIPS STYLE///// */
     /* Specific Styles for Tips Page */
        .tips-container {
            max-width: 900px;
            margin: 40px auto;
            padding: 0 20px;
        }
        .section-header {
            text-align: center;
            margin-bottom: 40px;
        }
        .section-header h1 {
            color: var(--primary-color);
            font-size: 2.5rem;
        }
        .section-header p {
            color: var(--text-muted);
        }

        .tip-card {
            background-color: var(--card-dark);
            border-radius: 10px;
            margin-bottom: 20px;
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 2fr 1.5fr;
            align-items: center;
            border-left: 5px solid var(--border-color);
            transition: transform 0.2s;
        }
        
        /* High confidence border green, Med yellow, Low red */
        .confidence-high { border-left-color: #00ff88; }
        .confidence-med { border-left-color: #ffaa00; }

        .tip-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .match-info {
            border-right: 1px solid var(--border-color);
            padding-right: 15px;
        }
        .league-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .match-time {
            font-weight: bold;
            color: var(--text-light);
        }

        .match-teams {
            padding: 0 20px;
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .vs-tag {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 400;
        }

        .prediction-box {
            text-align: center;
            background: rgba(0,0,0,0.2);
            padding: 10px;
            border-radius: 8px;
        }
        .tip-label {
            display: block;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .tip-value {
            display: block;
            font-size: 1.1rem;
            color: var(--primary-color);
            font-weight: bold;
            margin: 5px 0;
        }
        .confidence-bar {
            height: 4px;
            background: #333;
            border-radius: 2px;
            margin-top: 5px;
            overflow: hidden;
        }
        .confidence-fill {
            height: 100%;
            background: var(--primary-color);
        }
        .insight-text {
            grid-column: 1 / -1;
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9rem;
            color: #a4b0be;
            font-style: italic;
        }
.insight-text i { color: var(--primary-color); margin-right: 5px; }

/* Responsive */
@media (max-width: 768px) {
    .tip-card {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .match-info { border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
}

    /* DAY SELECTOR BUTTONS */
.day-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.day-btn {
    background: #1a1a1a;
    color: #aaa;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.day-btn:hover {
    background: #2ecc71;
    color: #000;
    border-color: #2ecc71;
}

.day-btn.active {
    background: #2ecc71;
    color: #000;
    border-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.selected-date {
    text-align: center;
    color: #2ecc71;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}
/* =========================================
   1. CSS VARIABLES (Theme Settings)
   ========================================= */
:root {
    --bg-dark: #050505;
    --card-bg: #121212;
    --primary-green: #2ecc71; /* Bright Green */
    --accent-gold: #f1c40f;   /* Gold for Premium */
    --text-white: #ffffff;
    --text-muted: #888888;
    --danger: #e74c3c;
    --border: #333333;
    --font-main: 'Poppins', sans-serif;
}

/* =========================================
   2. Global Resets
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding-bottom: 50px;
    line-height: 1.6;
}

/* =========================================
   3. Navigation Styles
   ========================================= */
.main-header {
    background: rgba(18, 18, 18, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h2 {
    font-size: 1.5rem;
    color: var(--text-white);
}

.logo span {
    color: var(--primary-green);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: 600;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--primary-green);
}

/* =========================================
   4. Status Bar (Free vs Premium Badge)
   ========================================= */
.status-bar {
    background: linear-gradient(90deg, #1e1e1e, #121212);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-free {
    background: #333;
    color: #ccc;
    border: 1px solid #555;
}

.status-premium {
    background: rgba(46, 204, 113, 0.2);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

/* =========================================
   5. Main Tips Container
   ========================================= */
.tips-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--primary-green);
}

/* =========================================
   6. Card Design
   ========================================= */
.tip-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.1);
}

/* Card Header (League & Time) */
.card-header {
    background: #1a1a1a;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

/* Match Content */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.vs {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Stats & Prediction Area */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-white);
}

/* =========================================
   7. Free User Effects (Blur & Lock)
   ========================================= */
.blurred {
    filter: blur(6px);
    user-select: none;
    opacity: 0.6;
}

.lock-overlay {
    color: var(--accent-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

/* =========================================
   8. Confidence Bar
   ========================================= */
.confidence-wrapper {
    width: 100%;
    margin-top: 15px;
}

.confidence-bar-bg {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--primary-green);
}

/* =========================================
   9. Upgrade Banner
   ========================================= */
.upgrade-banner {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(45deg, #121212, #0f1c15);
    border: 1px solid var(--primary-green);
    border-radius: 10px;
    display: none; /* Hidden by default, JS enables it */
}

.btn-upgrade {
    background: var(--primary-green);
    color: #000;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-upgrade:hover {
    background: #27ae60;
}

/* =========================================
   10. Footer
   ========================================= */
.main-footer {
    text-align: center;
    margin-top: 50px;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
}

/* =========================================
   11. Responsive Design
   ========================================= */
@media (max-width: 600px) {
    .matchup {
        flex-direction: column;
        gap: 5px;
    }

    .vs {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
}
/* Theme Colors from your Screenshots */
:root {
    --primary-green: #2ecc71;
    --dark-bg: #050505;
    --card-bg: #121212;
    --text-main: #ffffff;
    --text-dim: #888;
    --live-red: #e74c3c;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
}

.tip-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: 0.3s;
}

/* Real-Time Status Indicators */
.status-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-live { background: var(--live-red); color: white; animation: blink 1.5s infinite; }
.status-ft { background: #444; color: #aaa; }
.status-ns { background: var(--primary-green); color: black; }

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.match-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    background: #1a1a1a;
    padding: 5px 15px;
    border-radius: 5px;
}

/* =========================================
   Social Media Integration Styles
   ========================================= */
.social-hub {
    background: #0f0f0f;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 50px;
}

.social-hub h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.social-hub span {
    color: #2ecc71; /* Your primary green */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

/* Brand Colors on Hover */
.social-btn:hover {
    transform: translateY(-5px);
    color: white;
    border-color: transparent;
}

/* Facebook Blue */
.social-btn.fb:hover {
    background: #1877F2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
}

/* X (Twitter) Black/White */
.social-btn.x:hover {
    background: #000;
    border: 1px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Telegram Blue */
.social-btn.tg:hover {
    background: #0088cc;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
}

/* Instagram Gradient */
.social-btn.ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
}

/* About Us Description Styling */
.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc; /* Light grey text for readability on dark background */
    max-width: 800px;
    margin: 0 auto 30px auto; /* Centers the text */
    text-align: center;
    padding: 0 20px;
}

.about-description strong {
    color: #ffffff; /* Pure white for strong emphasis */
    font-weight: 700;
}

.about-description .highlight {
    color: #2ecc71; /* Your brand's primary green */
    font-weight: 600;
}
/* =========================================
   Testimonials Section Styles
   ========================================= */
.testimonials-section {
    background-color: #0b0b0b; /* Slightly lighter than main bg */
    padding: 60px 20px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.testimonials-section .subtitle {
    color: #888;
    font-size: 1rem;
}

/* Grid Layout */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Review Card Design */
.review-card {
    background: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.1); /* Green glow */
    border-color: #2ecc71;
}

/* User Profile Area */
.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.user-info h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.user-type {
    color: #f1c40f; /* Gold color for status */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Star Ratings */
.stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* The Testimonial Paragraph */
.review-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

.review-text .highlight {
    color: #2ecc71;
    font-weight: 600;
    font-style: normal;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* =========================================
   Match status badges + responsive match grid (tips page)
   ========================================= */
.ms {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; white-space: nowrap; line-height: 1.4;
}
.ms-live     { background: rgba(231,76,60,.14);  color: #ff6b5c; border: 1px solid rgba(231,76,60,.55); }
.ms-pending  { background: rgba(241,196,15,.10); color: #f1c40f; border: 1px solid rgba(241,196,15,.35); }
.ms-finished { background: rgba(46,204,113,.10); color: #2ecc71; border: 1px solid rgba(46,204,113,.35); }
.ms-off      { background: #222; color: #aaa; border: 1px solid #444; }
.ms-dot {
    width: 7px; height: 7px; border-radius: 50%; background: currentColor;
    animation: ms-pulse 1.2s ease-in-out infinite;
}
@keyframes ms-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .ms-dot { animation: none; } }

.tip-card.is-live     { border-color: rgba(231,76,60,.55); box-shadow: 0 0 0 1px rgba(231,76,60,.15), 0 4px 18px rgba(231,76,60,.08); }
.tip-card.is-finished { border-color: #2a2a2a; }
.tip-card.is-off      { opacity: .7; }

.card-header { flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.card-header .ch-league { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.card-header .ch-right  { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }

.vs.score { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: 2px; min-width: 76px; text-align: center; white-space: nowrap; }
.ms-sub   { width: 100%; text-align: center; font-size: .8rem; color: #f1c40f; margin-top: -4px; }
.odds-1x2 { text-align: center; color: #888; font-size: .78rem; margin-top: 6px; }

/* grouped sections: 1 column on phones, 2 on wider screens */
.match-section { margin-bottom: 28px; }
.match-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 700; color: #ddd; margin: 0 0 12px;
}
.match-section-title .count { background: #1f1f1f; border-radius: 999px; padding: 1px 9px; font-size: .75rem; color: #aaa; font-weight: 600; }
.match-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; }
.match-grid .tip-card { margin-bottom: 0; }

/* filter chips: scroll sideways on small screens instead of wrapping */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
    flex: 0 0 auto; background: #1a1a1a; color: #aaa; border: 1px solid #333; border-radius: 999px;
    padding: 8px 15px; font-size: .85rem; font-weight: 600; font-family: inherit; cursor: pointer; min-height: 38px;
}
.filter-chip:hover { border-color: #2ecc71; color: #fff; }
.filter-chip.active { background: #2ecc71; color: #000; border-color: #2ecc71; }
.filter-chip .n { margin-left: 6px; opacity: .7; font-weight: 700; }

.feed-note       { color: #e67e22; text-align: center; padding: 8px; font-size: .9rem; }
.feed-note.admin { color: #ff8a8a; font-size: .8rem; }
.empty-note      { color: #888; text-align: center; padding: 30px 10px; }

@media (max-width: 600px) {
    .tips-container { padding: 0 12px; }
    .match-grid { gap: 12px; }
    .tips-container .card-body { padding: 16px 14px; }
    /* keep "Home  1 - 0  Away" on one row on phones instead of stacking + rotating the score */
    .tips-container .matchup { flex-direction: row; gap: 8px; align-items: center; }
    .tips-container .matchup .vs { transform: none; margin: 0; }
    .tips-container .team-name { font-size: .95rem; overflow-wrap: anywhere; }
    .vs.score { font-size: 1.4rem; min-width: 64px; }
    .card-header { padding: 10px 14px; font-size: .75rem; }
    .day-selector { gap: 6px; margin: 18px 0; }
    .day-btn { padding: 9px 11px; font-size: .8rem; flex: 1 1 auto; text-align: center; }
}
@media (max-width: 360px) {
    .card-header .ch-right { justify-content: flex-start; margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
}
@media (hover: none) { .tip-card:hover { transform: none; } }

/* =========================================
   FIX: cards were squeezed sideways.
   An old rule (".tip-card { display:grid; grid-template-columns: 1fr 2fr 1.5fr }") from the
   previous 3-part card layout was still applying. With today's 2-part card (header + body) it put
   the header in a narrow left column, crushed the match into the middle one and left the third
   empty. Cards now stack: header on top, match underneath, using the full card width.
   ========================================= */
.tips-container .tip-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    padding: 0;                 /* header strip runs edge to edge; .card-body has its own padding */
    min-width: 0;
}
.tips-container .card-header { padding: 12px 18px; }
.tips-container .card-body   { padding: 20px 18px; width: 100%; box-sizing: border-box; min-width: 0; }
.match-grid > * { min-width: 0; }

/* Team names: equal columns either side of the score, wrap long names instead of clipping them */
.tips-container .matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
    width: 100%;
}
.tips-container .team-name {
    min-width: 0;
    font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
    line-height: 1.25;
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
}
.tips-container .stats-grid { gap: 10px; }
.tips-container .stat-box   { min-width: 0; }
.tips-container .stat-value { overflow-wrap: anywhere; }

@media (max-width: 600px) {
    .tips-container .card-header { padding: 10px 14px; }
    .tips-container .card-body   { padding: 16px 14px; }
    .tips-container .matchup     { gap: 8px; }
}
