/*
 * Styles for the Events Page
 * Path: /css/events.css
 */

/* Events Hero Section - Adapted from menu.css */
.events-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 90px;
    padding-bottom: 80px;
    background-color: var(--black-background);
}

.events-hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) grayscale(0.2);
    z-index: 0;
}

.events-hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
    padding: 60px 40px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.4);
    text-align: center;
}

.events-hero-text-panel h1 {
    font-size: 4.8rem;
    margin-bottom: 25px;
    color: var(--gold-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    font-family: var(--primary-font);
    line-height: 1.1;
}

.events-hero-text-panel p {
    font-size: 1.7rem;
    font-family: var(--secondary-font);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Events Content Section */
.events-content {
    padding: 80px 0;
    background-color: var(--black-background);
}

.events-content h2 {
    font-size: 3.2rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 60px;
}

/* Events Grid Layout */
.events-grid {
    display: grid;
    /* Adjust minmax to accommodate the new card width, allowing for more columns on larger screens */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
    justify-items: center; /* Center the cards within the grid cells */
}

.event-card {
    /* Set a fixed width for the card, similar to an Instagram post */
    width: 350px;
    height: auto; /* Height will adjust based on content */
    max-width: 100%; /* Ensure it's still responsive on smaller screens */
    
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card-image {
    /* Set a fixed height for the image container to create a square or desired aspect ratio */
    width: 100%;
    height: 350px; /* This makes the image section square, like an Instagram post */
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.1);
}

.event-card-content {
    padding: 25px;
    text-align: center;
}

.event-card-title {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    color: var(--gold-color);
    margin: 0 0 10px 0;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.event-card-date {
    font-family: var(--secondary-font);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-excerpt {
    font-family: var(--secondary-font);
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.9);
    line-height: 1.6;
    margin-bottom: 25px;
}

.event-card-cta {
    display: inline-block;
    background: linear-gradient(45deg, var(--gold-color), #FFD700);
    color: var(--black-background);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--primary-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.event-card:hover .event-card-cta {
    background: linear-gradient(45deg, #FFD700, var(--gold-color));
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.no-events-found {
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
    grid-column: 1 / -1; /* Span full width of the grid */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .events-hero-text-panel h1 {
        font-size: 3rem;
    }

    .events-hero-text-panel p {
        font-size: 1.2rem;
    }

    .events-content h2 {
        font-size: 2.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
        justify-items: center; /* Center the single column card */
    }

    .event-card {
        width: 90%; /* Make cards take up more width on small screens */
        max-width: 350px; /* But don't exceed the intended Instagram-like size */
    }

    .event-card-image {
        height: 300px; /* Slightly smaller image height on mobile */
    }
}
