/* Event Detail Page Styles - Combina stile SEO con elementi Flutter */

/* Event Hero Section - Immagine grande in alto come Flutter */
.event-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-top: 80px; /* Spazio per header fisso */
}

.event-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(105%);
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%
    );
    border-radius: 0 0 20px 20px;
}

/* Action buttons overlay - come Flutter */
.event-hero-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.btn-back {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--color-transition);
    color: var(--text-primary);
}

.btn-back:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.event-hero-right-actions {
    display: flex;
    gap: 12px;
}

.btn-like, .btn-share {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--color-transition);
    color: var(--text-primary);
}

.btn-like:hover, .btn-share:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.btn-like.liked {
    background: var(--accent-red);
    color: var(--white);
}

/* Event Detail Content - Card principale come Flutter */
.event-detail-content {
    padding: 40px 0;
    background: var(--white);
    position: relative;
    z-index: 5;
}

.event-detail-card {
    background: var(--white);
    border-radius: 32px 32px 0 0;
    margin-top: -32px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Texture di rumore bianco sovrapposta come Flutter */
.event-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Event Header - Data grande a sinistra e info a destra come Flutter */
.event-header {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.event-date-weekday {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-date-day {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.event-date-month {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

.event-type {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* Event Details Sections */
.event-detail-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Event Detail Grid - Informazioni organizzate come Flutter */
.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.event-detail-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: var(--color-transition);
}

.event-detail-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Event Description */
.event-description {
    background: var(--gray-50);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    line-height: 1.6;
    color: var(--text-primary);
}

.event-description p {
    margin-bottom: 16px;
}

.event-description p:last-child {
    margin-bottom: 0;
}

/* Event Map */
.event-map {
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    min-height: 200px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    text-align: center;
}

.map-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.map-placeholder p {
    font-size: 16px;
    font-weight: 500;
}

/* Event Actions */
.event-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-actions .btn {
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-hero {
        height: 300px;
        margin-top: 70px;
    }
    
    .event-detail-card {
        margin-top: -24px;
        padding: 24px 20px;
        border-radius: 24px 24px 0 0;
    }
    
    .event-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .event-date {
        min-width: auto;
    }
    
    .event-title {
        font-size: 24px;
    }
    
    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-detail-item {
        padding: 16px;
    }
    
    .event-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .event-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .btn-back, .btn-like, .btn-share {
        width: 40px;
        height: 40px;
    }
    
    .event-hero-actions {
        top: 16px;
        left: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .event-hero {
        height: 250px;
    }
    
    .event-detail-card {
        padding: 20px 16px;
    }
    
    .event-title {
        font-size: 22px;
    }
    
    .event-date-day {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* Animazioni fluide */
.event-detail-card {
    animation: slideUp 0.6s ease-out;
}

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

/* Focus states per accessibilità */
.btn-back:focus,
.btn-like:focus,
.btn-share:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Hover effects avanzati */
.event-detail-item:hover .detail-icon {
    background: var(--primary-violet);
    transform: scale(1.05);
}

/* Blob gradient layer come Flutter */
.event-detail-card::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle at 30% 30%, rgba(74,145,242,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 40%, rgba(254,205,63,0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(92,204,107,0.1) 0%, transparent 50%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}
