/* 
 * Single Event Styles
 * Extends single-provider.css
 */

/* Import base styles from provider (handled in functions.php) */

/* Event-specific overrides and additions */

/* .event-article { */
    /* Inherits all provider-article styles */
/* } */


/* Main Featured Image Styling */
.event-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: cover;
    aspect-ratio: 16/10; /* Maintains consistent ratio */
    background-color: #f5f5f5; /* Fallback for letterboxing */
}

/* Event Venue Section */
.event-venue-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.event-venue-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop layout: 30% image, 70% content */
.venue-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.venue-image-container {
    flex: 0 0 30%;
    max-width: 30%;
}

.venue-image-container a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-image-container a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.venue-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.venue-info-container {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.venue-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.venue-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.venue-name a:hover {
    color: #007cba;
}

/* Event Details Section */
.event-details-section {
    margin: 20px 0;
}

.event-detail-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.event-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    min-width: 120px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    width: 20px;
    text-align: center;
    color: #007cba;
}

.detail-value {
    flex: 1;
    color: #333;
}

.event-free {
    color: #2ea44f;
    font-weight: 700;
    font-size: 1.1em;
}

/* Event Cards in Similar Events Grid */
.event-card .provider-image {
    position: relative;
}

.event-date-badge {
    background: linear-gradient(135deg, #FF8C00, #FF6B6B);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 60px;
}

/* Event placeholder image */
.event-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Location Map Section */
.event-map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.event-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.map-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.map-address i {
    color: #007cba;
    font-size: 1rem;
}

/* Button modifications for events */
.website-button .fa-ticket-alt {
    /* Or target the <i> element directly */
    margin-right: 8px; /* Adjust the value (e.g., 5px, 0.5em) to your preference */
}

.event-article .button-group .website-button {
    background: linear-gradient(135deg, #FF8C00, #FF6B6B);
    border: none;
    color: white;
}

.event-article .button-group .website-button:hover {
    background: linear-gradient(135deg, #e67e00, #e65a5a);
    transform: translateY(-2px);
}

/* Calendar button specific styling for events */
.event-article .calendar-button {
    background-color: #4285f4;
    border-color: #4285f4;
    color: white;
}

.event-article .calendar-button:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Stack venue content on mobile */
    .venue-content-wrapper {
        flex-direction: column;
    }
    
    .venue-image-container {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .event-venue-section {
        padding: 15px;
    }
    
    .venue-name {
        font-size: 1.1rem;
    }
    
    /* Map section responsive */
    .event-map-container {
        padding-bottom: 75%; /* Taller aspect ratio for mobile */
    }
    
    .map-address {
        font-size: 0.9rem;
    }
    
    .event-detail-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .event-date-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .event-venue-section h4 {
        font-size: 0.9rem;
    }
    
    .venue-name {
        font-size: 1rem;
    }
    
    .detail-label {
        font-size: 0.9rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .event-article .button-group {
        gap: 0.75rem;
    }
}

/* Print styles for events */
@media print {
    .event-venue-section {
        background-color: transparent;
        border: 1px solid #ccc;
    }
    
    .event-date-badge {
        background: #333 !important;
        color: white !important;
    }
    
    .button-group {
        display: none;
    }
}