/**
 * Styles frontend pour WP Manga Chapter Lock
 * Version corrigée V2
 */

/* Indicateur de verrouillage dans les listes de chapitres */
.wmcl-lock-indicator {
    color: #FF6B6B !important;
    margin-left: 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    animation: pulse 2s infinite;
}

.wmcl-lock-indicator i {
    font-size: 14px;
}

/* Animation du cadenas */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Chapitre verrouillé dans la liste */
.wmcl-locked-chapter {
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.wmcl-locked-chapter:hover {
    opacity: 0.8;
}

.wmcl-locked-chapter a {
    cursor: not-allowed !important;
    pointer-events: none;
    color: #999 !important;
    text-decoration: none !important;
}

/* Message de verrouillage principal */
.wmcl-lock-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wmcl-lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.wmcl-lock-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.wmcl-time-remaining {
    font-size: 18px;
    margin-bottom: 25px;
    color: #FFD700;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.wmcl-custom-button {
    display: inline-block;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.wmcl-custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none;
    color: white !important;
    background: linear-gradient(45deg, #ff5252, #26a69a);
}

.wmcl-custom-button:active {
    transform: translateY(0);
}

/* Styles pour les listes de chapitres spécifiques */
.wp-manga-chapter .chapter-item.wmcl-locked-chapter {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #FF6B6B;
    padding-left: 10px;
}

.wp-manga-chapter .chapter-item.wmcl-locked-chapter .chapter-name {
    color: #666 !important;
}

/* Tooltip pour les chapitres verrouillés */
.wmcl-lock-indicator[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.wmcl-lock-indicator[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* Responsive design */
@media (max-width: 768px) {
    .wmcl-lock-message {
        padding: 30px 20px;
        margin: 15px 0;
    }
    
    .wmcl-lock-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .wmcl-lock-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .wmcl-time-remaining {
        font-size: 16px;
        margin-bottom: 20px;
        padding: 8px 16px;
    }
    
    .wmcl-custom-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wmcl-lock-message {
        padding: 25px 15px;
    }
    
    .wmcl-lock-content h3 {
        font-size: 18px;
    }
    
    .wmcl-time-remaining {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .wmcl-custom-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Styles pour différents thèmes */
.dark-theme .wmcl-lock-message {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid #4a5568;
}

.dark-theme .wmcl-lock-indicator {
    color: #FF8A80 !important;
}

/* Intégration avec les thèmes populaires de manga */
.madara-core .wmcl-locked-chapter,
.manga-theme .wmcl-locked-chapter {
    border-radius: 4px;
    margin-bottom: 2px;
}

.madara-core .wmcl-lock-indicator,
.manga-theme .wmcl-lock-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Amélioration de l'accessibilité */
.wmcl-lock-indicator:focus,
.wmcl-custom-button:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Styles pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .wmcl-lock-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Animation d'entrée pour les nouveaux éléments */
.wmcl-lock-indicator.wmcl-new {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Styles pour les notifications */
.wmcl-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FF6B6B;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wmcl-notification.wmcl-success {
    background: #4ECDC4;
}

.wmcl-notification.wmcl-info {
    background: #3498db;
}

/* Styles pour les badges de statut */
.wmcl-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.wmcl-status-badge.wmcl-locked {
    background: rgba(255, 107, 107, 0.2);
    color: #c62828;
}

.wmcl-status-badge.wmcl-vip {
    background: rgba(255, 215, 0, 0.2);
    color: #f57c00;
}

.wmcl-status-badge.wmcl-free {
    background: rgba(76, 205, 196, 0.2);
    color: #00695c;
}

