/**
 * Residence Festival Section Styles
 * 
 * Styles for the Festival of Sanremo section on residence detail pages.
 * Follows BEM naming convention.
 */

/* ============================================
   FESTIVAL SECTION
   ============================================ */

.festival-section {
    background: linear-gradient(135deg, var(--color-background-secondary, #f8f9fa) 0%, var(--gray-200, #e5e7eb) 100%);
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.festival-section--with-bg {
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.festival-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.festival-section__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.festival-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 26, 46, 0.7) 0%,
        rgba(10, 26, 46, 0.85) 50%,
        rgba(10, 26, 46, 0.9) 100%
    );
    pointer-events: none;
}

.festival-section__content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.festival-section .container {
    position: relative;
    z-index: 2;
}

.festival-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(var(--primary-color-rgb, 12, 35, 64), 0.04) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(var(--accent-color-rgb, 212, 175, 55), 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.festival-section--with-bg::before {
    display: none;
}

.festival-content {
    position: relative;
    z-index: 3;
    margin-bottom: 3rem;
}

.festival-content__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #0c2340) 0%, #1a365d 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(12, 35, 64, 0.3);
}

.festival-section--with-bg .festival-content__icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.festival-content__title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #0c2340);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.festival-content__year {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.75rem;
    color: var(--accent-color, #d4af37);
    font-weight: 600;
}

.festival-section--with-bg .festival-content__title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.festival-section--with-bg .festival-content__year {
    color: #d4af37;
}

.festival-content__description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text-secondary, #6b7280);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.festival-section--with-bg .festival-content__description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.festival-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-full, 50px);
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color, #0c2340) 0%, #1a365d 100%);
    border: none;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
    text-transform: uppercase;
    color: #ffffff;
}

.festival-section--with-bg .festival-badge .badge {
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* ============================================
   FESTIVAL HIGHLIGHTS
   ============================================ */

.festival-highlight {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md, 8px);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition-base, 250ms);
    border: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
}

.festival-section--with-bg .festival-highlight {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.festival-section--with-bg .festival-highlight:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.festival-section--with-bg .festival-highlight h6 {
    color: #ffffff;
}

.festival-section--with-bg .festival-highlight small {
    color: rgba(255, 255, 255, 0.9);
}

.festival-section--with-bg .festival-highlight .highlight-icon i {
    color: #d4af37;
}

.festival-highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
    background: rgba(255, 255, 255, 0.95);
}

.festival-highlight .highlight-icon {
    margin-bottom: 0.75rem;
}

.festival-highlight .highlight-icon i {
    font-size: 1.5rem;
    color: var(--primary-color, #0c2340);
}

.festival-highlight h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary, #111827);
    margin-bottom: 0.25rem;
}

.festival-highlight small {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    font-weight: 500;
}

/* ============================================
   FESTIVAL CTA
   ============================================ */

.festival-cta {
    position: relative;
    z-index: 2;
}

.festival-offer-compact {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md, 8px);
    padding: 1.5rem;
    border: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.1);
    transition: all var(--transition-base, 250ms);
    height: 100%;
}

.festival-section--with-bg .festival-offer-compact {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.festival-section--with-bg .festival-offer-compact:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.festival-section--with-bg .festival-offer-compact h6 {
    color: #ffffff;
}

.festival-section--with-bg .festival-offer-compact p {
    color: rgba(255, 255, 255, 0.9);
}

.festival-offer-compact:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.festival-offer-compact h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color, #0c2340);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.festival-offer-compact h6 i {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-right: 0.5rem;
}

.festival-offer-compact p {
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   FESTIVAL CONTACT BUTTONS
   ============================================ */

.festival-contact-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.festival-contact-buttons .btn {
    border-radius: var(--radius-full, 50px);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base, 250ms);
    min-width: 140px;
    text-decoration: none;
    display: inline-block;
}

.festival-contact-buttons .btn-primary {
    background: var(--primary-color, #0c2340);
    border: 2px solid var(--primary-color, #0c2340);
    color: white;
}

.festival-contact-buttons .btn-primary:hover {
    background: #1a365d;
    border-color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb, 12, 35, 64), 0.3);
}

.festival-contact-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color, #0c2340);
    color: var(--primary-color, #0c2340);
}

.festival-contact-buttons .btn-outline-primary:hover {
    background: var(--primary-color, #0c2340);
    border-color: var(--primary-color, #0c2340);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

[data-theme="dark"] .festival-section {
    background: linear-gradient(135deg, var(--color-dark-bg, #111827) 0%, var(--color-dark-bg-light, #1e293b) 100%);
}

[data-theme="dark"] .festival-section::before {
    background: radial-gradient(circle at 30% 40%, rgba(var(--primary-color-rgb, 12, 35, 64), 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(var(--accent-color-rgb, 212, 175, 55), 0.05) 0%, transparent 50%);
}

[data-theme="dark"] .festival-section .section-title {
    color: var(--color-dark-text, #f8fafc);
}

[data-theme="dark"] .festival-section .lead {
    color: var(--color-dark-text-secondary, #cbd5e1);
}

[data-theme="dark"] .festival-highlight {
    background: rgba(var(--color-dark-bg-light, 30, 41, 59), 0.8);
    border-color: var(--color-dark-border, #374151);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .festival-highlight:hover {
    background: rgba(var(--color-dark-bg-light, 30, 41, 59), 0.95);
}

[data-theme="dark"] .festival-highlight h6 {
    color: var(--color-dark-text, #f8fafc);
}

[data-theme="dark"] .festival-highlight small {
    color: var(--color-dark-text-secondary, #cbd5e1);
}

[data-theme="dark"] .festival-offer-compact {
    background: rgba(var(--color-dark-bg-light, 30, 41, 59), 0.8);
    border-color: var(--color-dark-border, #374151);
}

[data-theme="dark"] .festival-offer-compact:hover {
    background: rgba(var(--color-dark-bg-light, 30, 41, 59), 0.95);
}

[data-theme="dark"] .festival-offer-compact h6 {
    color: var(--color-dark-text, #f8fafc);
}

[data-theme="dark"] .festival-offer-compact p {
    color: var(--color-dark-text-secondary, #cbd5e1);
}

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

@media (max-width: 768px) {
    .festival-section {
        padding: 3rem 0;
    }
    
    .festival-section--with-bg {
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .festival-section__background-image {
        object-position: center;
    }
    
    .festival-content__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .festival-content__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .festival-content__year {
        font-size: 1.25rem;
    }
    
    .festival-content__description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .festival-highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .festival-highlight {
        padding: 1.5rem 1rem;
    }
    
    .festival-offers .card-body {
        padding: 1.5rem;
    }
    
    .festival-offers .offer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .festival-contact-section {
        padding: 2rem 1.5rem;
        margin-top: 1.5rem;
    }
    
    .festival-contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .festival-contact-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}

