/**
 * Demo Mode Styles
 * Styles pour l'indicateur de mode démonstration et les éléments associés
 */

/* Indicateur principal démo */
.demo-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.demo-indicator.hidden {
    transform: translateY(-100%);
}

.demo-banner {
    position: relative;
    overflow: hidden;
}

.demo-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    gap: 15px;
}

.demo-icon {
    font-size: 24px;
    animation: demo-pulse 2s infinite;
}

@keyframes demo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.demo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-text strong {
    font-size: 16px;
    font-weight: 600;
}

.demo-text span {
    font-size: 13px;
    opacity: 0.9;
}

.demo-actions {
    display: flex;
    gap: 8px;
}

.demo-info-btn,
.demo-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
}

.demo-info-btn:hover,
.demo-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Barre de progression du reset */
.demo-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.demo-progress-bar {
    height: 100%;
    background: #3498db;
    transition: width 1s ease-in-out, background-color 0.3s;
    border-radius: 0 3px 3px 0;
}

/* Notification de bienvenue */
.demo-welcome-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: demo-welcome-appear 0.3s ease-out;
}

@keyframes demo-welcome-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.demo-welcome-content {
    padding: 0;
}

.demo-welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}

.demo-welcome-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.demo-welcome-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.demo-welcome-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.demo-welcome-body {
    padding: 20px 24px 24px;
}

.demo-welcome-body p {
    margin: 0 0 16px;
    color: #2c3e50;
    line-height: 1.5;
}

.demo-welcome-body ul {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.demo-welcome-body li {
    padding: 6px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.demo-welcome-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.demo-welcome-actions .btn-primary {
    background: #3498db;
    color: white;
}

.demo-welcome-actions .btn-primary:hover {
    background: #2980b9;
}

.demo-welcome-actions .btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.demo-welcome-actions .btn-secondary:hover {
    background: #d5dbdb;
}

/* Modal d'informations démo */
.demo-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.demo-info-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: demo-modal-appear 0.3s ease-out;
}

@keyframes demo-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.demo-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
}

.demo-info-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
}

.demo-info-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.demo-info-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.demo-info-body {
    padding: 20px 24px 24px;
}

.demo-info-section {
    margin-bottom: 24px;
}

.demo-info-section:last-child {
    margin-bottom: 0;
}

.demo-info-section h4 {
    margin: 0 0 12px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.demo-info-section p {
    margin: 0 0 12px;
    color: #2c3e50;
    line-height: 1.5;
}

.demo-info-section ul {
    margin: 0 0 12px;
    padding-left: 20px;
    color: #2c3e50;
}

.demo-info-section li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.demo-timing {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.demo-timing small {
    color: #6c757d;
    display: block;
    line-height: 1.4;
}

.demo-signup-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.demo-signup-btn:hover {
    background: #229954;
}

/* Badges démo sur les éléments */
.demo-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Ajustements pour le mode démo */
body.demo-mode {
    padding-top: 60px; /* Espace pour l'indicateur démo */
}

body.demo-mode .navbar {
    top: 60px; /* Décaler la navbar sous l'indicateur */
}

/* Styles responsives */
@media (max-width: 768px) {
    .demo-content {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .demo-text strong {
        font-size: 14px;
    }
    
    .demo-text span {
        font-size: 12px;
    }
    
    .demo-icon {
        font-size: 20px;
    }
    
    .demo-welcome-notification {
        width: 95%;
        margin: 0 auto;
    }
    
    .demo-welcome-header {
        padding: 16px 20px 12px;
    }
    
    .demo-welcome-body {
        padding: 16px 20px 20px;
    }
    
    .demo-welcome-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .demo-welcome-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .demo-info-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .demo-info-header {
        padding: 20px 20px 12px;
    }
    
    .demo-info-body {
        padding: 16px 20px 20px;
    }
    
    body.demo-mode {
        padding-top: 50px;
    }
    
    body.demo-mode .navbar {
        top: 50px;
    }
}

/* Animations pour les interactions */
.demo-indicator:hover .demo-icon {
    animation-duration: 1s;
}

.demo-progress-bar {
    position: relative;
    overflow: hidden;
}

.demo-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: demo-progress-shine 3s infinite;
}

@keyframes demo-progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* États de la barre de progression */
.demo-progress-bar.warning {
    background: #f39c12;
}

.demo-progress-bar.danger {
    background: #e74c3c;
}

/* Effet de pulsation pour les éléments importants */
.demo-pulse {
    animation: demo-element-pulse 2s infinite;
}

@keyframes demo-element-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}