/* 
 * Archive Event Styles
 * Location: /events/archive-event.css
 * 
 * Extends archive-provider.css with event-specific styles
 * 
 * NOTE: Feed banner styles are inherited from:
 * - archive-provider.css (base card styles)
 * - js/feed-banner.css (carousel-specific styles)
 */

/* ===================================
   PAGE HEADER & TITLE
   =================================== */

   .archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
    color: #333;
}

/* Filter Summary */
.filter-summary {
    background: #f9f9f9;
    border-left: 4px solid #FFAC33;
    padding: 12px 15px;
    margin: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
}

.filter-summary strong {
    color: #FF8C00;
}

.clear-all-filters {
    background: linear-gradient(to right, #FF8C00, #FF6B6B);
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 600;
}

.clear-all-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 140, 0, 0.3);
}

/* ===================================
   DATE PICKER CAROUSEL
   =================================== */
.date-filter-pending {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.event-date-picker-container {
    width: 100%;
    padding: 0;
    background: #fff;
}

.date-picker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.date-picker-arrow {
    background: linear-gradient(135deg, #FF8C00, #FF6B6B);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
    flex-shrink: 0;
    padding: 0 !important; /* Override Astra's button padding */
    line-height: 1 !important; /* Override Astra's line-height */
    font-size: 16px !important; /* Set consistent font size */
}

.date-picker-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.4);
}

.date-picker-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.date-picker-arrow i {
    font-size: 16px;
}

.date-picker-month {
    font-size: 16px;
    font-weight: 700;
    color: #FF8C00;
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.date-picker-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.date-picker-track {
    display: flex;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-picker-item {
    min-width: 60px;
    padding: 10px 8px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    flex-shrink: 0;
}

.date-picker-item:hover {
    border-color: #FFAC33;
    background: #FFF7EC;
    transform: translateY(-2px);
}

.date-picker-item.selected {
    border: 2px solid transparent;
    background: 
        linear-gradient(#FFF7EC, #FFF7EC) padding-box,
        linear-gradient(to bottom right, #FFAC33, #FF9999) border-box;
    box-shadow: 0 2px 6px rgba(255, 172, 51, 0.3);
}

.date-deselect-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.date-number {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 4px;
}

.date-day {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.date-day.weekend {
    color: #FF6B6B;
}

/* Date Picker Actions */
.date-picker-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.clear-dates-btn {
    background: #63b2f2;
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.clear-dates-btn:hover {
    background: #278ee1;
    transform: translateY(-1px);
}

.clear-dates-btn i {
    font-size: 14px;
}

.date-selection-count {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.date-picker-limit-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-picker-limit-warning i {
    color: #ffc107;
}

/* ===================================
   EVENT CARD SPECIFIC STYLES
   =================================== */

/* Date Badge (Top Left Corner) */
.event-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.event-date-text {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    text-align: center;
}

.event-time-text {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    line-height: 1.2;
    margin-top: 2px;
    text-align: center;
}

/* Event Meta (Location & Price) */
.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px 10px;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.price-tag {
    font-size: 12px;
    color: #FF8C00;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-tag i {
    font-size: 13px;
}

.event-price {
    display: inline-block;
}

.event-price.free {
    color: #2ea44f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 992px) {
    .archive-title {
        font-size: 1.75rem;
        margin: 15px 0 10px 0;
    }
    
    .date-picker-item {
        min-width: 55px;
        padding: 8px 6px;
    }
    
    .date-number {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .archive-title {
        font-size: 1.5rem;
        margin: 10px 0;
    }
    
    .filter-summary {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .clear-all-filters {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    /* Date Picker Mobile Optimization */
    .date-picker-arrow {
        width: 36px;
        height: 36px;
        min-width: 36px; 
        min-height: 36px;
    }
    
    .date-picker-arrow i {
        font-size: 14px;
    }
    
    .date-picker-month {
        font-size: 14px;
        min-width: 40px;
    }
    
    .date-picker-item {
        min-width: 50px;
        padding: 8px 5px;
    }
    
    .date-number {
        font-size: 16px;
    }
    
    .date-day {
        font-size: 10px;
    }
    
    .date-deselect-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -6px;
        right: -6px;
    }
    
    .date-picker-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .clear-dates-btn {
        width: 100%;
        justify-content: center;
    }
    
    .date-selection-count {
        text-align: center;
    }
    
    /* Event Card Mobile */
    .event-date-badge {
        padding: 6px 10px;
        top: 8px;
        left: 8px;
    }
    
    .event-date-text {
        font-size: 11px;
    }
    
    .event-time-text {
        font-size: 10px;
    }
    
    .event-meta {
        gap: 10px;
        font-size: 0.85em;
    }
    
    .price-tag {
        font-size: 11px;
    }
}

/* Touch Swipe Support - Enhance scrolling on mobile */
@media (max-width: 768px) {
    .date-picker-track {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}