/* 
 * FKK Point Bruchsal - Events Page Styles
 * Extends the main styles with events-specific styling
 */

/* Sub-page header */
.sub-page-header {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/events-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 */
}

.sub-header-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
}

.sub-page-header h1 {
    font-size: 3.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    color: var(--white);
}

.header-subtitle {
    font-size: 1.5rem;
    color: var(--light-gold);
    max-width: 800px;
    margin: 0 auto;
}

/* Background circles for sub-page header */
.sub-page-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.sub-circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-red);
    top: -100px;
    left: -100px;
}

.sub-circle-2 {
    width: 300px;
    height: 300px;
    background-color: var(--gold);
    bottom: -100px;
    right: -50px;
}

.sub-circle-3 {
    width: 250px;
    height: 250px;
    background-color: var(--white);
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
}

/* Events page main content */
.events-page {
    background-color: var(--black);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for events page */
.events-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: rgba(209, 10, 16, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
}

.events-page::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    z-index: 1;
}

/* Events filter */
.events-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.events-filter-button {
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.events-filter-button.active,
.events-filter-button:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* Month container */
.events-month-container {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.events-month-title {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Events grid */
.events-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Event card */
.event-card-large {
    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-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Event card image */
.event-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.event-card-large:hover .event-card-image img {
    transform: scale(1.1);
}

/* Event date badge */
.event-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Event card content */
.event-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

/* Event metadata */
.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.event-card-meta-item {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 0.9rem;
}

.event-card-meta-item i {
    margin-right: 5px;
}

/* Event description */
.event-card-description {
    color: var(--light-gray);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.6;
}

/* Event CTA button */
.event-card-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    align-self: flex-start;
}

.event-card-button:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Sub-page sections */
.sub-page-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background-color: var(--white);
    color: var(--black);
}

.section-dark {
    background-color: #3a0000;
    color: var(--white);
}

/* Feature boxes */
.feature-box {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-red);
    text-align: center;
}

.feature-description {
    color: var(--gray);
    text-align: center;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Newsletter form */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    padding: 15px;
    border-radius: 30px 0 0 30px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form .newsletter-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form .newsletter-btn:hover {
    background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
}

/* Custom list styles */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-unstyled li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.list-unstyled li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--gold);
}

/* Loading state for dynamic content */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--gold);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    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) {
    .sub-page-section {
        padding: 70px 0;
    }
    
    .events-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .sub-page-header h1 {
        font-size: 3rem;
    }
    
    .header-subtitle {
        font-size: 1.3rem;
    }
    
    .sub-page-section {
        padding: 60px 0;
    }
    
    .events-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .event-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .sub-page-header {
        min-height: 300px;
    }
    
    .sub-page-header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .events-page {
        padding: 60px 0;
    }
    
    .sub-page-section {
        padding: 50px 0;
    }
    
    .events-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .events-filter-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .events-page-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .event-card-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .sub-page-header h1 {
        font-size: 2rem;
    }
    
    .event-card-title {
        font-size: 1.3rem;
    }
    
    .event-card-button {
        width: 100%;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
}