/**
 * Event Details Page - Compact Modern Design
 * Makes event details more organized, compact, and proportional
 */

/* ========================================
   LAYOUT - Full-width responsive
   ======================================== */
.event-tab-content {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .event-tab-content {
        padding-right: 1.5rem;
    }
}

/* ========================================
   HERO SECTION - More compact
   ======================================== */
.event-hero {
    height: 280px;
    margin-bottom: 1.5rem;
}

.event-hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.event-hero-date {
    font-size: 0.95rem;
}

.event-hero-type {
    font-size: 0.75rem;
    padding: 4px 12px;
}

/* ========================================
   ATTENDANCE OVERVIEW - Compact cards
   ======================================== */
.attendance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.attendance-stat-card {
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.2s;
}

.attendance-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.attendance-stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.attendance-stat-icon.attending {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.attendance-stat-icon.declined {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.attendance-stat-icon.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.attendance-stat-icon.transport {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
}

.attendance-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #2c5f45;
}

.attendance-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   DETAILS SECTION - Compact information display
   ======================================== */
.event-details-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}

.detail-item i {
    color: #27ae60;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item-content {
    flex: 1;
    min-width: 0;
}

.detail-item-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-item-value {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
    word-wrap: break-word;
}

.detail-item-value .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ========================================
   MATCHDAY DETAILS - Compact card design
   ======================================== */
.matchday-card-compact {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.matchday-card-compact .card-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2c5f45 0%, #27ae60 100%);
    color: white;
}

.matchday-card-compact .card-header h5 {
    font-size: 1rem;
    margin: 0;
}

.matchday-card-compact .card-body {
    padding: 1rem;
}

.matchday-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.matchday-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
}

.matchday-info-item strong {
    color: #6c757d;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 70px;
}

/* ========================================
   ALERTS & NOTICES - Compact styling
   ======================================== */
.alert-compact {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.alert-compact strong {
    font-size: 0.9rem;
}

.alert-compact ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.alert-compact li {
    margin-bottom: 0.25rem;
}

/* ========================================
   SIDEBAR INFO - Compact cards
   ======================================== */
.event-info-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 1rem;
    margin-bottom: 1rem;
}

.event-info-card h3 {
    font-size: 1rem;
    color: #2c5f45;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #27ae60;
}

.event-info-card h3 i {
    margin-right: 0.5rem;
    color: #27ae60;
}

.event-info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.85rem;
}

.event-info-item:last-child {
    border-bottom: none;
}

.event-info-item strong {
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

/* ========================================
   LOCATION TAB - Enhanced compact map controls
   ======================================== */
.map-provider-switcher {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-provider-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #495057;
    font-weight: 600;
}

.map-provider-btn:hover {
    background: #f8f9fa;
    border-color: #27ae60;
    color: #27ae60;
}

.map-provider-btn.active {
    background: linear-gradient(135deg, #2c5f45 0%, #27ae60 100%);
    color: white;
    border-color: #27ae60;
}

.map-provider-btn i {
    font-size: 0.9rem;
}

.map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.map-iframe {
    border: none;
    width: 100%;
    height: 400px;
}

.meeting-point-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
}

.meeting-point-section h5 {
    font-size: 1rem;
    color: #856404;
    margin-bottom: 0.75rem;
}

.meeting-point-section .alert {
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 992px) {
    .event-hero {
        height: 240px;
    }
    
    .event-hero-title {
        font-size: 1.5rem;
    }
    
    .attendance-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-details-compact {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SIDEBAR RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    /* On tablet and below, give sidebar widgets more breathing room */
    .col-12.col-md-4 .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    /* On mobile, stack sidebar below content with full width */
    .col-12 .card {
        margin-bottom: 1rem;
    }
    
    .attendance-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .event-hero {
        height: 200px;
    }
    
    .event-hero-title {
        font-size: 1.3rem;
    }
    
    .event-hero-date {
        font-size: 0.85rem;
    }
    
    .attendance-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .attendance-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .attendance-stat-value {
        font-size: 1.3rem;
    }
    
    .matchday-info-grid {
        grid-template-columns: 1fr;
    }
    
    .map-iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .event-hero {
        height: 180px;
    }
    
    .event-hero-title {
        font-size: 1.1rem;
    }
    
    .attendance-overview {
        grid-template-columns: 1fr 1fr;
    }
    
    .detail-item {
        padding: 0.6rem;
    }
    
    .map-provider-switcher {
        width: 100%;
    }
    
    .map-provider-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }
}
