/* ============================================
   Back2TheTee Public - Events Page Styles
   ============================================ */

/* Events Container - centered with larger max-width for two columns */
.events-grid {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

/* Event Section */
.event-section {
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid #e5e5e5;
}

.event-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Two-column layout */
.event-layout {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 40px;
    margin-top: 24px;
}

.event-layout-no-image {
    grid-template-columns: 1fr;
    max-width: 600px;
}

/* Left column - Flyer image */
.event-flyer-column {
    display: flex;
    align-items: flex-start;
}

.event-flyer-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Right column - Details */
.event-details-column {
    display: flex;
    flex-direction: column;
}

.event-details-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #D4A843;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D4A843;
}

/* PDF link style */
.event-pdf-container {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.event-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1B4D3E;
    text-decoration: none;
    transition: color 0.2s;
}

.event-pdf-link:hover {
    color: #D4A843;
}

.event-pdf-link svg {
    flex-shrink: 0;
}

/* Mobile responsive - stack columns */
@media (max-width: 768px) {
    .event-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-flyer-column {
        order: 1;
    }

    .event-details-column {
        order: 2;
    }
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1B4D3E;
    margin: 0 0 16px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .event-title {
        font-size: 26px;
    }
}

.event-date,
.event-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
}

.event-date svg,
.event-time svg {
    color: #D4A843;
    flex-shrink: 0;
}

.event-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 20px 0;
}

/* Event Schedule Display */
.event-schedule {
    margin: 16px 0;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #D4A843;
}

.schedule-day {
    margin-bottom: 12px;
}

.schedule-day:last-child {
    margin-bottom: 0;
}

.schedule-day-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1B4D3E;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-day-times {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-block {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.schedule-time {
    color: #555;
    font-weight: 500;
}

.schedule-label {
    color: #888;
    font-size: 13px;
    font-style: italic;
}

/* Event Actions */
.event-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

/* Call to Book button - mobile only */
.btn-call-mobile {
    display: none;
}

@media (max-width: 768px) {
    .btn-call-mobile {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .event-actions .btn {
        width: 100%;
    }
}

/* Loading State */
.events-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.events-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #DC2626;
    font-size: 14px;
}

/* Empty State */
.events-empty {
    text-align: center;
    padding: 60px 20px;
}

.events-empty svg {
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.events-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1B4D3E;
    margin: 0 0 12px;
}

.events-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
}

/* Homepage Featured Events Section */
.featured-events-section {
    background: #f9f9f9;
    padding: 80px 0;
}

.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 24px;
    margin-top: 40px;
    justify-content: center;
}

@media (max-width: 576px) {
    .featured-events-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.featured-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.featured-event-media {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1B4D3E 0%, #2D6A4F 100%);
}

.featured-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-event-content {
    padding: 20px;
}

.featured-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1B4D3E;
    margin: 0 0 8px;
}

.featured-event-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #D4A843;
    margin-bottom: 8px;
}

.featured-event-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-events {
    text-align: center;
    margin-top: 32px;
}

/* Featured event wrapper for call button */
.featured-event-wrapper {
    display: flex;
    flex-direction: column;
}

.featured-call-mobile {
    display: none;
    padding: 12px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    margin-top: -12px;
}

.featured-call-mobile .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .featured-call-mobile {
        display: block;
    }
}
