/*
 * css/pages/odds.css - Styles pour le convertisseur de cotes
 */

/* ============================================
   ODDS PAGE
============================================ */
.odds-page {
    padding: 0 4px;
}

/* ============================================
   ODDS HERO
============================================ */
.odds-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
    border-radius: 20px;
    padding: 28px 22px 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.odds-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15), transparent 70%);
    border-radius: 50%;
    animation: oddsHeroGlow 6s ease-in-out infinite alternate;
}

.odds-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 168, 107, 0.1), transparent 70%);
    border-radius: 50%;
    animation: oddsHeroGlow2 8s ease-in-out infinite alternate;
}

@keyframes oddsHeroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-30px, 20px) scale(1.2); opacity: 1; }
}

@keyframes oddsHeroGlow2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(30px, -20px) scale(1.3); opacity: 0.8; }
}

.odds-hero__content {
    position: relative;
    z-index: 1;
}

.odds-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 4px 14px 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.odds-hero__eyebrow i {
    color: #00ccff;
}

.odds-hero__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
}

.odds-hero__description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 90%;
}

.odds-hero__stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.odds-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.odds-hero__stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ccff, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.odds-hero__stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.odds-hero__stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.08);
}

.odds-hero__stat:nth-child(3) .odds-hero__stat-number {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.odds-hero__stat:last-child .odds-hero__stat-number {
    background: linear-gradient(135deg, #00e676, #00a86b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ODDS CONVERTER CARD
============================================ */
.odds-converter-section {
    margin-bottom: 24px;
}

.odds-converter-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.odds-converter-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.odds-converter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    margin: 0;
}

.odds-converter-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.odds-converter-body {
    padding: 20px;
}

/* Format selector */
.odds-format-selector {
    margin-bottom: 20px;
}

.odds-format-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.odds-format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.odds-format-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.odds-format-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.odds-format-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Input */
.odds-input-group {
    margin-bottom: 20px;
}

.odds-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.odds-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.odds-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.odds-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
}

.odds-input-format {
    padding: 12px 16px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-left: 1px solid var(--border);
}

/* Results */
.odds-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.odds-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-main);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.odds-result-item:hover {
    border-color: var(--primary);
}

.odds-result-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.odds-result-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Probability */
.odds-probability {
    padding: 16px;
    background: var(--bg-main);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.odds-probability-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.odds-probability-label span:first-child {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.odds-probability-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.odds-probability-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.odds-probability-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transition: width 0.3s ease;
}

/* ============================================
   ODDS INFO SECTION
============================================ */
.odds-info-section {
    margin-bottom: 20px;
}

.odds-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.odds-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s ease;
}

.odds-info-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.06);
}

.odds-info-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.odds-info-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.odds-info-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.odds-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.odds-info-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.odds-info-example {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: var(--bg-main);
    border-radius: 8px;
    font-size: 0.7rem;
}

.odds-info-example code {
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 102, 204, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

.odds-info-example span {
    color: var(--text-secondary);
}

/* ============================================
   SECTION HEADER
============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 430px) {
    .odds-hero {
        padding: 20px 16px 16px;
        border-radius: 16px;
    }
    
    .odds-hero__title {
        font-size: 1.25rem;
    }
    
    .odds-hero__description {
        font-size: 0.78rem;
        max-width: 100%;
    }
    
    .odds-hero__stats {
        padding: 10px 6px;
        flex-wrap: wrap;
        gap: 4px;
        border-radius: 10px;
    }
    
    .odds-hero__stat-number {
        font-size: 1rem;
    }
    
    .odds-hero__stat-label {
        font-size: 0.55rem;
    }
    
    .odds-hero__stat-divider {
        height: 25px;
    }
    
    .odds-converter-body {
        padding: 16px;
    }
    
    .odds-format-buttons {
        gap: 4px;
    }
    
    .odds-format-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    .odds-results {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .odds-result-item {
        padding: 8px 12px;
    }
    
    .odds-result-value {
        font-size: 0.85rem;
    }
    
    .odds-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .odds-info-card {
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .odds-hero {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    
    .odds-hero__title {
        font-size: 1.05rem;
    }
    
    .odds-hero__eyebrow {
        font-size: 0.6rem;
        padding: 3px 10px 3px 8px;
    }
    
    .odds-hero__stats {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 8px 6px;
    }
    
    .odds-hero__stat-divider {
        display: none;
    }
    
    .odds-hero__stat {
        flex: 1;
        min-width: 50px;
    }
    
    .odds-hero__stat-number {
        font-size: 0.9rem;
    }
    
    .odds-hero__stat-label {
        font-size: 0.5rem;
    }
    
    .odds-results {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .odds-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .odds-format-btn {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
}