/**
 * Modal Combinations CSS - Salnea Review System
 * Ajustements spécifiques pour les 28 combinaisons (7 styles × 4 layouts)
 * Version: 1.0.0
 */

/* ========================================
   APPLE × 4 LAYOUTS
   ======================================== */

/* Apple × Compact */
.modal-style-apple.modal-layout-compact {
    backdrop-filter: blur(20px);
}

.modal-style-apple.modal-layout-compact .review-form-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Apple × Steps */
.modal-style-apple.modal-layout-steps .step-dot {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.modal-style-apple.modal-layout-steps .step-dot.active {
    background: #007AFF;
    border-color: #007AFF;
}

/* Apple × Horizontal */
.modal-style-apple.modal-layout-horizontal {
    backdrop-filter: blur(30px);
}

.modal-style-apple.modal-layout-horizontal .review-form-content {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 30px;
}

.modal-style-apple.modal-layout-horizontal .review-form-content::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

/* Apple × Minimal */
.modal-style-apple.modal-layout-minimal {
    backdrop-filter: blur(15px);
}

.modal-style-apple.modal-layout-minimal button[type="submit"] {
    background: #007AFF;
    border-radius: 20px;
}

/* ========================================
   AIRBNB × 4 LAYOUTS
   ======================================== */

/* Airbnb × Compact */
.modal-style-airbnb.modal-layout-compact .rating-selection {
    background: #FF5A5F;
    color: white;
    margin: -20px -20px 20px -20px;
    padding: 20px;
}

/* Airbnb × Steps */
.modal-style-airbnb.modal-layout-steps .step-indicators::before {
    background: #FF5A5F;
    opacity: 0.3;
}

.modal-style-airbnb.modal-layout-steps .step-dot.active {
    background: #FF5A5F;
    border-color: #FF5A5F;
}

.modal-style-airbnb.modal-layout-steps h3 {
    color: #FF5A5F;
    font-weight: 600;
}

/* Airbnb × Horizontal */
.modal-style-airbnb.modal-layout-horizontal .left-column {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
}

.modal-style-airbnb.modal-layout-horizontal button[type="submit"] {
    background: #FF5A5F;
}

/* Airbnb × Minimal */
.modal-style-airbnb.modal-layout-minimal {
    border-top: 3px solid #FF5A5F;
}

.modal-style-airbnb.modal-layout-minimal button[type="submit"] {
    background: #FF5A5F;
    border-radius: 8px;
}

/* ========================================
   NOTION × 4 LAYOUTS
   ======================================== */

/* Notion × Compact */
.modal-style-notion.modal-layout-compact {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-style-notion.modal-layout-compact .emoji-rating {
    font-size: 32px;
    margin: 10px 0;
}

/* Notion × Steps */
.modal-style-notion.modal-layout-steps .step-container {
    background: #f7f6f3;
    padding: 20px;
    border-radius: 8px;
}

.modal-style-notion.modal-layout-steps .step-dot {
    font-size: 20px;
}

.modal-style-notion.modal-layout-steps .step-dot.active::before {
    content: '✓';
    color: white;
}

/* Notion × Horizontal */
.modal-style-notion.modal-layout-horizontal {
    background: white;
}

.modal-style-notion.modal-layout-horizontal .form-section {
    background: #f7f6f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Notion × Minimal */
.modal-style-notion.modal-layout-minimal .emoji-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 36px;
}

/* ========================================
   STRIPE × 4 LAYOUTS
   ======================================== */

/* Stripe × Compact */
.modal-style-stripe.modal-layout-compact {
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25);
}

.modal-style-stripe.modal-layout-compact input,
.modal-style-stripe.modal-layout-compact textarea {
    border: 1px solid #e0e0e0;
    transition: all 0.15s ease;
}

.modal-style-stripe.modal-layout-compact input:focus,
.modal-style-stripe.modal-layout-compact textarea:focus {
    border-color: #6772e5;
    box-shadow: 0 0 0 1px #6772e5;
}

/* Stripe × Steps */
.modal-style-stripe.modal-layout-steps {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-style-stripe.modal-layout-steps .review-form-content {
    background: white;
    margin: 20px;
    border-radius: 8px;
}

.modal-style-stripe.modal-layout-steps .step-dot.active {
    background: #6772e5;
    border-color: #6772e5;
}

/* Stripe × Horizontal */
.modal-style-stripe.modal-layout-horizontal {
    max-width: 1000px !important;
}

.modal-style-stripe.modal-layout-horizontal .left-column {
    border-right: 1px solid #e0e0e0;
    padding-right: 30px;
}

.modal-style-stripe.modal-layout-horizontal button[type="submit"] {
    background: #6772e5;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
}

/* Stripe × Minimal */
.modal-style-stripe.modal-layout-minimal {
    border-radius: 8px;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25);
}

.modal-style-stripe.modal-layout-minimal button[type="submit"] {
    background: #6772e5;
    font-weight: 600;
}

/* ========================================
   MEDIUM × 4 LAYOUTS
   ======================================== */

/* Medium × Compact */
.modal-style-medium.modal-layout-compact {
    font-family: Georgia, serif;
}

.modal-style-medium.modal-layout-compact h2 {
    font-size: 24px;
    font-weight: 400;
    border-bottom: 1px solid #292929;
    padding-bottom: 10px;
}

/* Medium × Steps */
.modal-style-medium.modal-layout-steps {
    font-family: Georgia, serif;
}

.modal-style-medium.modal-layout-steps .step-container h3 {
    font-family: -apple-system, sans-serif;
    letter-spacing: -0.5px;
}

.modal-style-medium.modal-layout-steps textarea {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

/* Medium × Horizontal */
.modal-style-medium.modal-layout-horizontal {
    max-width: 800px !important;
    font-family: Georgia, serif;
}

.modal-style-medium.modal-layout-horizontal textarea {
    font-size: 16px;
    line-height: 1.8;
}

/* Medium × Minimal */
.modal-style-medium.modal-layout-minimal {
    font-family: Georgia, serif;
}

.modal-style-medium.modal-layout-minimal textarea {
    border: none;
    border-bottom: 2px solid #292929;
    border-radius: 0;
    font-size: 18px;
}

.modal-style-medium.modal-layout-minimal button[type="submit"] {
    background: #03a87c;
    border-radius: 3px;
}

/* ========================================
   SPOTIFY × 4 LAYOUTS
   ======================================== */

/* Spotify × Compact */
.modal-style-spotify.modal-layout-compact {
    background: #121212;
    color: white;
}

.modal-style-spotify.modal-layout-compact .review-form-content {
    background: #181818;
    border: 1px solid #282828;
}

.modal-style-spotify.modal-layout-compact input,
.modal-style-spotify.modal-layout-compact textarea {
    background: #282828;
    border: 1px solid #404040;
    color: white;
}

/* Spotify × Steps */
.modal-style-spotify.modal-layout-steps {
    background: #121212;
}

.modal-style-spotify.modal-layout-steps .review-form-content {
    background: #181818;
    color: white;
}

.modal-style-spotify.modal-layout-steps .step-dot {
    background: #282828;
    border-color: #1DB954;
    color: #b3b3b3;
}

.modal-style-spotify.modal-layout-steps .step-dot.active {
    background: #1DB954;
    border-color: #1DB954;
    color: white;
}

.modal-style-spotify.modal-layout-steps .step-container {
    color: white;
}

/* Spotify × Horizontal */
.modal-style-spotify.modal-layout-horizontal {
    background: #121212;
}

.modal-style-spotify.modal-layout-horizontal .review-form-content {
    background: linear-gradient(135deg, #181818, #282828);
    color: white;
}

.modal-style-spotify.modal-layout-horizontal input,
.modal-style-spotify.modal-layout-horizontal textarea {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid #404040;
    color: white;
}

.modal-style-spotify.modal-layout-horizontal button[type="submit"] {
    background: #1DB954;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Spotify × Minimal */
.modal-style-spotify.modal-layout-minimal {
    background: #121212;
    color: white;
}

.modal-style-spotify.modal-layout-minimal .review-form-content {
    background: #181818;
}

.modal-style-spotify.modal-layout-minimal .star-rating .star.active {
    color: #1DB954;
    text-shadow: 0 0 10px #1DB954;
}

.modal-style-spotify.modal-layout-minimal button[type="submit"] {
    background: #1DB954;
    color: black;
    font-weight: 700;
}

/* ========================================
   HYBRIDE × 4 LAYOUTS (DEFAULT)
   ======================================== */

/* Hybride × Compact */
.modal-style-hybrid.modal-layout-compact {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,248,248,0.95));
    backdrop-filter: blur(10px);
}

/* Hybride × Steps */
.modal-style-hybrid.modal-layout-steps .step-dot {
    background: white;
    border: 2px solid #FF5A5F;
}

.modal-style-hybrid.modal-layout-steps .step-dot.active {
    background: linear-gradient(135deg, #007AFF, #FF5A5F);
    border-color: transparent;
}

/* Hybride × Horizontal */
.modal-style-hybrid.modal-layout-horizontal {
    max-width: 850px !important;
}

.modal-style-hybrid.modal-layout-horizontal .review-form-content::after {
    background: linear-gradient(to bottom, transparent, #FF5A5F, #007AFF, transparent);
    opacity: 0.3;
}

/* Hybride × Minimal */
.modal-style-hybrid.modal-layout-minimal button[type="submit"] {
    background: linear-gradient(135deg, #007AFF, #FF5A5F);
    border: none;
}

/* ========================================
   ANIMATIONS SPÉCIFIQUES PAR COMBO
   ======================================== */

/* Apple avec animations fluides */
.modal-style-apple.modal-layout-steps .step-container {
    animation: fadeInUp 0.4s ease;
}

/* Airbnb avec bounce */
.modal-style-airbnb.modal-layout-compact button[type="submit"]:hover {
    animation: bounce 0.3s ease;
}

/* Notion avec typing effect */
.modal-style-notion.modal-layout-minimal textarea:focus {
    animation: typing 0.2s ease;
}

/* Stripe avec validation */
.modal-style-stripe input.valid {
    border-color: #1DB954;
}

.modal-style-stripe input.valid::after {
    content: '✓';
    position: absolute;
    right: 10px;
    color: #1DB954;
}

/* Spotify avec pulse */
.modal-style-spotify .star-rating .star:hover {
    animation: pulse 0.5s infinite;
}

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

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

@keyframes typing {
    from { border-color: #666; }
    to { border-color: #333; }
}

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

/* ========================================
   RESPONSIVE POUR TOUTES LES COMBOS
   ======================================== */

@media (max-width: 768px) {
    /* Forcer tous les layouts horizontaux en vertical sur mobile */
    .modal-layout-horizontal #new-review-form {
        grid-template-columns: 1fr !important;
    }
    
    /* Ajuster les steps sur mobile */
    .modal-layout-steps .step-indicators {
        gap: 10px;
    }
    
    .modal-layout-steps .step-dot {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    /* Réduire les tailles sur mobile */
    .modal-layout-compact,
    .modal-layout-minimal {
        max-height: 70vh !important;
    }
}