/* Public Booking Page Styles - Light Theme */

/* Reset for public page */
.public-page {
    background: #f8f9fa;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.public-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.25rem;
}

.public-logo img {
    height: 32px;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-light:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Main Content */
.public-main {
    flex: 1;
    padding-top: 72px; /* Header height */
}

/* Loading State */
.public-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    color: #666;
}

.public-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error State */
.public-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 24px;
}

.error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

.public-error h2 {
    color: #1a1a1a;
    margin-bottom: 8px;
}

.public-error p {
    color: #666;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 48px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.8) saturate(1.2);
    transform: scale(1.3);
    opacity: 0.4;
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(248, 249, 250, 0.3) 70%,
        rgba(248, 249, 250, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.hero-poster {
    flex-shrink: 0;
}

.hero-poster img {
    width: 280px;
    max-width: 70vw;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.hero-info {
    max-width: 600px;
}

.event-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.event-status-badge.open {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.event-status-badge.closed {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.event-status-badge.sold-out {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.event-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.meta-icon {
    font-size: 1.25rem;
}

/* Pamphlet button — sits on the purple hero background */
.btn-pamphlet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-pamphlet:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #fff;
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.section-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.event-description {
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Booking Card */
.booking-card {
    position: sticky;
    top: 96px;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.schedule-item:hover {
    background: #f0f1f3;
    border-color: rgba(0, 0, 0, 0.1);
}

.schedule-item.selected {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary);
}

.schedule-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.schedule-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-item.selected .schedule-radio {
    border-color: var(--primary);
}

.schedule-item.selected .schedule-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.schedule-info {
    flex: 1;
}

.schedule-date {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.schedule-deadline {
    font-size: 0.875rem;
    color: #888;
}

.schedule-seats {
    text-align: right;
}

.seats-count {
    font-weight: 600;
    color: #16a34a;
}

.seats-count.low {
    color: #d97706;
}

.seats-count.sold-out {
    color: #dc2626;
}

/* Form Styles for Light Theme */
.public-page .form-input {
    background: #fff;
    border: 1px solid #ddd;
    color: #1a1a1a;
}

.public-page .form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.public-page .form-input::placeholder {
    color: #999;
}

.public-page .form-label {
    color: #333;
}

.public-page .form-hint {
    color: #888;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.booking-notice {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #888;
    text-align: center;
}

/* Footer */
.public-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px;
    text-align: center;
    color: #888;
    font-size: 0.875rem;
}

/* Modal Overrides for Light Theme */
.public-page .modal {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.public-page .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.public-page .modal-title {
    color: #1a1a1a;
}

.public-page .modal-close {
    color: #666;
}

.public-page .modal-close:hover {
    color: #1a1a1a;
}

/* Lookup Form */
.lookup-description {
    color: #666;
    margin-bottom: 24px;
}

.input-with-button {
    display: flex;
    gap: 12px;
}

.input-with-button .form-input {
    flex: 1;
}

/* Reservations List */
.reservations-header {
    margin-bottom: 16px;
}

.reservation-card {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}

.reservation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reservation-event-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.reservation-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    color: #444;
    font-size: 0.9rem;
}

.reservation-card-body dt {
    color: #888;
}

.reservation-card-body dd {
    margin: 0;
}

.reservation-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: right;
}

/* Success Icon */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto;
}

/* Empty State */
.empty-reservations {
    text-align: center;
    padding: 48px 24px;
    color: #888;
}

/* Casting Section */
.event-details .section-card + .section-card {
    margin-top: 24px;
}

.casting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.casting-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.casting-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.casting-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.casting-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.member-role {
    color: #666;
    font-size: 0.8rem;
}

.member-name {
    font-weight: 500;
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 32px 16px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-poster img {
        width: 200px;
    }

    .hero-info {
        padding-bottom: 0;
    }

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

    .event-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .content-section {
        padding: 32px 16px 60px;
    }

    .section-card {
        padding: 24px;
    }

    .reservation-card-body {
        grid-template-columns: 1fr;
    }

    .casting-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .public-header-content {
        padding: 12px 16px;
    }

    .public-logo span {
        display: none;
    }

    .hero-poster img {
        width: 160px;
    }

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