/*
 * css/pages/surebet.css - Styles pour le calculateur de paris sûrs
 */

/* ============================================
   SUREBET PAGE
============================================ */
.surebet-page {
    padding: 0 4px;
}

/* ============================================
   SUREBET HERO
============================================ */
.surebet-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);
}

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

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

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

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

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

.surebet-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);
}

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

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

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

.surebet-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;
}

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

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

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

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

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

.surebet-hero__stat:last-child .surebet-hero__stat-number {
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SECTION CALCULATEUR
============================================ */
.surebet-calculator-section {
    margin-bottom: 24px;
}

.surebet-calculator-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);
}

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

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

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

.surebet-calculator-body {
    padding: 20px;
}

/* Mode selector */
.surebet-mode-selector {
    margin-bottom: 20px;
}

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

.surebet-mode-buttons {
    display: flex;
    gap: 10px;
}

.surebet-mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.surebet-mode-btn i {
    font-size: 0.9rem;
}

/* Amount */
.surebet-amount-group {
    margin-bottom: 20px;
}

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

.surebet-amount-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;
    margin-bottom: 10px;
}

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

.surebet-amount-currency {
    padding: 12px 12px 12px 16px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    border-right: 1px solid var(--border);
}

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

.surebet-amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.surebet-preset-btn {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    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;
}

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

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

/* Odds */
.surebet-odds-group {
    margin-bottom: 20px;
}

.surebet-odds-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.surebet-odds-row:last-child {
    border-bottom: none;
}

.surebet-odds-label {
    min-width: 80px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.surebet-odds-label-desc {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.surebet-odd-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 120px;
    margin-left: auto;
}

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

/* Results */
.surebet-results {
    background: var(--bg-main);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.surebet-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.surebet-result-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.surebet-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.surebet-status-badge--positive {
    background: rgba(0, 168, 107, 0.15);
    color: #00a86b;
}

.surebet-status-badge--negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.surebet-result-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.surebet-result-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.surebet-detail-outcome {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
}

.surebet-detail-stake {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.surebet-result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.surebet-summary-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.surebet-summary-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

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

.surebet-summary-item--profit .surebet-summary-value {
    color: #00a86b;
}

.surebet-summary-item--percentage .surebet-summary-value {
    color: #f59e0b;
}

/* Calculate button */
.surebet-calculate-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.surebet-calculate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

/* ============================================
   INFO SECTION
============================================ */
.surebet-info-section {
    margin-bottom: 24px;
}

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

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

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

.surebet-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 168, 107, 0.08);
    color: #00a86b;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

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

/* ============================================
   FAQ SECTION
============================================ */
.surebet-faq-section {
    margin-bottom: 20px;
}

.surebet-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.surebet-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.surebet-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
    text-align: left;
}

.surebet-faq-question:hover {
    background: var(--bg-main);
}

.surebet-faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.surebet-faq-question.active i {
    transform: rotate(180deg);
}

.surebet-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 16px;
}

.surebet-faq-answer.open {
    max-height: 200px;
    padding: 0 16px 14px;
}

.surebet-faq-answer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   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) {
    .surebet-hero {
        padding: 20px 16px 16px;
        border-radius: 16px;
    }
    
    .surebet-hero__title {
        font-size: 1.25rem;
    }
    
    .surebet-hero__description {
        font-size: 0.78rem;
        max-width: 100%;
    }
    
    .surebet-hero__stats {
        padding: 10px 6px;
        flex-wrap: wrap;
        gap: 4px;
        border-radius: 10px;
    }
    
    .surebet-hero__stat-number {
        font-size: 1rem;
    }
    
    .surebet-hero__stat-label {
        font-size: 0.55rem;
    }
    
    .surebet-hero__stat-divider {
        height: 25px;
    }
    
    .surebet-calculator-body {
        padding: 16px;
    }
    
    .surebet-mode-buttons {
        flex-direction: column;
    }
    
    .surebet-mode-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .surebet-amount-presets {
        gap: 4px;
    }
    
    .surebet-preset-btn {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .surebet-odds-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .surebet-odds-label {
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .surebet-odd-input {
        max-width: 100px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .surebet-result-summary {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .surebet-summary-item {
        padding: 6px 10px;
    }
    
    .surebet-summary-value {
        font-size: 0.85rem;
    }
    
    .surebet-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .surebet-info-card {
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .surebet-hero {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    
    .surebet-hero__title {
        font-size: 1.05rem;
    }
    
    .surebet-hero__eyebrow {
        font-size: 0.6rem;
        padding: 3px 10px 3px 8px;
    }
    
    .surebet-hero__stats {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 8px 6px;
    }
    
    .surebet-hero__stat-divider {
        display: none;
    }
    
    .surebet-hero__stat {
        flex: 1;
        min-width: 50px;
    }
    
    .surebet-hero__stat-number {
        font-size: 0.9rem;
    }
    
    .surebet-hero__stat-label {
        font-size: 0.5rem;
    }
    
    .surebet-mode-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .surebet-odds-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .surebet-odds-label {
        min-width: auto;
    }
    
    .surebet-odd-input {
        max-width: 100%;
    }
    
    .surebet-result-summary {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .surebet-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}