/* public/assets/css/pages/events.css */

/* Page Header */
.events-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-colorado-gold);
}

.events-header h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
}

/* Tabs Container */
.events-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #666;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.tab-btn:hover {
    border-color: var(--color-rust-red);
    color: var(--color-rust-red);
}

.tab-btn.active {
    background: transparent;
    color: var(--color-rust-red);
    border-color: var(--color-rust-red);
    box-shadow: 0 4px 15px rgba(200, 58, 0, 0.3);
}

/* Events Grid */
.events-grid {
    display: none; /* Hidden by default */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.events-grid.active-grid {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Event Card - Creative & "Religious" Style */
.event-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fff9e6 100%); /* Subtle Cream Gradient */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(218, 165, 32, 0.3); /* Gold Border */
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.25); /* Gold Glow */
    border-color: var(--color-colorado-gold);
}

/* Decorative Top Border (Mauli/Thread style) */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        45deg,
        #b22222,
        #b22222 10px,
        #ffd700 10px,
        #ffd700 20px
    ); /* Red and Gold pattern */
    z-index: 5;
}

/* Card Image with Arch Effect */
.event-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Temple Arch Shape at Bottom */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    transition: transform 0.5s;
}

.event-card:hover .event-image {
    transform: scale(1.05); /* Zoom effect */
}

/* Distinct Date Badge (Panchang Style) */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: #8b0000; /* Maroon */
    padding: 6px 12px;
    border-radius: 50px; /* Pill shape for single line */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid #ffd700;
    text-align: center;
    z-index: 2;
    font-size: 0.85rem; /* Slightly smaller to fit */
    font-weight: 700;
    white-space: nowrap; /* Keep on one line */
}

.ongoing .event-badge {
    background: #d32f2f;
    color: #fff;
    border-color: #b71c1c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* Card Content */
.event-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center Align Everything */
    text-align: center;
}

.event-title {
    font-size: 1.4rem;
    color: #8b0000; /* Deep Red */
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif; /* Elegant Serif */
    font-weight: 700;
}

/* Decorative Divider */
.event-title::after {
    content: '✦';
    display: block;
    color: var(--color-colorado-gold);
    font-size: 1.2rem;
    margin-top: 5px;
    opacity: 0.8;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
}

.event-meta i, .event-meta span::before {
    /* Use emoji/icon logic if needed, but styling text first */
    color: var(--color-tree-poppy);
}

/* Single Line Description */
.event-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 15px 0;
    /* Enforce Single Line / Truncate */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Keep 2 lines for readability or 1? User said single, but 2 looks better. Let's do 2. */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
    background: rgba(255, 215, 0, 0.1); /* Subtle highlight bg */
    padding: 5px 10px;
    border-radius: 4px;
}

.event-footer {
    display: none; /* Hide generic footer type icon, cleaner look */
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
    color: #777;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .events-header h1 {
        font-size: 2.2rem;
    }
    .events-tabs {
        flex-direction: column;
        gap: 10px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}
