:root {
    --theater-primary: #1e5a8e;
    --theater-secondary: #2e7ab8;
    --theater-accent: #4a9fd8;
    --theater-dark: #0d2e4a;
    --theater-light: #f0f5f9;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--theater-light);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--theater-accent);
}

/* General placeholder styling */
::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Theater Header Styling */
.theater-header {
    background: linear-gradient(135deg, var(--theater-primary) 0%, var(--theater-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theater-header .navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.theater-header .navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.theater-header .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.theater-header .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--theater-primary) 0%, var(--theater-secondary) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Card Styling */
.event-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 90, 142, 0.25);
}

.event-card .card-header {
    background: linear-gradient(135deg, var(--theater-primary), var(--theater-secondary));
    color: white;
    border: none;
    padding: 1rem;
}

.event-card .card-body {
    background: white;
}

/* Button Styling */
.btn-theater-primary {
    background: linear-gradient(135deg, var(--theater-primary), var(--theater-secondary));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-theater-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 90, 142, 0.4);
    color: white;
}

.btn-theater-outline {
    border: 2px solid var(--theater-primary);
    color: var(--theater-primary);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-theater-outline:hover {
    background: var(--theater-primary);
    color: white;
    transform: translateY(-2px);
}

/* Badge Styling */
.badge-theater {
    background: var(--theater-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Footer Styling */
.theater-footer {
    background: linear-gradient(135deg, var(--theater-dark) 0%, var(--theater-primary) 100%);
    color: white;
    padding-top: 2rem;
}

.theater-footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Loading Animation */
@keyframes curtain {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.8); }
}

.loading-theater {
    display: inline-block;
    animation: curtain 1.5s infinite;
}

/* Event Card Details */
.event-card .card-title {
    font-weight: 600;
    color: var(--theater-dark);
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pagination Styling */
.pagination .page-link {
    color: var(--theater-primary);
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--theater-light);
    border-color: var(--theater-primary);
    color: var(--theater-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--theater-primary);
    border-color: var(--theater-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Form Styling */
.filter-section .form-label {
    font-weight: 600;
    color: var(--theater-dark);
    margin-bottom: 0.5rem;
}

.filter-section .form-select,
.filter-section .form-control {
    border-radius: 8px;
    border-color: #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: var(--theater-accent);
    box-shadow: 0 0 0 0.2rem rgba(30, 90, 142, 0.15);
}
