/* Event Details Page Styles */

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Section */
.event-hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.6) 100%);
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon {
    font-size: 10rem;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    display: flex;
    align-items: flex-end;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Event Category Badge */
.event-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.badge-icon {
    font-size: 1.2rem;
}

/* Event Title */
.event-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Event Meta Row */
.event-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
}

.meta-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.meta-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-content strong {
    font-size: 1.1rem;
}

.meta-content span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Event Body */
.event-body {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Main Content */
.event-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.title-icon {
    font-size: 1.75rem;
}

.section-content {
    color: var(--text-color);
    line-height: 1.8;
}

.event-description {
    font-size: 1.1rem;
    white-space: pre-line;
}

/* DateTime Card */
.datetime-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.datetime-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.datetime-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.datetime-value {
    font-size: 1.1rem;
    color: var(--text-color);
}

.datetime-divider {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.duration-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 0.5rem;
    color: var(--text-color);
}

/* Venue Card */
.venue-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.venue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.venue-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.venue-capacity {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.venue-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.venue-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.venue-detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.venue-detail-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Terms Content */
.terms-content {
    font-size: 0.95rem;
    color: var(--text-light);
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* Sidebar */
.event-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ticket-selector-card,
.share-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin: 0;
}

.header-icon {
    font-size: 1.75rem;
}

.urgency-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-weight: 600;
    animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {
    0%, 100% { background: rgba(255, 255, 255, 0.2); }
    50% { background: rgba(255, 255, 255, 0.3); }
}

.urgency-icon {
    font-size: 1.25rem;
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.card-body {
    padding: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Sold Out Banner */
.sold-out-banner {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border-radius: 0.75rem;
}

.sold-out-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.sold-out-banner strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Ticket Types */
.ticket-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-type-card {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.ticket-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.ticket-type-card.unavailable {
    opacity: 0.6;
    background: #f5f5f5;
}

.ticket-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.ticket-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ticket-type-name {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.ticket-type-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.ticket-price-display {
    text-align: right;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-free {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--success-color);
}

/* Limited Badge */
.limited-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: var(--error-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--error-color);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Ticket Actions */
.ticket-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.ticket-subtotal {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Unavailable Badge */
.unavailable-badge {
    padding: 0.75rem;
    background: #fef2f2;
    color: var(--error-color);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
}

/* Order Summary */
.order-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 2px solid var(--primary-color);
}

.order-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.summary-item.fee {
    color: var(--text-light);
    font-size: 0.9rem;
}

.summary-item.total {
    font-size: 1.25rem;
    color: var(--text-color);
    padding-top: 0.75rem;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
}

.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.secure-icon {
    font-size: 1rem;
}

/* Share Card */
.share-card {
    padding: 1.5rem;
}

.share-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.share-btn {
    aspect-ratio: 1;
    border: none;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-btn.facebook:hover { background: #1877f2; color: white; }
.share-btn.twitter:hover { background: #1da1f2; color: white; }
.share-btn.email:hover { background: #ea4335; color: white; }
.share-btn.link:hover { background: var(--primary-color); color: white; }

/* Merchandise in Order Summary */
.summary-section-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0.75rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item-variant {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

.add-info-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.add-info-text i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Merchandise Total Summary */
.merchandise-total-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.merchandise-total-summary .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.merchandise-total-summary .total-label {
    font-weight: 600;
    color: var(--text-color);
}

.merchandise-total-summary .total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .event-layout {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
    }

    .event-meta-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .datetime-card {
        flex-direction: column;
        gap: 1rem;
    }

    .datetime-divider {
        transform: rotate(90deg);
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .ticket-type-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-price-display {
        text-align: left;
    }
}
