/* ===== EVENTS PAGE STYLES ===== */

/* Events Page Base Styling */
.events-page {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #502c2c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header h1 i {
    color: #e74c3c;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Events Summary */
.events-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
}

.summary-count {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Events Filter */
.events-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}


/* Filter Status Message */
.filter-status {
    background: #e8f4fd;
    border: 1px solid #b6e0fe;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 2rem;
    text-align: center;
}

.filter-status p {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-status i {
    color: #3498db;
}

.clear-filter {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #e74c3c;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.clear-filter:hover {
    background: #e74c3c;
    color: white;
    text-decoration: none;
}

/* Loading state for filter buttons */
.filter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.filter-btn .fa-spinner {
    margin-right: 0.5rem;
}


.filter-btn {
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Events Sections */
.events-section {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.section-title i {
    color: #e74c3c;
}

.event-count {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1rem;
    margin-left: auto;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 5px solid #e74c3c;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-card.past-event {
    border-left-color: #95a5a6;
    opacity: 0.9;
}

.event-card.past-event:hover {
    opacity: 1;
}

/* Event Image Styling */
.event-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    min-height: 250px;
    max-height: 400px;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}



/* Event Badges */
.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-upcoming {
    background: #e74c3c;
    color: white;
}

.status-today {
    background: #fff3cd;
    color: #856404;
}

.status-past {
    background: #95a5a6;
    color: white;
}

/* Event Icon */
.event-icon {
    text-align: center;
    padding: 1rem 0 0;
}

.event-icon i {
    font-size: 2.5rem;
    color: #e74c3c;
}

.past-event .event-icon i {
    color: #95a5a6;
}

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

.event-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
    padding-right: 80px;
}

/* Event Meta Information */
.event-meta {
    margin: 1.5rem 0;
}

.event-meta p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

.event-meta i {
    color: #e74c3c;
    width: 20px;
}

.days-countdown {
    background: #fff3cd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #856404 !important;
    margin-top: 0.5rem !important;
}

.days-countdown i {
    color: #856404 !important;
}

.event-description {
    color: #555;
    line-height: 1.6;
    margin: 1.5rem 0;
    text-align: center;
    font-style: italic;
    flex-grow: 1;
}

/* Event Footer */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.event-type {
    background: #e74c3c;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.event-date-display {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Video Links */
.video-links {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.video-links h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-links h4 i {
    color: #e74c3c;
}

.video-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.youtube-btn {
    background: #ff0000;
    color: white;
}

.youtube-btn:hover {
    background: transparent;
    border-color: #ff0000;
    color: #ff0000;
    transform: translateY(-2px);
}

.tiktok-btn {
    background: #000000;
    color: white;
}

.tiktok-btn:hover {
    background: transparent;
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
}

.no-videos {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    margin: 1.5rem 0;
}

.no-videos i {
    color: #bdc3c7;
    margin-right: 0.5rem;
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #7f8c8d;
}

.no-events i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.no-events h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.event-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Special styling for different event types */
.event-card.revival,
.event-card[class*="REVIVAL"] {
    border-left-color: #e74c3c;
}

.event-card.fellowship,
.event-card[class*="FELLOWSHIP"] {
    border-left-color: #3498db;
}

.event-card.wedding,
.event-card[class*="WEDDING"] {
    border-left-color: #9b59b6;
}

.event-card.prayer,
.event-card[class*="PRAYER"] {
    border-left-color: #2ecc71;
}

/* Event type specific icon colors */
.event-card.revival .event-icon i,
.event-card[class*="REVIVAL"] .event-icon i {
    color: #e74c3c;
}

.event-card.fellowship .event-icon i,
.event-card[class*="FELLOWSHIP"] .event-icon i {
    color: #3498db;
}

.event-card.wedding .event-icon i,
.event-card[class*="WEDDING"] .event-icon i {
    color: #9b59b6;
}

.event-card.prayer .event-icon i,
.event-card[class*="PRAYER"] .event-icon i {
    color: #2ecc71;
}

/* Calendar Link */
.calendar-link {
    text-align: center;
    margin-top: 30px;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.calendar-btn i {
    margin-right: 10px;
}

.calendar-btn:hover {
    background: #34495e;
}

/* Required Field Indicator */
.required {
    color: #e74c3c;
}

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

/* Tablet View (768px and below) */
@media (max-width: 768px) {
    .events-page {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .events-summary {
        gap: 1rem;
    }
    
    .summary-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .summary-count {
        font-size: 2rem;
    }
    
    .events-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        padding: 1.5rem;
    }
    
    .event-details h3 {
        padding-right: 0;
        text-align: center;
    }
    
    .video-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .event-count {
        margin-left: 0;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .event-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    }

    
}

/* Mobile View (480px and below) */
@media (max-width: 480px) {
    .events-page {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .events-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-item {
        width: 200px;
    }
    
    .events-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        justify-content: center;
    }
    
    .event-card {
        padding: 1rem;
    }
    
    .event-details h3 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .event-image-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 4px 4px 0 0;
        }
    
    .event-image-placeholder {
        font-size: 1.5rem;
    }
}