/* 
 * FKK Point Bruchsal - Event Detail Page Styles
 * Extends the main styles with event-specific styling
 */

/* Event Hero Section */
.event-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/event-hero.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Accounts for fixed header */
}

.event-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
}

.event-hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    color: var(--white);
}

/* Event meta badges */
.event-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.event-date,
.event-time {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 20px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Background circles for event hero */
.event-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--primary-red);
    border-radius: 50%;
    opacity: 0.1;
    top: -100px;
    left: -100px;
    z-index: 1;
}

.event-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    bottom: -100px;
    right: -50px;
    z-index: 1;
}

/* Event Details Section */
.event-details {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for event details */
.event-details::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background-color: rgba(209, 10, 16, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 1;
}

.event-details::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

/* Event Details Grid */
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* Event Image Gallery */
.event-image-gallery {
    position: relative;
}

.event-main-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.event-main-image img {
    width: 100%;
    display: block;
}

.event-image-thumbnails {
    display: flex;
    gap: 10px;
}

.event-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Event Information */
.event-information {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.event-description {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.event-highlights {
    margin-bottom: 30px;
}

.event-highlights h3,
.event-booking h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.event-highlights h3::before,
.event-booking h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--gold);
    border-radius: 50%;
}

.event-highlights-list {
    list-style: none;
    padding-left: 0;
}

.event-highlights-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--light-gray);
}

.event-highlights-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

#event-ticket-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#event-ticket-info p {
    color: var(--light-gray);
    margin-bottom: 10px;
}

#event-ticket-info p:last-child {
    margin-bottom: 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
}

/* Similar Events Section */
.similar-events {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for similar events */
.similar-events::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(209, 10, 16, 0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    z-index: 1;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-card h3 {
    color: var(--white);
    padding: 20px 20px 10px;
    font-size: 1.2rem;
}

.event-card p {
    color: var(--light-gray);
    padding: 0 20px 10px;
    flex: 1;
}

.event-card .service-link {
    color: var(--primary-red);
    padding: 0 20px 20px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.event-card .service-link:hover {
    color: var(--gold);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px 0;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .event-image-gallery {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .event-hero h1 {
        font-size: 3rem;
    }
    
    .event-details,
    .similar-events {
        padding: 60px 0;
    }
    
    .events-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .event-hero {
        min-height: 300px;
    }
    
    .event-hero h1 {
        font-size: 2.5rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-details,
    .similar-events {
        padding: 50px 0;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .event-hero h1 {
        font-size: 2rem;
    }
    
    .event-image-thumbnails {
        justify-content: center;
    }
    
    .cta-button {
        width: 100%;
    }
}