/* css/football-widget.css - VERSION SIMPLIFIÉE */

/* === CONTENEUR === */
.football-widget-container {
    max-width: 600px;
    margin: 15px auto;
    padding: 0 10px;
    order: 3; /* Après NEWS et CINÉMA */
}

/* === WIDGET PRINCIPAL === */
.football-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: footballWidgetFadeIn 0.6s ease-out;
}

.football-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* === HEADER === */
.football-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.football-widget-title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
    color: var(--primary-color, #dc3545);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Onglets style moderne */
    .league-tabs {
        gap: 8px;
    }
    
    .league-tab {
        background: rgba(255,255,255,0.2);
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.3);
        transition: all 0.3s ease;
    }
    
    .league-tab.active {
        background: #ffffff;
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0,200,83,0.3);
		border: 3px solid #fff;
    }

/* === CONTENU === */
.football-widget-preview {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.current-league {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color, #dc3545);
    margin-bottom: 12px;
    text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* === FEATURES === */
.football-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    background: rgba(var(--primary-color-rgb, 220, 53, 69), 0.1);
    border-left: 3px solid var(--primary-color, #dc3545);
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item:hover {
    background: rgba(var(--primary-color-rgb, 220, 53, 69), 0.2);
    transform: translateX(3px);
}

.feature-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* === FOOTER === */
.football-widget-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(var(--primary-color-rgb, 220, 53, 69), 0.2);
}

.football-widget-count {
    background: rgba(var(--primary-color-rgb, 220, 53, 69), 0.1);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.football-widget-count:hover {
    background: rgba(var(--primary-color-rgb, 220, 53, 69), 0.2);
    transform: scale(1.05);
}

/* === THÈME LIGHT (VIOLET) === */
[data-theme="light"] .football-widget {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(126, 87, 194, 0.4);
}

[data-theme="light"] .football-widget-title,
[data-theme="light"] .current-league {
    color: #7e57c2;
}

[data-theme="light"] .league-tab {
    background: #7e57c2;
}

[data-theme="light"] .feature-item {
    background: rgba(126, 87, 194, 0.1);
    border-left-color: #7e57c2;
}

[data-theme="light"] .feature-icon {
    color: #7e57c2;
}

[data-theme="light"] .football-widget-count {
    background: rgba(126, 87, 194, 0.15);
    color: #7e57c2;
}

/* === THÈME DARK === */
[data-theme="dark"] .football-widget {
    background: rgba(40, 40, 40, 0.95);
    border-color: rgba(26, 35, 126, 0.6);
}

[data-theme="dark"] .football-widget-title,
[data-theme="dark"] .current-league {
    color: #81b3fa;
}

[data-theme="dark"] .league-tab {
    background: #5c6bc0;
}

[data-theme="dark"] .football-widget-preview {
    color: #e0e0e0;
}

[data-theme="dark"] .feature-item {
    background: rgba(92, 107, 192, 0.15);
    border-left-color: #5c6bc0;
    color: #f6d34f;
}

[data-theme="dark"] .feature-icon {
    color: #81b3fa;
}

[data-theme="dark"] .football-widget-count {
    background: rgba(92, 107, 192, 0.2);
    color: #81b3fa;
}

/* === THÈME ROUGE === */
[data-theme="rouge"] .football-widget {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(211, 47, 47, 0.4);
}

[data-theme="rouge"] .football-widget-title,
[data-theme="rouge"] .current-league {
    color: #d32f2f;
}

[data-theme="rouge"] .league-tab {
    background: #d32f2f;
}

[data-theme="rouge"] .feature-item {
    background: rgba(211, 47, 47, 0.1);
    border-left-color: #d32f2f;
    color: #333;
}

[data-theme="rouge"] .feature-icon {
    color: #d32f2f;
}

[data-theme="rouge"] .football-widget-count {
    background: rgb(240 225 222);
    color: #000000;
}

/* === THÈME BLEU CIEL === */
[data-theme="bleuciel"] .football-widget {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 233, 0.4);
}

[data-theme="bleuciel"] .football-widget-title,
[data-theme="bleuciel"] .current-league {
    color: #0ea5e9;
}

[data-theme="bleuciel"] .league-tab {
    background: #0ea5e9;
}

[data-theme="bleuciel"] .feature-item {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
}

[data-theme="bleuciel"] .feature-icon {
    color: #0ea5e9;
}

[data-theme="bleuciel"] .football-widget-count {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

/* === RESPONSIVE DESKTOP === */
@media (min-width: 1200px) {
    .widgets-row {
        display: flex;
        max-width: 1200px;
        margin: 60px auto;
        gap: 15px;
        padding: 0 10px;
    }
    
    .football-widget-container {
        flex: 1;
        margin: 0;
        max-width: none;
        display: flex;
    }
    
    .football-widget {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .football-widget-preview {
        flex: 1;
        min-height: 200px;
    }
}

/* === RESPONSIVE TABLETTE === */
@media (min-width: 768px) and (max-width: 1199px) {
    .football-widget {
        padding: 18px;
    }
    
    .football-widget-title {
        font-size: 17px;
    }
    
    .league-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .feature-item {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 767px) {
    .football-widget-container-in-tiles {
        width: 100%;
        margin: 15px 0;
        padding: 0;
        grid-column: 1 / -1;
    }
    
    .football-widget {
        padding: 10px !important;
        margin: 0 -20px;
    }
    
    .football-widget-title {
        font-size: 16px;
    }
    
    .league-tabs {
        gap: 4px;
    }
    
    .league-tab {
        padding: 5px 10px !important;
        font-size: 12px !important;
        min-width: 35px;
		font-weight: 900;
    }
    
    .feature-item {
        padding: 10px 12px;
        font-size: 14px;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .feature-icon {
        font-size: 15px;
    }
    
    .football-widget-footer {
        padding-top: 10px;
    }
}

/* === PETITS ÉCRANS === */
@media (max-width: 400px) {
    .football-widget {
        padding: 12px;
        border-radius: 12px;
    }
    
    .football-widget-title {
        font-size: 15px;
    }
    
    .league-tab {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .feature-item {
        padding: 8px 10px;
        font-size: 13px;
        gap: 8px;
    }
}

/* === VARIABLES CSS === */
:root {
    --primary-color-rgb: 220, 53, 69;
}

[data-theme="light"] {
    --primary-color-rgb: 126, 87, 194;
}

[data-theme="dark"] {
    --primary-color-rgb: 92, 107, 192;
}

[data-theme="rouge"] {
    --primary-color-rgb: 211, 47, 47;
}

[data-theme="bleuciel"] {
    --primary-color-rgb: 14, 165, 233;
}

/* === ANIMATIONS === */
@keyframes footballWidgetFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SCROLLBAR === */
.football-widget-preview::-webkit-scrollbar {
    width: 4px;
}

.football-widget-preview::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.football-widget-preview::-webkit-scrollbar-thumb {
    background: var(--primary-color, #dc3545);
    border-radius: 2px;
    opacity: 0.5;
}

.football-widget-preview::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}