/* Agenda Page Styles */

/* Hero Section Overrides */
.agenda-hero {
    background-image: url('../images/hero-bg.png');
    height: 50vh;
    min-height: 400px;
}

/* Filters Section */
.agenda-filters {
    background-color: var(--gray-100);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 70px;
    z-index: 900;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.search-input {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 250px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Events List */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: 0;
}

.event-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    /* Ensure link style doesn't break card */
    color: inherit;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.event-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--gray-200);
    background-image: url('../images/album-cover.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: auto;
    background-color: #da902f;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: #162130;
    font-weight: 600;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--secondary-light);
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-teaser {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    flex-grow: 1;
}

.event-footer {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-100);
    text-align: right;
    font-weight: 600;
    color: #162130;
    font-size: 0.9rem;
}

/* List View Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: 0;
}

.event-card.list-mode {
    flex-direction: row;
    height: auto;
    min-height: 180px;
}

.event-card.list-mode .event-card-image {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.event-card.list-mode .event-card-content {
    padding: var(--spacing-md) var(--spacing-lg);
    justify-content: center;
}

.event-card.list-mode .event-title {
    font-size: 1.5rem;
}

.event-card.list-mode .event-teaser {
    margin-bottom: var(--spacing-sm);
    max-width: 800px;
}

@media (max-width: 768px) {
    .event-card.list-mode {
        flex-direction: column;
    }

    .event-card.list-mode .event-card-image {
        width: 100%;
        height: 180px;
    }
}

/* Past Events Section */
.past-events-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-300);
    opacity: 0.8;
}

.past-events-section h3 {
    color: #111b21;
    margin-bottom: var(--spacing-md);
}

/* Admin Link */
.admin-login-link {
    display: block;
    text-align: center;
    margin-top: var(--spacing-xl);
    color: var(--gray-300);
    font-size: 0.8rem;
    text-decoration: none;
}

.admin-login-link:hover {
    color: var(--accent-color);
}

/* Event Details Page Styles */

.event-details-page {
    padding: 0;
    /* Remove padding from main wrapper as header has its own */
    background-color: var(--background-light);
    min-height: 80vh;
}

/* Header Section */
.event-details-header {
    background-color: white;
    padding: 60px 0;
    /* Requested 60px padding */
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-lg);
}

/* New Top Section Layout */
.event-top-section {
    display: flex;
    justify-content: space-between;
    /* Push items to edges */
    align-items: flex-start;
    /* Top align */
    gap: var(--spacing-lg);
    /* Remove borders/margins as they are now on the header container */
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.back-btn-wrapper {
    flex-shrink: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #162130;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    transition: all 0.2s;
    /* Remove bottom margin as it's now handled by the wrapper/container */
    margin-bottom: 0;
}

.back-btn:hover {
    background: var(--gray-100);
    transform: translateX(-5px);
}

.event-header-content {
    flex-grow: 1;
}

.event-type-badge-large {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    /* Ensure it aligns with the top of the back button visually */
    margin-top: 2px;
}

.event-header h1 {
    font-size: 3rem;
    color: #162130;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.event-header-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 1.2rem;
    color: var(--secondary-light);
}

.event-header-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
}

/* Sidebar */
.detail-image {
    width: 100%;
    height: 300px;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.info-card {
    background: white;
    border: 1px solid var(--gray-200);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-row i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.info-row strong {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-light);
    margin-bottom: 2px;
}

.info-row p {
    font-weight: 600;
    color: #162130;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 10px;
}

/* Main Content */
.content-block {
    margin-bottom: var(--spacing-lg);
}

.content-block h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: #162130;
    font-weight: 600;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-dark);
}

.map-container {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .event-top-section {
        flex-direction: column-reverse;
        /* Put Back button (2nd item) on top */
        gap: var(--spacing-md);
    }

    .back-btn-wrapper {
        align-self: flex-start;
        /* Align to left */
    }

    .event-grid-layout {
        grid-template-columns: 1fr;
    }

    .event-header-content h1 {
        font-size: 2rem;
    }

    .event-header-meta {
        flex-direction: column;
        gap: 10px;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
}

.toggle-btn {
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: var(--gray-100);
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Calendar View */
.calendar-wrapper {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.calendar-header h3 {
    margin: 0;
    color: #111b21;
    font-size: 1.5rem;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--secondary-light);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-200);
    /* Grid lines */
    border: 1px solid var(--gray-200);
}

.calendar-day {
    background: white;
    height: 120px;
    /* Fixed height */
    padding: 8px;
    position: relative;
    overflow: hidden;
    /* Hide overflow */
    display: flex;
    flex-direction: column;
}

.calendar-day.empty {
    background: #f9f9f9;
}

.calendar-day.today {
    background: #fff9e6;
    /* Light yellow highlight */
}

.day-number {
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.calendar-event-item {
    display: block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event-item:hover {
    background: var(--accent-color) !important;
    color: white !important;
    opacity: 1;
}

.calendar-event-item.type-concert {
    background: var(--primary-color);
}

.calendar-event-item.type-festival {
    background: #e67e22;
}

.calendar-event-item.type-club {
    background: #9b59b6;
}

@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        font-size: 0.8rem;
    }

    .calendar-event-item {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}

/* Event Tooltip */
.event-tooltip {
    position: fixed;
    display: none;
    z-index: 9999;
    pointer-events: none;
    /* Let clicks pass through to the element below if needed, though we want clicks on the event to work */
    transform: translate(10px, 10px);
    /* Offset from cursor */
}

.tooltip-content {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 12px;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
}

.tooltip-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tooltip-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 1rem;
}

.tooltip-meta {
    color: var(--secondary-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tooltip-teaser {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: row;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: white;
    color: var(--accent-color);
}

.modal-image-col {
    width: 40%;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
}

.modal-details-col {
    width: 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.modal-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item h4 {
    font-size: 0.85rem;
    color: var(--secondary-light);
    margin-bottom: 2px;
}

.info-item p {
    font-weight: 600;
    color: #162130;
}

.modal-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }

    .modal-image-col {
        width: 100%;
        height: 200px;
    }

    .modal-details-col {
        width: 100%;
        padding: 1.5rem;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Icon Color Updates */
.event-meta i.fa-map-marker-alt,
.info-row i.fa-map-marker-alt,
.tooltip-meta i.fa-map-marker-alt {
    color: #e74c3c !important;
    /* Red */
}

.info-row i.fa-location-arrow {
    color: #00a8e8 !important;
    /* Blue */
}

/* No Events Banner */
.no-events-banner {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 400px;
    background-color: #222;
    background-image: url('../images/no-events-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.events-list.no-events-mode,
.events-grid.no-events-mode {
    margin-top: 0 !important;
}

.no-events-banner {
    margin-top: 0 !important;
}

.no-events-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
    font-size: 47px;
    line-height: 71px;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .no-events-banner {
        min-height: 250px;
    }

    .no-events-text {
        font-size: 24px;
        line-height: 1.4;
    }
}