/**
 * Arts & Culture Events Calendar Styles
 * Custom styles for visual category filters and date range filtering
 */

/* ============================================
   Container & Layout
   ============================================ */

#primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important; 
}

.arts-events-container {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.arts-events-content-container,
.arts-category-filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Header Section with Gray Background */
.arts-events-header-section {
    background: #F4F4F4;
    padding: 32px 20px;
    margin-bottom: 40px;
}

.arts-events-page-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -1px;
    text-align: center;
    margin: 0 0 24px 0;
}

.page-intro {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 2rem;
    padding: 0 20px;
}

/* ============================================
   Category Filter Circles - Desktop
   ============================================ */
.arts-category-filters {
    margin-bottom: 0;
}

.category-circles-desktop {
    display: block;
    position: relative;
}

/* Desktop navigation arrows - positioned on sides */
.desktop-nav-arrows-arts {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none; /* Hidden by default, shown when carousel needed */
}

.desktop-nav-arrows-arts.visible {
    display: flex;
}

.desktop-nav-prev {
    left: -50px;
}

.desktop-nav-next {
    right: -50px;
}

.desktop-nav-arrow-arts {
    background: #fff !important;
    border: 1px solid #007176 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-nav-arrow-arts:hover {
    background-color: #f5f5f5 !important;
    border-color: #999 !important;
}

.desktop-nav-arrow-arts:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.desktop-nav-arrow-arts svg {
    width: 20px;
    height: 20px;
}

.desktop-nav-arrow-arts svg path {
    stroke: #007176;
}

.category-circles-desktop-viewport {
    overflow: hidden;
}

.category-circles-scroll {
    display: flex;
    gap: 24px;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease;

    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.category-circles-scroll::-webkit-scrollbar {
    display: none;
}

/* Category Circle Items */
.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 125px;
    padding: 2px;
    margin: 2px;
    border-radius: 8px;
}

.category-circle-item:hover {
    background-color: #f5f5f5;
}

.category-circle-item:focus {
    outline: 2px solid #007176;
    outline-offset: 4px;
}

.category-circle-item:focus:not(:focus-visible) {
    outline: none;
}

.circle-image-wrapper {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-label {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #000;
    position: relative;
    transition: color 0.3s ease;
}

/* Active State */
.category-circle-item.active .circle-image-wrapper {
    border-color: #007176;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.category-circle-item.active .circle-label {
    color: #000;
    font-weight: 600;
}

.category-circle-item.active .circle-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007176;
}

/* Inactive State - Gray out when another category is selected */
.has-active-category .category-circle-item:not(.active) {
    opacity: 0.4;
}

.has-active-category .category-circle-item:not(.active):hover {
    opacity: 0.6;
}

/* ============================================
   Category Filter Circles - Mobile
   ============================================ */
.category-circles-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
}

/* Mobile navigation arrows centered below title */
.mobile-nav-arrows-arts {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.category-circles-mobile-viewport {
    width: 100%;
    overflow: hidden;
}

.category-circles-mobile-track {
    display: flex;
    gap: 24px;
    justify-content: center;
    transition: transform 0.3s ease;
}

.circle-nav-arrow-arts {
    background: #fff !important;
    border: 1px solid #007176 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    color: #333;
}

.circle-nav-arrow-arts:hover {
    background-color: #f5f5f5 !important;
    border-color: #999 !important;
}

.circle-nav-arrow-arts:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.circle-nav-arrow-arts svg {
    width: 20px;
    height: 20px;
}

.circle-nav-arrow-arts svg path {
    stroke: #007176
}

/* Carousel position indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background-color: #007176;
    transform: scale(1.2);
}

/* ============================================
   Active Category Filter Tag
   ============================================ */
.active-category-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e6f2ff;
    border: 1px solid #007176;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    color: #007176;
}

.filter-value {
    color: #333;
}

.remove-filter {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* ============================================
   Date Range Filter & Mini Calendar
   ============================================ */
.arts-events-filters-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

/* Desktop: Two column layout - events left, calendar right */
.arts-events-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* When "All Events" selected, hide calendar and use full width */
.arts-events-content-wrapper.no-filter {
    grid-template-columns: 1fr;
}

.arts-events-content-wrapper.no-filter .arts-date-filter-wrapper {
    display: none;
}

.arts-date-filter-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    position: sticky;
    top: 20px;
}

/* Hide calendar when "All Events" is selected */
.arts-date-filter-wrapper.filter-all .arts-mini-calendar {
    display: none;
}

/* Mini Calendar */
.arts-mini-calendar {
    background: #F4F4F4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-month-year {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.calendar-nav:hover {
    background-color: #f5f5f5 !important;
}

.calendar-nav:focus {
    outline: 2px solid #007176;
    outline-offset: 2px;
}

.calendar-nav svg {
    color: #666;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    padding: 4px 0;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid transparent;
    background: none !important;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    min-width: 0;
    box-sizing: border-box;
    padding: 1px;
    box-shadow: none !important;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day:not(.empty):hover {
    background-color: #f5f5f5 !important;
    border-color: #ddd;
}

.calendar-day:focus {
    outline: 2px solid #007176;
    outline-offset: 2px;
}

.calendar-day.today {
    font-weight: 700;
    color: #007176;
}

.calendar-day.has-event .event-dot {
    width: 4px;
    height: 4px;
    background-color: #007176;
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
}

.calendar-day.highlighted {
    background-color: #e6f7f8 !important;
    border-color: #c4e9ea;
}

.calendar-day.selected {
    background-color: #007176 !important;
    color: #fff;
    font-weight: 600;
}

.calendar-day.selected .event-dot {
    background-color: #fff;
}


.event-date-badge .start,
.event-date-badge .end {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Date Filter Controls */
.arts-date-filter-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.arts-date-filter-controls>div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arts-date-filter-controls .filter-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
}

/* Date Filter Dropdown Button */
.date-filter-dropdown-wrapper {
    position: relative;
}

.date-filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-filter-button:hover {
    border-color: #007176;
    background-color: #f5f5f5;
}

.date-filter-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.date-filter-button:hover svg {
    transform: translateY(2px);
}

/* Active Filter Badge */
.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 24px;
    background-color: #007176;
    color: #fff;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-badge-text {
    line-height: 1;
}

.clear-filter-badge {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.clear-filter-badge:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.clear-filter-badge:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Dropdown Menu */
.date-filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 150px;
}

.filter-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.filter-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.filter-option:hover {
    background-color: #f5f5f5;
}

/* All Events Button */
.all-events-button {
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #007176;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.all-events-button:hover {
    border-color: #007176;
    background-color: #f5f5f5;
}

.all-events-button.active {
    background-color: #007176;
    color: #fff;
    border-color: #007176;
}

.date-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    flex: 1;
    max-width: 250px;
}

.date-filter-select:hover {
    border-color: #999;
}

.date-filter-select:focus {
    outline: 2px solid #007176;
    outline-offset: 2px;
    border-color: #007176;
}

/* Active Date Filter Display */
.active-date-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e6f7f8;
    border: 1px solid #007176;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
}

.active-date-filter .filter-type {
    font-weight: 600;
    color: #007176;
}

.active-date-filter .filter-range {
    color: #333;
}

.remove-date-filter {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-date-filter:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* ============================================
   Events List Display
   ============================================ */
.arts-events-content {
    margin-top: 40px;
    width: 100%;
}

#arts-events-list-container {
    width: 100%;
}

.arts-events-list {
    display: grid;
    gap: 30px;
    width: 100%;
}

.arts-event-item {
    display: grid;
    grid-template-columns: auto 1fr 280px;
    gap: 24px;
    padding: 24px;
    box-shadow: 6px 6px 16px 0 rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.arts-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Date Badge (Left Column) - Multi-line format */
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    min-width: 120px;
    max-width: 160px;
    border-right: 4px solid #fdb515;
    padding-right: 16px;
    text-align: center;
    gap: 4px;
}

/* Day of week - stacks vertically */
.event-date-badge .date-line-day {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
    width: 100%;
}

/* Date numbers container - keep horizontal */
.event-date-badge .date-line,
.event-date-badge .date-separator {
    display: inline;
}

.event-date-badge .date-line {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
}

.event-date-badge .date-separator {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: #000;
    margin: 0 4px;
}

/* Legacy date badge styles (for backward compatibility) */
.event-date-badge .month {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.event-date-badge .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.event-date-badge .time-range {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

/* Event Details (Middle Column) */
.event-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Event Thumbnail (Right Column) */
.event-thumbnail {
    overflow: hidden;
    border-radius: 6px;
    width: 280px;
    height: 200px;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-thumbnail:hover img {
    transform: scale(1.05);
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    margin-left: 0 !important;
}

.event-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #007176;
}

/* Category Tags */
.event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.event-category-tag {
    /* inline-flex + min-height gives a >=24px target (WCAG 2.5.8 AA) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0px 8px;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid;
    background: #007176;
    color: #fff;
}

.event-theme {
    background: #006767;
    color: #fff;
    border-color: #006767;
}

.event-category-tag.ongoing {
    background: #000;
    color: #fff;
    border-color: #000;
}

.event-category-tag.default {
    background: transparent;
    color: #007176;
    border-color: #007176;
}

/* Event Meta */
.event-meta {
    font-size: 0.875rem;
    color: #000;
    margin-bottom: 12px;
}

.event-meta .venue {
    font-weight: 600;
}

.event-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 15px;
}

.event-link {
    display: inline-block;
    background: #F7A71C;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: auto;
    padding: 8px 20px;
    border-radius: 48px;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.event-link:hover {
    background-color: #E69610;
}

[data-theme="dark"] .event-link,
[data-theme="dark"] .event-link:hover {
    color: #000 !important;
}

/* ============================================
   Pagination
   ============================================ */
.arts-events-pagination {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0;
}

/* Previous/Next buttons styling */
.arts-events-pagination a.prev,
.arts-events-pagination a.next {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    color: #007176;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.arts-events-pagination a.prev:hover,
.arts-events-pagination a.next:hover {
    color: #005a5e;
    text-decoration: underline;
}

/* Empty span placeholder to maintain spacing */
.arts-events-pagination span {
    display: inline-block;
}

/* ============================================
   No Events Found
   ============================================ */
.no-events-found {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.no-events-found p {
    font-size: 1.125rem;
    color: #666;
}

/* ============================================
   Loading State
   ============================================ */
.arts-events-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.arts-events-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007176;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   Dark Mode
   ============================================ */

/* Header / page title area */
[data-theme="dark"] .arts-events-header-section {
    background: #222;
}

[data-theme="dark"] .arts-events-page-title {
    color: #e0e0e0;
}

[data-theme="dark"] .page-intro {
    color: #b0b0b0;
}

/* Category circle labels */
[data-theme="dark"] .circle-label {
    color: #e0e0e0;
}

/* Active label hardcodes #000 at higher specificity; restore it for dark mode */
[data-theme="dark"] .category-circle-item.active .circle-label {
    color: #fff;
}

[data-theme="dark"] .circle-image-wrapper {
    background-color: #2a2a2a;
}

/* Category circle hover + active — teal ring/underline stays valid on dark */
[data-theme="dark"] .category-circle-item:hover {
    background-color: #2a2a2a;
}

/* Desktop/mobile carousel arrow buttons */
[data-theme="dark"] .desktop-nav-arrow-arts,
[data-theme="dark"] .circle-nav-arrow-arts {
    background: #1e1e1e !important;
    border-color: #00a8af !important;
    color: #e0e0e0;
}

[data-theme="dark"] .desktop-nav-arrow-arts svg path,
[data-theme="dark"] .circle-nav-arrow-arts svg path {
    stroke: #00a8af;
}

[data-theme="dark"] .desktop-nav-arrow-arts:hover,
[data-theme="dark"] .circle-nav-arrow-arts:hover {
    background-color: #2a2a2a !important;
    border-color: #7dd6da !important;
}

/* Carousel indicator dots */
[data-theme="dark"] .indicator-dot {
    background-color: #555;
}

[data-theme="dark"] .indicator-dot.active {
    background-color: #00a8af;
}

/* Active category filter tag */
[data-theme="dark"] .active-category-filter {
    background-color: #1e3a3a;
    border-color: #00a8af;
}

[data-theme="dark"] .filter-label {
    color: #00a8af;
}

[data-theme="dark"] .filter-value {
    color: #c0c0c0;
}

[data-theme="dark"] .remove-filter {
    color: #aaa;
}

/* Mini calendar */
[data-theme="dark"] .arts-mini-calendar {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .calendar-month-year {
    color: #e0e0e0;
}

[data-theme="dark"] .calendar-day-header {
    color: #888;
}

[data-theme="dark"] .calendar-day:not(.empty):hover {
    background-color: #2a2a2a !important;
    border-color: #444;
}

[data-theme="dark"] .calendar-day.today {
    color: #00a8af;
}

[data-theme="dark"] .calendar-day.highlighted {
    background-color: #1a3333 !important;
    border-color: #2a5555;
}

[data-theme="dark"] .calendar-day.selected {
    background-color: #00a8af !important;
    color: #000;
}

[data-theme="dark"] .calendar-nav svg {
    color: #aaa;
}

[data-theme="dark"] .calendar-nav:hover {
    background-color: #2a2a2a !important;
}

/* Date filter dropdown button */
[data-theme="dark"] .date-filter-button {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .date-filter-button:hover {
    background-color: #2a2a2a;
    border-color: #00a8af;
}

/* Date filter dropdown menu */
[data-theme="dark"] .date-filter-dropdown {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .filter-option {
    color: #e0e0e0;
}

[data-theme="dark"] .filter-option:hover {
    background-color: #2a2a2a;
}

/* Date filter controls label */
[data-theme="dark"] .arts-date-filter-controls .filter-label {
    color: #c0c0c0;
}

/* Active date filter badge (teal bg + white text — teal/white is a valid pair) */

/* Active date filter display (inline chip) */
[data-theme="dark"] .active-date-filter {
    background-color: #1a3333;
    border-color: #00a8af;
}

[data-theme="dark"] .active-date-filter .filter-type {
    color: #00a8af;
}

[data-theme="dark"] .active-date-filter .filter-range {
    color: #c0c0c0;
}

[data-theme="dark"] .remove-date-filter {
    color: #aaa;
}

/* Event cards */
[data-theme="dark"] .arts-event-item {
    background: #1e1e1e;
    box-shadow: 6px 6px 16px 0 rgba(0, 0, 0, 0.5);
}

/* Gold left border (desktop) and gold bottom border (mobile) — valid on #1e1e1e */

[data-theme="dark"] .event-date-badge .date-line-day,
[data-theme="dark"] .event-date-badge .date-line,
[data-theme="dark"] .event-date-badge .date-separator,
[data-theme="dark"] .event-date-badge .day {
    color: #e0e0e0;
}

[data-theme="dark"] .event-date-badge .month,
[data-theme="dark"] .event-date-badge .time-range {
    color: #888;
}

[data-theme="dark"] .event-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .event-title a:hover {
    color: #00a8af;
}

/* Category tags — teal bg / white text stays valid on dark page */

[data-theme="dark"] .event-category-tag.default {
    color: #00a8af;
    border-color: #00a8af;
}

[data-theme="dark"] .event-meta {
    color: #c0c0c0;
}

[data-theme="dark"] .event-excerpt {
    color: #aaa;
}

/* "Learn more" / event link button — gold bg + black text: valid pair */

/* No events found */
[data-theme="dark"] .no-events-found {
    background-color: #1e1e1e;
}

[data-theme="dark"] .no-events-found p {
    color: #888;
}

/* Loading spinner track */
[data-theme="dark"] .arts-events-loading::after {
    border-color: #2a2a2a;
    border-top-color: #00a8af;
}

/* Pagination */
[data-theme="dark"] .arts-events-pagination a.prev,
[data-theme="dark"] .arts-events-pagination a.next {
    color: #00a8af;
}

[data-theme="dark"] .arts-events-pagination a.prev:hover,
[data-theme="dark"] .arts-events-pagination a.next:hover {
    color: #7dd6da;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet */
@media (max-width: 768px) {

    .arts-date-filter-controls {
        justify-content: center;
    }

    .arts-events-list {
        padding: 0 1rem;
    }

    /* Stack calendar above events on tablet */
    .arts-events-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .arts-date-filter-wrapper {
        order: -1;
        /* Move calendar above events */
        max-width: 100%;
        position: relative;
        top: 0;
    }

    .arts-events-content {
        margin-top: 0;
    }

    /* Event cards - stack vertically */
    .arts-event-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "thumbnail"
            "date"
            "details";
        gap: 0;
        padding: 1rem;
        overflow: hidden;
    }

    .event-thumbnail {
        grid-area: thumbnail;
        width: 100%;
        height: 250px;
        border-radius: 0;
        order: -2;
    }

    .event-date-badge {
        grid-area: date;
        border-right: none;
        border-bottom: 8px solid #fdb515;
        padding: 16px 20px;
        flex-direction: column;
        max-width: fit-content;
        justify-content: flex-start;
        align-content: center;
        gap: 2px;
        order: -1;
    }

    .event-date-badge.ongoing {
        display: flex;
        flex-direction: row !important;
        justify-content: flex-start;
    }

    .event-details {
        grid-area: details;
        padding: 20px 0;
        order: 0;
    }

    .category-circles-scroll {
        gap: 16px;
    }

    .category-circle-item {
        min-width: 100px;
    }

    .circle-image-wrapper {
        width: 80px;
        height: 80px;
    }
}

/* Mobile */
@media (max-width: 480px) {

    /* Hide desktop carousel, show mobile version */
    .category-circles-desktop {
        display: none;
    }

    .category-circles-mobile {
        display: flex;
    }

    /* Mobile header maintains gray background with proper padding */
    .arts-events-header-section {
        padding: 32px 20px;
    }

    /* Mobile category items - 2 visible side by side */
    .category-circles-mobile-viewport {
        display: flex;
        justify-content: flex-start;
        /* Center alignment would conflict with transform positioning */
    }

    .category-circles-mobile-track {
        gap: 24px;
    }

    /* Center the track when there are 2 or fewer items (no carousel active) */
    .category-circles-mobile-viewport.no-carousel {
        justify-content: center;
    }

    .category-circles-mobile .category-circle-item {
        min-width: 125px;
        flex-shrink: 0;
    }

    .category-circles-mobile .circle-image-wrapper {
        width: 125px;
        height: 125px;
    }

    .event-title {
        font-size: 1.25rem;
    }

    .arts-events-pagination a,
    .arts-events-pagination .current {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    /* Mobile calendar styling */
    .arts-events-filters-wrapper {
        padding: 0 24px;
    }

    .arts-date-filter-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .arts-mini-calendar {
        padding: 12px;
        margin: 40px 0 0;
        width: 100%;
    }

    .calendar-grid {
        gap: 1px;
        width: 100%;
    }

    .calendar-day {
        font-size: 0.7rem;
        min-width: 0;
        padding: 2px;
    }

    .calendar-day-header {
        font-size: 0.625rem;
        padding: 4px 0;
    }

    .date-filter-select {
        max-width: 100%;
    }
}