/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e8d5b7;
    min-height: 100vh;
}

/* Main Container */
.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

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

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.page-subtitle {
    font-size: 18px;
    color: rgba(232, 213, 183, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filters Section */
.filters-section {
    background: rgba(26, 26, 26, 0.6);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-input,
.date-input,
.filter-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e8d5b7;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus,
.date-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-select option {
    background: #1a1a1a;
    color: #e8d5b7;
}

/* Buttons */
.search-btn,
.reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn {
    background: linear-gradient(135deg, #d4af37, #c9a745);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.reset-btn {
    background: rgba(232, 213, 183, 0.1);
    color: #e8d5b7;
    border: 1px solid rgba(232, 213, 183, 0.3);
}

.reset-btn:hover {
    background: rgba(232, 213, 183, 0.2);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quick-filter-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-filter-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.quick-filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #c9a745);
    color: #0a0a0a;
    border-color: transparent;
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-header {
    margin-bottom: 30px;
}

.results-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 10px;
}

.results-header p {
    color: rgba(232, 213, 183, 0.7);
    font-size: 14px;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Event Card */
.event-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d4af37, #c9a745);
    color: #0a0a0a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.event-badge.featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.event-content {
    padding: 25px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #e8d5b7;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-monastery {
    color: rgba(232, 213, 183, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-description {
    color: rgba(232, 213, 183, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.event-tag {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.event-tag.access-yes {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.event-tag.access-restricted {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
}

.event-tag.access-no {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.event-location {
    color: rgba(232, 213, 183, 0.6);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-details-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.view-details-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 16px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
}

.no-results h3 {
    font-size: 28px;
    color: #d4af37;
    margin-bottom: 15px;
}

.no-results p {
    color: rgba(232, 213, 183, 0.7);
    font-size: 16px;
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.event-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #e8d5b7;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: #d4af37;
    margin-bottom: 20px;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #d4af37;
}

.meta-item label {
    display: block;
    color: rgba(232, 213, 183, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-item value {
    display: block;
    color: #e8d5b7;
    font-size: 16px;
    font-weight: 600;
}

.modal-description {
    color: rgba(232, 213, 183, 0.9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #d4af37, #c9a745);
    color: #0a0a0a;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.action-btn.secondary {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
}

.action-btn.secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-container {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 32px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .quick-filters {
        justify-content: center;
    }

    .nav-menu {
        gap: 20px;
        font-size: 11px;
    }
}
