/* ==========================================================================
   GTA OPERA PORTAL - DESIGN SYSTEM (index.css)
   Theme: Midnight Velvet (Dark mode deep navy, accents of warm gold)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    /* Color Palette */
    --bg-base: hsl(222, 47%, 7%);
    --bg-card: hsla(222, 47%, 12%, 0.65);
    --bg-card-hover: hsla(222, 47%, 16%, 0.8);
    --bg-header: hsla(222, 47%, 5%, 0.8);
    
    --border-color: hsla(222, 20%, 30%, 0.3);
    --border-gold: hsla(45, 60%, 55%, 0.4);
    --border-gold-hover: hsla(45, 75%, 65%, 0.8);
    
    --accent-gold: hsl(45, 60%, 55%);
    --accent-gold-hover: hsl(45, 75%, 65%);
    --accent-gold-soft: hsla(45, 60%, 55%, 0.15);
    
    --text-primary: hsl(210, 20%, 98%);
    --text-secondary: hsl(210, 15%, 70%);
    --text-muted: hsl(210, 10%, 50%);
    
    --status-active-bg: hsla(140, 50%, 45%, 0.15);
    --status-active-text: hsl(140, 70%, 65%);
    --status-inactive-bg: hsla(0, 0%, 50%, 0.15);
    --status-inactive-text: hsl(0, 0%, 75%);
    --status-passed-bg: hsla(350, 60%, 50%, 0.15);
    --status-passed-text: hsl(350, 75%, 70%);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Effects */
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Ambient Backdrop Glows */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
.spot-1 {
    top: -20vw;
    left: -10vw;
    background: radial-gradient(circle, hsl(220, 80%, 40%) 0%, transparent 70%);
}
.spot-2 {
    top: 30vh;
    right: -20vw;
    background: radial-gradient(circle, hsl(280, 80%, 40%) 0%, transparent 70%);
}
.spot-3 {
    bottom: -10vw;
    left: 20vw;
    background: radial-gradient(circle, hsl(45, 60%, 35%) 0%, transparent 70%);
}

/* Header Component - Removed */

/* Search Bar */
.search-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}
.search-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px 12px 48px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-smooth);
}
.search-wrap input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(20, 26, 46, 0.8) 0%, rgba(10, 13, 24, 0.9) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.hero-logo-wrap img {
    max-height: 220px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
    transition: transform 0.5s ease;
}

.hero-logo-wrap img:hover {
    transform: scale(1.05);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 37px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    white-space: nowrap;
}

.hero-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.hero-text-wrap .search-wrap {
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 30px 0;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .hero-text-wrap {
        align-items: center;
    }
    .hero-title {
        font-size: 28px;
        white-space: normal;
    }
    .hero-logo-wrap img {
        max-height: 110px;
    }
}

/* Toolbar & View Switches */
.toolbar-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.view-toggles {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 50px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.view-toggle-btn.active {
    background: var(--accent-gold);
    color: var(--bg-base);
    font-weight: 600;
}
.view-toggle-btn:not(.active):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.season-badge {
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
}
.gold-text {
    color: var(--accent-gold);
    font-weight: 600;
}


.filter-section {
    margin-bottom: 24px;
}
.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.filter-title-row h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.clear-filter-btn {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 500;
    transition: var(--transition-smooth);
}
.clear-filter-btn:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

/* Month Dropdown Select */
.month-dropdown-wrap {
    position: relative;
    width: 100%;
    max-width: 220px;
}

.month-select-dropdown {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 48px 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.month-select-dropdown:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.month-select-dropdown option {
    background-color: hsl(222, 47%, 10%);
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.select-arrow svg {
    width: 100%;
    height: 100%;
}

/* Reset Filters Bar */
.filter-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
}
.reset-all-btn {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 13px;
}
.reset-all-btn:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

/* Grid Panel - Production Cards */
.productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.prod-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.prod-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.08);
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #0f1423;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.prod-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-company-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 20, 35, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-composer {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-meta-list {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.card-meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
    width: 100%;
}
.book-tickets-btn {
    background: var(--accent-gold);
    color: var(--bg-base);
}
.book-tickets-btn:hover {
    background: var(--accent-gold-hover);
}
.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

.btn-icon-s {
    width: 14px;
    height: 14px;
}

/* Status Badges */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    width: fit-content;
}
.status-active {
    background: var(--status-active-bg);
    color: var(--status-active-text);
}
.status-inactive {
    background: var(--status-inactive-bg);
    color: var(--status-inactive-text);
}
.status-passed {
    background: var(--status-passed-bg);
    color: var(--status-passed-text);
}

/* Month by Month Calendar View */
.calendar-intro {
    text-align: center;
    margin-bottom: 40px;
}
.calendar-intro h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 8px;
}
.calendar-intro p {
    color: var(--text-secondary);
    font-size: 15px;
}

.calendar-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.cal-month-section {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

.cal-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.cal-month-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.cal-month-count {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
    background: var(--accent-gold-soft);
    padding: 4px 12px;
    border-radius: 50px;
}

.cal-month-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 0;
    font-size: 14px;
}

.cal-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cal-event-row {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    gap: 20px;
    transition: var(--transition-smooth);
}
.cal-event-row:hover {
    border-color: var(--border-gold);
    background: rgba(255, 255, 255, 0.04);
}

.cal-event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold-soft);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    min-width: 65px;
    height: 65px;
    flex-shrink: 0;
}
.cal-event-date-box .day {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
}
.cal-event-date-box .month-abbr {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-gold);
}

.cal-event-info {
    flex-grow: 1;
}

.cal-event-company {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cal-event-title-composer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cal-event-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}
.cal-event-composer {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.cal-event-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    flex-wrap: wrap;
}

.cal-event-action {
    flex-shrink: 0;
}
.cal-event-action .details-btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* Directory Section */
.company-directory-section {
    margin-bottom: 80px;
}
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin-bottom: 60px;
}

.directory-title {
    font-family: var(--font-heading);
    font-size: 26px;
    text-align: center;
    margin-bottom: 40px;
}

.company-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.dir-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}
.dir-card:hover {
    border-color: var(--border-gold);
    background: rgba(255, 255, 255, 0.04);
}

.dir-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.dir-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.dir-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dir-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.dir-web-link {
    color: var(--accent-gold);
    font-weight: 500;
}
.dir-web-link:hover {
    text-decoration: underline;
}

.dir-socials {
    display: flex;
    gap: 8px;
}
.dir-social-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.dir-social-icon:hover {
    color: var(--accent-gold);
}

/* Modal Window */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-gold-hover);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    width: 100%;
    max-width: 820px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-backdrop.show .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 20, 35, 0.8);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    z-index: 10;
}
.modal-close-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
}

.modal-image-wrap {
    height: 100%;
    min-height: 400px;
    position: relative;
    background: #0f1423;
}
.modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details-wrap {
    padding: 40px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-company-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    margin-top: 6px;
    margin-bottom: 2px;
}

.modal-composer {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 20px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.meta-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-description {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}
.modal-description p {
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

/* Spinner / Loading */
.loading-spinner {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Footer Component */
.main-footer {
    background: rgba(5, 7, 15, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-note {
    font-size: 11px;
}

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

@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-image-wrap {
        height: 250px;
        min-height: auto;
    }
    .modal-details-wrap {
        padding: 24px;
    }
    .search-wrap {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .toolbar-section {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-left {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }
    .month-dropdown-wrap {
        max-width: none;
    }
    .view-toggles {
        justify-content: center;
    }
    .season-badge {
        text-align: center;
    }
    .productions-grid {
        grid-template-columns: 1fr;
    }
    .cal-event-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cal-event-date-box {
        align-self: flex-start;
    }
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
}
