/* 
  Chance Sport Betting - Solidarité
  Design Premium, Dynamique & Responsive (Inspiration MSN)
*/

:root {
    /* Premium Color Palette */
    /* Official Brand Palette (Yellow, Green, White) */
    --primary-color: #007a33; /* Official Forest Green */
    --primary-light: #00a344;
    --secondary-color: #f9c313; /* Official Golden Yellow */
    --accent-color: #00ff41; /* Neon Green for Tech Accents */
    --warning-color: #f9c313;
    --success-color: #007a33;
    --danger-color: #ff3131;
    --dark-color: #001a0b; /* Deep Brand Green for Dark Mode */
    --light-color: #fdf7e9; /* Official Cream White */
    --white: #ffffff;
    
    /* Backgrounds */
    --bg-body: #001a0b;
    --bg-card: rgba(0, 43, 18, 0.7);
    --bg-nav: #001a0b;
    
    /* Text */
    --text-main: #333333;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout */
    --container-max: 1400px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 80%),
        linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

/* Utilities */
.highlight {
    color: var(--primary-color);
}
.w-100 { width: 100%; }
.mt-10 { margin-top: 10px; }
.bg-primary { background-color: var(--primary-color) !important; color: white; }
.bg-success { background-color: var(--success-color) !important; color: white; }
.bg-info { background-color: var(--info-color) !important; color: white; }
.bg-warning { background-color: var(--warning-color) !important; color: #000; }
.bg-danger { background-color: var(--danger-color) !important; color: white; }
.bg-secondary { background-color: var(--secondary-color) !important; color: white; }
.bg-dark { background-color: var(--dark-color) !important; color: white; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 122, 51, 0.4);
}

.btn-donate {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(249, 195, 19, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-donate:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Top Navigation */
.top-nav {
    background-color: var(--dark-color);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--secondary-color);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    background: var(--primary-color);
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(249, 195, 19, 0.2);
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-text .highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(249, 195, 19, 0.5);
}

.search-bar-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    background-color: rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(249, 195, 19, 0.2);
}

.search-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: white;
}

.search-form button {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-access-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 195, 19, 0.1);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(249, 195, 19, 0.2);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-access-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 195, 19, 0.3);
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.weather-widget i {
    color: var(--warning-color);
}

/* Main Menu */
.main-menu {
    background-color: var(--dark-color);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 25px;
}

.menu-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.nav-links::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: #bbb;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-links li a i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.nav-links li a.active i {
    color: var(--primary-color);
}

/* Main Content & Grid */
.main-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 25px;
}

/* Sidebar Widgets */
.widget {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Trending List */
.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.05);
}

.trending-list li:last-child {
    border-bottom: none;
}

.trend-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(0, 255, 65, 0.1);
    line-height: 1;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.1);
}

.trend-info a {
    color: #eee;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.trend-info a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.trend-meta {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feed Content (Center) */
.feed-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 1;
}

.card-link {
    display: block;
    color: inherit;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
}

.card-img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s;
    opacity: 0.8;
}

.card:hover .card-img {
    transform: scale(1.1);
    opacity: 1;
    filter: saturate(1.2) brightness(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.card-content {
    padding: 25px;
    background: linear-gradient(to bottom, transparent, rgba(0, 20, 0, 0.4));
}

.card-featured .card-img {
    height: 400px;
}

.card-featured .card-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.card-featured .card-excerpt {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    padding-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Grid of smaller cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.card-small .card-img {
    height: 200px;
}

.card-small .card-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #eee;
    transition: 0.3s;
}

.card:hover .card-title {
    color: var(--primary-color);
}

/* Live Updates Widget */
.live-updates {
    position: relative;
    padding-left: 25px;
}

.live-updates::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.update-item {
    position: relative;
    margin-bottom: 25px;
}

.update-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: #333;
    border: 1px solid var(--secondary-color);
}

.update-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #bbb;
}

.update-text strong {
    color: var(--secondary-color);
    font-family: monospace;
}

.pulse {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 0 rgba(249, 195, 19, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(249, 195, 19, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(249, 195, 19, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(249, 195, 19, 0);
    }
}

.update-text p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    border: 1px solid var(--secondary-color);
}

.newsletter-widget .widget-title {
    color: var(--secondary-color);
    border-color: rgba(255,255,255,0.1);
}

.newsletter-widget .widget-title::after {
    background-color: var(--secondary-color);
}

.newsletter-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.newsletter-widget p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.newsletter-form input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 30px;
    border: none;
    margin-bottom: 10px;
    outline: none;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    margin-top: 40px;
    border-top: 4px solid var(--secondary-color);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-col .brand-text {
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-desc {
    color: #adb5bd;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #adb5bd;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    color: #adb5bd;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #adb5bd;
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a {
    color: #adb5bd;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: 1fr 300px;
    }
    .sidebar-left {
        display: none; /* Hide left sidebar on medium screens */
    }
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-bar-container {
        display: none; /* Hide search bar on mobile */
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
