/**
 * Tutor Preview - Styles Frontend
 * Styles pour le mode "Bientôt Disponible" des cours Tutor LMS
 */

/* ==========================================
   BADGE - BOUCLE DES COURS
   ========================================== */
.tutor-preview-badge {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutor-preview-badge-loop {
    top: 12px;
    left: 12px;
}

.tutor-preview-badge-icon {
    font-size: 14px;
}

.tutor-preview-badge-text {
    line-height: 1;
}

/* ==========================================
   BANNIÈRE - PAGE SINGLE COURS
   ========================================== */
.tutor-preview-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 0;
    margin-bottom: 24px;
}

.tutor-preview-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
}

.tutor-preview-banner-icon {
    font-size: 24px;
}

.tutor-preview-banner-text {
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================
   SIDEBAR BOX - PAGE SINGLE COURS
   ========================================== */
.tutor-preview-sidebar-box {
    margin-bottom: 24px !important;
}

.tutor-preview-coming-soon-box {
    text-align: center;
    padding: 20px 10px;
}

.tutor-preview-icon-wrapper {
    margin-bottom: 16px;
}

.tutor-preview-large-icon {
    font-size: 48px;
    display: block;
    animation: tutor-preview-bounce 2s ease-in-out infinite;
}

@keyframes tutor-preview-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.tutor-preview-title {
    font-size: 20px;
    font-weight: 700;
    color: #212327;
    margin: 0 0 12px 0;
}

.tutor-preview-description {
    font-size: 14px;
    color: #5b616f;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.tutor-preview-notify-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.9 !important;
    font-weight: 600 !important;
}

.tutor-preview-notify-btn:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
    opacity: 1 !important;
}

/* ==========================================
   OVERLAY SUR LE CURRICULUM (OPTIONNEL)
   ========================================== */
.tutor-preview-curriculum-locked .tutor-course-topic-item {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.tutor-preview-curriculum-locked .tutor-course-topic-item::after {
    content: "🔒";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* ==========================================
   BADGE SUR LES CARTES DE COURS
   ========================================== */
.tutor-course-card {
    position: relative;
}

/* Style responsive */
@media (max-width: 767px) {
    .tutor-preview-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tutor-preview-banner-text {
        font-size: 14px;
    }
    
    .tutor-preview-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .tutor-preview-large-icon {
        font-size: 40px;
    }
    
    .tutor-preview-title {
        font-size: 18px;
    }
}

/* ==========================================
   INTÉGRATION AVEC LE THÈME DREAMSLMS
   ========================================== */
.dreamslms-course-card .tutor-preview-badge-loop {
    top: 10px;
    left: 10px;
}

/* Ajustement pour les grilles de cours */
.tutor-courses-loop .tutor-course-header,
.tutor-course-loop .tutor-course-thumbnail {
    position: relative;
}

/* ==========================================
   ANIMATION D'ENTRÉE
   ========================================== */
.tutor-preview-badge {
    animation: tutor-preview-fadeIn 0.5s ease-out;
}

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

/* ==========================================
   STYLE ALTERNATIF - PULSE
   ========================================== */
.tutor-preview-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: tutor-preview-pulse 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes tutor-preview-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}
