/**
 * Modal Styles - 7 designs premium pour le formulaire d'avis
 * Version 1.0.0
 * 
 * STYLE FIXÉ EN PRODUCTION : Hybride (Apple × Airbnb)
 * Le sélecteur de styles (.modal-style-switcher) est désactivé
 * Voir : auto-apply-airbnb.js pour l'application automatique
 */

/* ========================================
   SÉLECTEUR DE STYLE
   ======================================== */

.modal-style-switcher {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.style-switcher-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-switcher-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.style-switcher-toggle .icon {
    font-size: 20px;
}

.style-switcher-panel {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0;
    width: 280px;
    max-height: 400px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.style-switcher-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.panel-close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.panel-close-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

.style-options {
    padding: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.style-option {
    padding: 10px;
    margin-bottom: 6px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.style-option:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.style-option.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #764ba2;
}

.style-option.selected {
    animation: pulse 0.3s ease;
}

.style-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.style-info {
    flex: 1;
}

.style-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.style-desc {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.default-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    padding: 2px 6px;
    background: #667eea;
    color: white;
    border-radius: 4px;
}

/* ========================================
   STYLE 1: HYBRIDE (Apple x Airbnb) - DÉFAUT
   ======================================== */

.review-form-modal.style-hybrid {
    /* Déjà le style par défaut */
}

.review-form-modal.style-hybrid .review-form-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.review-form-modal.style-hybrid h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.review-form-modal.style-hybrid input,
.review-form-modal.style-hybrid textarea {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.review-form-modal.style-hybrid input:focus,
.review-form-modal.style-hybrid textarea:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.review-form-modal.style-hybrid .btn-submit-review {
    background: #0071e3;
    border-radius: 20px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.review-form-modal.style-hybrid .btn-cancel {
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    padding: 13px 27px;
}

/* ========================================
   STYLE 2: APPLE STORE
   ======================================== */

.review-form-modal.style-apple {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.4);
}

.review-form-modal.style-apple .review-form-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.review-form-modal.style-apple h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 30px;
}

.review-form-modal.style-apple input,
.review-form-modal.style-apple textarea {
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
}

.review-form-modal.style-apple input:focus,
.review-form-modal.style-apple textarea:focus {
    background: white;
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
}

.review-form-modal.style-apple .star-rating-input label {
    transition: all 0.2s ease;
}

.review-form-modal.style-apple .star-rating-input label:hover {
    transform: scale(1.2);
}

.review-form-modal.style-apple .btn-submit-review {
    background: #0071e3;
    border: none;
    border-radius: 18px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.review-form-modal.style-apple .btn-submit-review:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* ========================================
   STYLE 3: AIRBNB LUXE
   ======================================== */

.review-form-modal.style-airbnb .review-form-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    overflow: hidden;
}

.review-form-modal.style-airbnb .review-form {
    padding: 32px;
}

.review-form-modal.style-airbnb h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.review-form-modal.style-airbnb .airbnb-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 32px;
}

.review-form-modal.style-airbnb .step {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    color: #717171;
    border-bottom: 2px solid #ebebeb;
    transition: all 0.3s ease;
}

.review-form-modal.style-airbnb .step.active {
    color: #222;
    border-bottom-color: #222;
    font-weight: 600;
}

.review-form-modal.style-airbnb input,
.review-form-modal.style-airbnb textarea {
    border: none;
    border-bottom: 1px solid #ebebeb;
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
}

.review-form-modal.style-airbnb input:focus,
.review-form-modal.style-airbnb textarea:focus {
    border-bottom-color: #222;
    box-shadow: none;
}

.review-form-modal.style-airbnb .star-rating-input label .dashicons {
    font-size: 40px;
    color: #ebebeb;
}

.review-form-modal.style-airbnb .star-rating-input input:checked ~ label .dashicons,
.review-form-modal.style-airbnb .star-rating-input label:hover .dashicons {
    color: #FF385C;
}

.review-form-modal.style-airbnb .btn-submit-review {
    background: linear-gradient(to right, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    color: white;
    font-weight: 600;
    width: 100%;
}

/* ========================================
   STYLE 4: NOTION
   ======================================== */

.review-form-modal.style-notion .review-form-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.review-form-modal.style-notion h3 {
    font-size: 20px;
    font-weight: 500;
    color: #37352f;
    margin-bottom: 20px;
}

.review-form-modal.style-notion input,
.review-form-modal.style-notion textarea {
    background: #f7f6f3;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.review-form-modal.style-notion input:focus,
.review-form-modal.style-notion textarea:focus {
    background: white;
    border-color: #37352f;
    box-shadow: 0 0 0 1px #37352f;
}

/* Emojis pour Notion */
.review-form-modal.style-notion .star-rating-input label[data-emoji]::after {
    content: attr(data-emoji);
    font-size: 28px;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.review-form-modal.style-notion .star-rating-input label .dashicons {
    opacity: 0;
}

.review-form-modal.style-notion .btn-submit-review {
    background: #37352f;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   STYLE 5: STRIPE
   ======================================== */

.review-form-modal.style-stripe .review-form-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3);
}

.review-form-modal.style-stripe h3 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.review-form-modal.style-stripe input,
.review-form-modal.style-stripe textarea {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.15s ease;
    background: white;
}

.review-form-modal.style-stripe input:focus,
.review-form-modal.style-stripe textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea, 0 2px 4px rgba(0,0,0,0.08);
}

.review-form-modal.style-stripe input.valid {
    border-color: #30c85e;
}

.review-form-modal.style-stripe .validation-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #30c85e;
    font-size: 16px;
}

.review-form-modal.style-stripe .btn-submit-review {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

/* ========================================
   STYLE 6: MEDIUM
   ======================================== */

.review-form-modal.style-medium .review-form-content {
    background: white;
    border-radius: 0;
    padding: 50px;
    max-width: 700px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-form-modal.style-medium h3 {
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: normal;
    color: #292929;
    margin-bottom: 40px;
}

.review-form-modal.style-medium input,
.review-form-modal.style-medium textarea {
    border: none;
    border-bottom: 1px solid #292929;
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    font-family: Georgia, serif;
    font-size: 16px;
}

.review-form-modal.style-medium textarea {
    font-size: 21px;
    line-height: 1.6;
    min-height: 200px;
}

.review-form-modal.style-medium input:focus,
.review-form-modal.style-medium textarea:focus {
    border-bottom-color: #03a87c;
    box-shadow: none;
}

.review-form-modal.style-medium .btn-submit-review {
    background: #03a87c;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    color: white;
    font-size: 15px;
}

/* ========================================
   STYLE 7: SPOTIFY PREMIUM
   ======================================== */

.review-form-modal.style-spotify {
    background: rgba(0,0,0,0.9);
}

.review-form-modal.style-spotify .review-form-content {
    background: #121212;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #282828;
    color: white;
}

.review-form-modal.style-spotify h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.review-form-modal.style-spotify label {
    color: #b3b3b3;
}

.review-form-modal.style-spotify input,
.review-form-modal.style-spotify textarea {
    background: #282828;
    border: 1px solid #282828;
    border-radius: 8px;
    padding: 12px;
    color: white;
}

.review-form-modal.style-spotify input:focus,
.review-form-modal.style-spotify textarea:focus {
    border-color: #1db954;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
    background: #181818;
}

.review-form-modal.style-spotify .star-rating-input label .dashicons {
    color: #282828;
    transition: all 0.3s ease;
}

.review-form-modal.style-spotify .star-rating-input input:checked ~ label .dashicons,
.review-form-modal.style-spotify .star-rating-input label:hover .dashicons {
    color: #1db954;
    filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.5));
}

.review-form-modal.style-spotify .star-rating-input label.neon-glow .dashicons {
    animation: neon-pulse 1.5s infinite;
}

@keyframes neon-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(29, 185, 84, 0.8)); }
}

.review-form-modal.style-spotify .btn-submit-review {
    background: #1db954;
    border: none;
    border-radius: 24px;
    padding: 14px 32px;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.review-form-modal.style-spotify .btn-submit-review:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.review-form-modal.style-spotify .btn-cancel {
    background: transparent;
    border: 1px solid #535353;
    color: white;
    border-radius: 24px;
    padding: 13px 31px;
}

.review-form-modal.style-spotify .close-form-btn {
    color: #b3b3b3;
}

.review-form-modal.style-spotify .close-form-btn:hover {
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .style-switcher-panel {
        width: 240px;
        max-height: 350px;
    }
    
    .review-form-modal.style-airbnb .review-form-content {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    .modal-style-switcher {
        bottom: 10px;
        left: 10px;
    }
    
    .style-switcher-toggle {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); }
}

/* Transition entre styles */
.review-form-modal {
    transition: background 0.3s ease;
}

.review-form-content {
    transition: all 0.3s ease;
}
