/**
 * Styles pour les blocs Gutenberg personnalisés - Medal of Honor V2
 * 
 * @package Medal_Of_Honor_V2
 * @since 2.0.0
 */

/* ===========================================
   BLOC HERO SECTION
   =========================================== */
.moh-v2-hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.moh-v2-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.moh-v2-hero-section .container {
    position: relative;
    z-index: 2;
}

.moh-v2-hero-section .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.moh-v2-hero-section .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.moh-v2-hero-section .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.moh-v2-hero-section .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.moh-v2-hero-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.moh-v2-hero-section .btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.moh-v2-hero-section .btn-primary:hover {
    background: var(--color-primary-dark, #b8943d);
    border-color: var(--color-primary-dark, #b8943d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 166, 86, 0.3);
}

.moh-v2-hero-section .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.moh-v2-hero-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ===========================================
   BLOC DASHBOARD STATS
   =========================================== */
.moh-v2-dashboard-stats {
    margin: 2rem 0;
}

.moh-v2-dashboard-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.moh-v2-dashboard-stats .stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    backdrop-filter: var(--glass-backdrop);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.moh-v2-dashboard-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.moh-v2-dashboard-stats .stat-card.highlight::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.moh-v2-dashboard-stats .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.moh-v2-dashboard-stats .stat-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.moh-v2-dashboard-stats .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.moh-v2-dashboard-stats .stat-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================================
   BLOC FORMULAIRE MÉDAILLON
   =========================================== */
.moh-v2-medallion-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.progress-indicator {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    padding: 0 1rem;
}

.progress-steps .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.progress-steps .step.active .step-number,
.progress-steps .step.completed .step-number {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.progress-steps .step-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.progress-steps .step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.medallion-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: var(--glass-backdrop);
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--text-primary);
    opacity: 0.8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group-large {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(211, 166, 86, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.form-actions .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.form-actions .btn-primary {
    background: var(--color-primary);
    color: white;
}

.form-actions .btn-primary:hover {
    background: var(--color-primary-dark, #b8943d);
    transform: translateY(-1px);
}

.form-actions .btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.form-actions .btn-secondary:hover {
    background: var(--bg-secondary);
}

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

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .moh-v2-hero-section {
        min-height: 60vh;
    }
    
    .moh-v2-hero-section .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .moh-v2-hero-section .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .moh-v2-dashboard-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .moh-v2-dashboard-stats .stat-card {
        padding: 1.5rem;
    }
    
    .moh-v2-dashboard-stats .stat-number {
        font-size: 2.5rem;
    }
    
    .progress-steps {
        gap: 1rem;
    }
    
    .progress-steps .step-label {
        display: none;
    }
    
    .medallion-form {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .moh-v2-dashboard-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .moh-v2-medallion-form-container {
        padding: 1rem 0;
    }
    
    .medallion-form {
        padding: 1rem;
    }
}

/* ===========================================
   BLOCS ÉDITEUR GUTENBERG
   =========================================== */
.wp-block-moh-v2-hero-section,
.wp-block-moh-v2-dashboard-stats,
.wp-block-moh-v2-medallion-form {
    margin: 2rem 0;
}

.block-editor-block-list__block[data-type="moh-v2/hero-section"] {
    min-height: 300px;
}

.block-editor-block-list__block[data-type="moh-v2/dashboard-stats"] .components-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-editor-block-list__block[data-type="moh-v2/medallion-form"] .components-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
