/* ============================================
   FILE: /CSS/calendar.css
   Professional List View Calendar Page
   Clean design with smooth animations
   ============================================ */

/* Hero Section */
.calendar-hero {
    background: linear-gradient(135deg, var(--fbla-navy) 0%, var(--fbla-deep-blue) 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin: 2rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calendar-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 169, 0, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.calendar-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(244, 169, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.calendar-hero-content {
    position: relative;
    z-index: 1;
}

.calendar-hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.calendar-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Filter Chips */
.list-filters {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    background: var(--white);
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-muted);
}

.filter-chip:hover {
    border-color: var(--fbla-gold);
    color: var(--fbla-navy);
    transform: translateY(-2px);
}

.filter-chip.active-filter {
    background: var(--fbla-deep-blue);
    border-color: var(--fbla-deep-blue);
    color: var(--white);
}

/* Events List Container */
.events-list-container {
    min-height: 400px;
    margin-bottom: 3rem;
}

/* Event Card - Professional Design */
.event-card-list {
    background: var(--white);
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.event-card-list:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fbla-gold-light);
}

/* Event Card Header */
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(100deg, #fafdff, #f7fafd);
    border-bottom: 1px solid #eef2f8;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eef2ff;
    color: var(--fbla-deep-blue);
}

.event-type-badge.conference { background: #e0f2fe; color: #0369a1; }
.event-type-badge.workshop { background: #fef3c7; color: #b45309; }
.event-type-badge.competition { background: #fce7f3; color: #be185d; }
.event-type-badge.meeting { background: #dcfce7; color: #166534; }
.event-type-badge.deadline { background: #fee2e2; color: #b91c1c; }

.rsvp-status-indicator {
    display: flex;
    align-items: center;
}

.rsvp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.rsvp-yes {
    background: #d1fae5;
    color: #065f46;
}

.rsvp-no {
    background: #fee2e2;
    color: #991b1b;
}

.rsvp-pending {
    background: #fff3cd;
    color: #856404;
}

/* Event Card Body */
.event-card-body {
    padding: 1.5rem;
}

.event-title-list {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fbla-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-meta-item i {
    width: 1.25rem;
    color: var(--fbla-gold);
    font-size: 0.9rem;
}

.event-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* Event Card Footer */
.event-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #f0f4fa;
    background: var(--white);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-sm:hover {
    transform: translateY(-2px);
}

.rsvp-list-yes {
    background: #10b981;
    color: white;
}

.rsvp-list-yes:hover {
    background: #059669;
}

.rsvp-list-no {
    background: #ef4444;
    color: white;
}

.rsvp-list-no:hover {
    background: #dc2626;
}

.calendar-add {
    background: var(--fbla-gold-light);
    color: var(--fbla-navy);
}

.calendar-add:hover {
    background: var(--fbla-gold);
    color: var(--fbla-navy);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    max-width: 500px;
    width: 90%;
    border-radius: 1.5rem;
    padding: 1.5rem;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--fbla-navy);
}

.modal-content h3 {
    font-size: 1.35rem;
    color: var(--fbla-navy);
    margin-bottom: 0.75rem;
    padding-right: 1.5rem;
}

.modal-meta {
    margin-bottom: 1rem;
}

.modal-date {
    font-size: 0.85rem;
    color: var(--fbla-gold-dark);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-modal {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-modal-primary {
    background: var(--fbla-gold);
    color: var(--fbla-navy);
}

.btn-modal-primary:hover {
    background: var(--fbla-gold-dark);
    transform: translateY(-2px);
}

.btn-modal-secondary {
    background: #ef4444;
    color: white;
}

.btn-modal-secondary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-modal-outline {
    background: var(--white);
    border: 2px solid var(--fbla-deep-blue);
    color: var(--fbla-deep-blue);
}

.btn-modal-outline:hover {
    background: var(--fbla-deep-blue);
    color: white;
    transform: translateY(-2px);
}

.modal-rsvp-status {
    text-align: center;
    padding-top: 0.75rem;
    font-size: 0.85rem;
}

/* Empty & Loading States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state p {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calendar-hero {
        padding: 2rem 1.5rem;
        margin: 1rem 0 1.5rem;
        border-radius: 1rem;
    }

    .calendar-hero-title {
        font-size: 1.75rem;
    }

    .calendar-hero-subtitle {
        font-size: 0.9rem;
    }

    .list-filters {
        gap: 0.5rem;
    }

    .filter-chip {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .event-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-card-body {
        padding: 1.25rem;
    }

    .event-title-list {
        font-size: 1.1rem;
    }

    .event-meta-grid {
        gap: 0.75rem;
        flex-direction: column;
    }

    .event-card-footer {
        padding: 1rem 1.25rem 1.25rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-sm {
        width: 100%;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calendar-hero {
        padding: 1.5rem 1rem;
    }

    .calendar-hero-title {
        font-size: 1.5rem;
    }

    .event-title-list {
        font-size: 1rem;
    }

    .event-meta-item {
        font-size: 0.75rem;
    }

    .event-description {
        font-size: 0.8rem;
    }
}