/**
 * DeepBetting Access Control Styles
 * Styles pour le système de verrouillage et restrictions d'accès
 */

/* ===================================
   LOADER STYLES
   =================================== */
.access-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    gap: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.access-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: access-spin 1s linear infinite;
}

@keyframes access-spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   PAGE LOCK OVERLAY (Full page lock)
   =================================== */
.access-page-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeInPage 0.5s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.access-page-lock-content {
    text-align: center;
    padding: 3rem;
    max-width: 450px;
    animation: slideUpPage 0.6s ease;
}

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

.access-page-lock-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-page-lock-icon i {
    font-size: 4rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: shieldPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.access-page-lock-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.access-page-lock-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.access-page-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-neon);
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.access-page-lock-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.access-page-lock-btn:hover::before {
    left: 100%;
}

.access-page-lock-btn:hover {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5), 0 0 60px rgba(177, 74, 237, 0.3);
    transform: translateY(-3px);
}

/* ===================================
   SECTION LOCK OVERLAY
   =================================== */
.access-lock-overlay {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, 
        rgba(18, 18, 26, 0.95) 0%, 
        rgba(26, 26, 46, 0.9) 50%, 
        rgba(18, 18, 26, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInSection 0.4s ease;
    overflow: hidden;
}

/* Effet de grille en arrière-plan */
.access-lock-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Bordure lumineuse en haut */
.access-lock-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
    opacity: 0.6;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.access-lock-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.access-lock-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-lock-icon i {
    font-size: 2.5rem;
    color: var(--neon-purple);
    position: relative;
    z-index: 2;
    animation: lockBounce 2s ease-in-out infinite;
}

@keyframes lockBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.lock-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(177, 74, 237, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

.access-lock-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.access-lock-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.access-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--neon-purple);
    border-radius: 8px;
    color: var(--neon-purple);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.access-lock-btn:hover {
    background: rgba(177, 74, 237, 0.15);
    box-shadow: 0 0 20px rgba(177, 74, 237, 0.3);
    transform: translateY(-2px);
}

.access-lock-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.access-lock-btn:hover i {
    transform: translateX(3px);
}

/* ===================================
   TAB LOCK INDICATOR
   =================================== */
.sport-tab.locked {
    opacity: 0.7;
}

.sport-tab.locked:hover {
    opacity: 0.8;
}

.tab-lock-indicator {
    margin-left: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.tab-lock-indicator i {
    color: var(--text-secondary) !important;
}

/* Style spécifique pour l'onglet FREE quand déverrouillé */
.sport-tab.free:not(.locked) .tab-lock-indicator {
    display: none;
}

/* ===================================
   SECTION SPECIFIC LOCK STYLES
   =================================== */

/* Football section lock */
.sport-content.football .access-lock-overlay {
    border-color: rgba(0, 240, 255, 0.2);
}

.sport-content.football .access-lock-icon i {
    color: var(--football-accent);
}

.sport-content.football .lock-pulse {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
}

.sport-content.football .access-lock-btn {
    border-color: var(--football-accent);
    color: var(--football-accent);
}

.sport-content.football .access-lock-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* NBA/US Sports section lock */
.sport-content.nba .access-lock-overlay {
    border-color: rgba(255, 45, 146, 0.2);
}

.sport-content.nba .access-lock-icon i {
    color: var(--nba-accent);
}

.sport-content.nba .lock-pulse {
    background: radial-gradient(circle, rgba(255, 45, 146, 0.3) 0%, transparent 70%);
}

.sport-content.nba .access-lock-btn {
    border-color: var(--nba-accent);
    color: var(--nba-accent);
}

.sport-content.nba .access-lock-btn:hover {
    background: rgba(255, 45, 146, 0.15);
    box-shadow: 0 0 20px rgba(255, 45, 146, 0.3);
}

/* FREE section lock (si jamais verrouillée) */
.sport-content.free .access-lock-overlay {
    border-color: rgba(255, 140, 0, 0.2);
}

.sport-content.free .access-lock-icon i {
    color: var(--free-accent);
}

.sport-content.free .lock-pulse {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, transparent 70%);
}

.sport-content.free .access-lock-btn {
    border-color: var(--free-accent);
    color: var(--free-accent);
}

.sport-content.free .access-lock-btn:hover {
    background: rgba(255, 140, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .access-page-lock-content {
        padding: 2rem 1.5rem;
    }

    .access-page-lock-icon {
        width: 100px;
        height: 100px;
    }

    .access-page-lock-icon i {
        font-size: 3rem;
    }

    .access-page-lock-title {
        font-size: 1.5rem;
    }

    .access-page-lock-message {
        font-size: 1rem;
    }

    .access-lock-overlay {
        min-height: 300px;
    }

    .access-lock-icon {
        width: 60px;
        height: 60px;
    }

    .access-lock-icon i {
        font-size: 2rem;
    }

    .access-lock-title {
        font-size: 1rem;
    }

    .access-lock-message {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .access-page-lock-btn {
        width: 100%;
        justify-content: center;
    }

    .access-lock-btn {
        width: 100%;
        justify-content: center;
    }
}
