/* Eventival Calendar Styles - Follow-up Modifications */

:root {
    --ec-pink: #e52c8c;
    --ec-pink-hover: #c42475;
    --ec-green: #47d7b4;
    --ec-text: #050505;
    --ec-text-light: #525252;
    --ec-bg: #ffffff;
    --ec-border-color: #000;
    --ec-button-bg-color: #000;

    /* Section Colors for Screenings */
    --ec-competition: #81b3c5;
    --ec-goshorts: #fedd00;
    --ec-portrait: #e2a0cd;
    --ec-symposium: #efa54b;
    --ec-caleidoscope: #86e381;
    --ec-default: #d8d8d8;
    --ec-event: #47d7b4;
    --ec-location: #6366f1;

    --ec-light-bg: #fdf2f8;
    --ec-border: #e0e0e0;

    --ec-font: 'Inter', sans-serif;
}

#eventival-calendar-root * {
    box-sizing: border-box;
}

#eventival-calendar-root {
    font-family: var(--ec-font);
    color: var(--ec-text);
    max-width: 1600px;
    margin: 0 auto;
}

#eventival-calendar-app {
    margin-top: 30px;
}

/* Header */
.ec-header {
    font-size: 42px;
    font-weight: 600;
    color: var(--ec-pink);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* Action Bar */
.ec-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ec-btn {
    border: 1px solid var(--ec-border-color);
    color: var(--ec-text);
    padding: 10px 16px;
    font-size: 16px;
    font-family: var(--ec-font);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.ec-btn:hover {
    background: var(--ec-light-bg);
}

.ec-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
}

.ec-filter-btn {
    width: 240px;
    justify-content: space-between;
    align-items: center;
}

.ec-filter-btn span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ec-filter-btn.active {
    background: var(--ec-button-bg-color);
    color: white;
}

.ec-filter-btn.active svg {
    stroke: white;
}

/* Filter Dropdown Pane */
.ec-filter-pane {
    display: none;
    background: #01b27226;
    border: 1px solid var(--ec-border-color);
    padding: 32px;
    margin-bottom: 32px;
    animation: slideDown 0.2s ease-out;
}

.ec-filter-pane.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ec-search-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-bottom: 32px;
    font-family: var(--ec-font);
    background: #06b272;
}

.ec-search-input:focus {
    outline: none;
    border-color: var(--ec-border-color);
}

.ec-filter-group {
    margin-bottom: 32px;
}

.ec-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--ec-text);
}

.ec-filter-section {
    margin-bottom: 24px;
}

.ec-filter-subtitle {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ec-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ec-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e5e5e5;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    transition: opacity 0.2s;
}

.ec-chip:hover {
    opacity: 0.8;
}

/* Specific Chip Colors */
.ec-chip.bg-competition {
    background: var(--ec-competition);
}

.ec-chip.bg-goshorts {
    background: var(--ec-goshorts);
}

.ec-chip.bg-portrait {
    background: var(--ec-portrait);
}

.ec-chip.bg-symposium {
    background: var(--ec-symposium);
}

.ec-chip.bg-caleidoscope {
    background: var(--ec-caleidoscope);
}

.ec-chip.bg-fiction {
    background: #f5a3c7;
}

.ec-chip.bg-documentary {
    background: #e2a0cd;
}

.ec-chip.bg-animation {
    background: #e5e5e5;
}

.ec-chip.bg-event {
    background: var(--ec-event);
}

.ec-chip.bg-location {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.ec-chip.bg-location input:checked+span {
    color: var(--ec-pink);
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--ec-pink);
}

hr {
    border: none;
    border-bottom: 1px solid var(--ec-border);
    margin: 32px 0;
}

/* Date Selector */
.ec-dates-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.ec-dates-wrapper::-webkit-scrollbar {
    display: none;
}

.ec-dates {
    display: flex;
    gap: 12px;
}

.ec-date-btn {
    background: transparent;
    border: 1px solid var(--ec-border-color);
    padding: 14px 24px;
    font-size: 16px;
    font-family: var(--ec-font);
    font-weight: 500;
    color: var(--ec-text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.ec-date-btn.no-results {
    opacity: 0.35;
    filter: grayscale(1);
    background: #f9f9f9;
}

.ec-date-btn.active {
    background: #000;
    color: white;
}

.ec-date-btn:hover:not(.active) {
    background: #fce7f3;
}

.ec-date-btn:active {
    transform: scale(0.98);
}

.ec-item-count {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Venue Group */
.ec-venue-group {
    margin-bottom: 24px;
}

.ec-venue-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* Event Row */
.ec-event-row {
    display: flex;
    align-items: center;
    padding: 13.5px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    color: #0d3849;
    /* default text color on colored backgrounds */
}

.ec-event-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    filter: brightness(0.96);
}

/* Row Background Colors */
.ec-event-row.competition {
    background-color: var(--ec-competition);
}

.ec-event-row.goshorts {
    background-color: var(--ec-goshorts);
}

.ec-event-row.portrait {
    background-color: var(--ec-portrait);
}

.ec-event-row.symposium {
    background-color: var(--ec-symposium);
}

.ec-event-row.caleidoscope {
    background-color: var(--ec-caleidoscope);
}

.ec-event-row.event {
    background-color: var(--ec-green);
}

.ec-event-row.default-screening {
    background-color: var(--ec-event);
}

.ec-row-time {
    font-size: 14px;
    font-weight: 500;
    width: 120px;
    flex-shrink: 0;
}

.ec-row-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-row-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ec-row-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.ec-row-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
    flex: none;
}

.ec-icon {
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.ec-icon.qa {
    font-size: 9px;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-weight: 300;
    width: 20px;
}

/* Package Layout */
.ec-pkg-runtime-bar {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.ec-pkg-film-card {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.ec-pkg-film-poster,
.ec-pkg-film-poster-placeholder {
    height: 200px;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-pkg-film-poster-placeholder svg {
    opacity: 0.6;
}

.ec-pkg-film-details {
    padding: 24px;
    color: inherit;
}

.ec-pkg-film-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ec-pkg-film-director {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
}

.ec-pkg-film-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 15px;
    margin-bottom: 16px;
}

.ec-pkg-film-meta svg {
    margin-right: 6px;
    vertical-align: middle;
}

.ec-pkg-film-runtime {
    font-size: 15px;
    font-weight: 700;
}

.bg-competition-card {
    background-color: var(--ec-competition);
    color: #0d3849;
}

.bg-goshorts-card {
    background-color: var(--ec-goshorts);
    color: #3a3200;
}

.bg-portrait-card {
    background-color: var(--ec-portrait);
    color: #3b0024;
}

.bg-symposium-card {
    background-color: var(--ec-symposium);
    color: #3f1900;
}

.bg-caleidoscope-card {
    background-color: var(--ec-caleidoscope);
    color: #312e08;
}

.bg-default-card {
    background-color: var(--ec-default);
    color: #222;
}

/* Modal */
.ec-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 30, 0.98);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 99999;
    padding: 40px 20px;
    overflow-y: auto;
}

.ec-modal-overlay.active {
    display: flex;
}

.ec-modal-content {
    background: var(--ec-bg);
    width: 100%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ec-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.ec-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ec-modal-hero {
    background: #000;
    height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.ec-modal-hero svg {
    opacity: 0.5;
}

.ec-modal-body {
    padding: 56px;
}

.ec-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ec-tag {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
}

.ec-modal-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ec-modal-original-title {
    font-size: 22px;
    color: #9fa0a4;
    text-transform: uppercase;
}

.ec-modal-subtitle {
    font-size: 20px;
    color: var(--ec-text-light);
    margin-top: 16px;
}

.ec-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 16px;
    border-top: 1px solid var(--ec-border);
    border-bottom: 1px solid var(--ec-border);
    padding: 40px 0;
    margin-top: 40px;
    margin-bottom: 48px;
}

.ec-grid-item-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ec-grid-item-value {
    font-size: 16px;
    color: var(--ec-text-light);
}

.ec-other-screenings h4 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    font-family: 'Inter' !important;
}

.ec-screening-cards-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-screening-card {
    background: #f4cbe0;
    padding: 24px;
    width: 250px;
    color: #0b021a;
    display: flex;
    flex-direction: column;
}

.ec-sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.ec-sc-time {
    font-size: 16px;
    font-weight: 500;
}

.ec-sc-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ec-sc-venue {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ec-sc-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 400;
}

.ec-sc-date {
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 400;
}

.ec-sc-btn {
    background: #d61376;
    color: #fff;
    padding: 12px 12px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: filter 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ec-sc-btn:hover {
    filter: brightness(1.1);
    color: #fff;
}

.ec-sc-btn.disabled {
    background: #a0a0a0;
    pointer-events: none;
    cursor: not-allowed;
    filter: none;
}

/* Spinner / Loader */
#ec-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.ec-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(229, 44, 140, 0.1);
    border-radius: 50%;
    border-top-color: var(--ec-pink);
    animation: ec-spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes ec-spin {
    to {
        transform: rotate(360deg);
    }
}

.ec-loading-indicator {
    display: none;
}

/* Modal Ticket & Location Placement (at top) */
.ec-modal-header-actions {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 24px;
    margin-top: 12px;
    justify-content: space-between;
}

.ec-modal-book-btn {
    background: var(--ec-pink);
    color: #fff !important;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.ec-modal-book-btn:hover {
    background: var(--ec-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 44, 140, 0.35);
    color: #fff !important;
}

.ec-modal-book-btn svg {
    flex-shrink: 0;
}

.ec-modal-venue-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ec-text);
}

.ec-modal-venue-top svg {
    color: var(--ec-pink);
}