/* Fauno Events - Agenda Page Styles */

.fauno-agenda-page {
    padding: 40px 0;
    background: #f9f9f9;
}

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

.fauno-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.fauno-page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
}

/* Agenda Wrapper - Two Column Layout */
.fauno-agenda-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.fauno-agenda-sidebar {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.fauno-agenda-sidebar h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.fauno-filter-group {
    margin-bottom: 20px;
}

.fauno-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.fauno-filter-group select,
.fauno-filter-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
}

.fauno-filter-group select:focus,
.fauno-filter-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.fauno-filters-form button {
    width: 100%;
    margin-top: 10px;
}

.fauno-button-primary,
.fauno-button-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.fauno-button-primary {
    background: #0073aa;
    color: white;
}

.fauno-button-primary:hover {
    background: #005a87;
}

.fauno-button-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.fauno-button-secondary:hover {
    background: #e8e8e8;
}

/* Subscribe Section */
.fauno-subscribe-section {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.fauno-subscribe-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.fauno-subscribe-section p {
    margin: 0 0 15px;
    font-size: 0.9rem;
    color: #666;
}

.fauno-subscribe-section a {
    display: block;
    margin-bottom: 8px;
}

/* Main Content Area */
.fauno-agenda-main {
    background: white;
    border-radius: 8px;
    padding: 0;
}

/* Events Grid */
.fauno-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 30px;
}

.fauno-event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fauno-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.fauno-event-card.highlighted {
    border: 2px solid #ffb81c;
}

.fauno-event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.fauno-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fauno-event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fauno-event-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.fauno-event-content h3 a {
    color: #333;
    text-decoration: none;
}

.fauno-event-content h3 a:hover {
    color: #0073aa;
}

.fauno-event-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.fauno-event-date {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fauno-event-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fauno-event-type.online {
    background: #e3f2fd;
    color: #1565c0;
}

.fauno-event-type.on-site {
    background: #f3e5f5;
    color: #7b1fa2;
}

.fauno-event-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fauno-category-badge {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
}

.fauno-category-badge:hover {
    background: #ddd;
    color: #333;
}

.fauno-event-excerpt {
    flex-grow: 1;
    margin: 0 0 15px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fauno-event-card .fauno-button {
    align-self: flex-start;
}

/* Pagination */
.fauno-pagination {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.fauno-pagination nav {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.fauno-pagination a,
.fauno-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    transition: all 0.2s;
}

.fauno-pagination a:hover {
    background: #0073aa;
    color: white;
}

.fauno-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.fauno-no-events {
    padding: 60px 30px;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fauno-agenda-wrapper {
        grid-template-columns: 1fr;
    }

    .fauno-agenda-sidebar {
        position: static;
    }

    .fauno-page-header h1 {
        font-size: 1.8rem;
    }

    .fauno-events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .fauno-event-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .fauno-container {
        padding: 0 10px;
    }

    .fauno-page-header h1 {
        font-size: 1.4rem;
    }

    .fauno-agenda-sidebar {
        padding: 15px;
    }

    .fauno-events-grid {
        padding: 10px;
    }
}

/* ── Ticket Purchase Modal ───────────────────────────────────────────────── */

.fauno-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fauno-modal[hidden] {
    display: none;
}

.fauno-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.fauno-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.fauno-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.fauno-modal-close:hover { color: #000; }

.fauno-modal-box h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.fauno-modal-event-name {
    color: #666;
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.fauno-modal-section {
    margin-bottom: 24px;
}

.fauno-modal-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Quantity stepper */
.fauno-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.fauno-qty-minus,
.fauno-qty-plus {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fauno-qty-minus:hover,
.fauno-qty-plus:hover { background: #e8e8e8; }

.fauno-quantity-control input[type="number"] {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.fauno-quantity-control input[type="number"]::-webkit-inner-spin-button,
.fauno-quantity-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Attendee rows */
.fauno-modal-attendee {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.fauno-attendee-legend {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.fauno-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fauno-form-col,
.fauno-form-full {
    margin: 0 0 12px;
}

.fauno-form-col label,
.fauno-form-full label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.fauno-form-col input,
.fauno-form-full input,
.fauno-form-full textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.fauno-form-full textarea { resize: vertical; }

/* Car parking */
.fauno-modal-car-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.fauno-modal-car-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#fauno-modal-car-plate-wrap {
    margin-top: 12px;
    padding: 12px;
    background: #f0f6ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

#fauno-modal-car-plate-wrap label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

#fauno-modal-car-plate-input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

/* Actions */
.fauno-modal-actions {
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.fauno-modal-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
}

body.fauno-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .fauno-modal-box { padding: 20px; }
    .fauno-form-row { grid-template-columns: 1fr; }
}

/* ── Event Gallery Slideshow ───────────────────────────────────────────── */
.fauno-event-gallery { margin: 32px 0; }
.fauno-event-gallery h2 { margin-bottom: 16px; }

.fauno-gallery-slideshow {
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.fauno-gallery-slideshow .fauno-slideshow-container {
    min-height: 380px;
    background: #111;
}

.fauno-gallery-slideshow .fauno-slide {
    display: none;
    width: 100%;
    height: 420px;
    align-items: center;
    justify-content: center;
    background: #111;
}

.fauno-gallery-slideshow .fauno-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fauno-gallery-slideshow .fauno-slide-prev,
.fauno-gallery-slideshow .fauno-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fauno-gallery-slideshow .fauno-slide-prev { left: 12px; }
.fauno-gallery-slideshow .fauno-slide-next { right: 12px; }
.fauno-gallery-slideshow .fauno-slide-prev:hover,
.fauno-gallery-slideshow .fauno-slide-next:hover { background: rgba(0,0,0,0.75); }

@media (max-width: 600px) {
    .fauno-gallery-slideshow .fauno-slide { height: 260px; }
}

@media (max-width: 480px) {
    .fauno-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
