﻿/* ThreeGigs v25 - Venues Page (Optimized) */

/* === CORE LAYOUT === */
.page-content {
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
}

    .page-content::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }

/* === PAGE HEADER === */
.page-subtitle {
    color: #b0b0b0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* === SEARCH CONTAINER === */
.rsvp-search-container {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    margin: 2rem;
    padding: 2rem;
    transition: transform 0.3s ease;
}

    .rsvp-search-container:hover {
        transform: translateY(-2px);
    }

/* === FORM STYLING === */
.checkout-form input,
.checkout-form select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .checkout-form input:focus,
    .checkout-form select:focus {
        outline: none;
        border-color: #8A2BE2;
        background: rgba(255, 255, 255, 0.08);
    }

.btn-search-venue {
    background: #8A2BE2;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .btn-search-venue:hover {
        transform: translateY(-2px);
    }

/* === QUICK FILTERS === */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b0b0b0;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-filter-btn:hover,
    .quick-filter-btn.active {
        background: #8A2BE2;
        color: white;
        border-color: #8A2BE2;
        transform: translateY(-1px);
    }

.btn-clear-search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b0b0b0;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
}

    .btn-clear-search:hover {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

/* === VENUE GRID === */
.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.venue-card {
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .venue-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    }

/* === VENUE IMAGE === */
.venue-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.venue-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.venue-card:hover .venue-image {
    transform: scale(1.1);
}

/* === VENUE CONTENT === */
.venue-content {
    padding: 1.5rem;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.venue-card:hover .venue-name {
    color: #8A2BE2;
}

.venue-platform {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.venue-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.venue-location {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === VENUE ACTIONS === */
.venue-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.venue-card:hover .venue-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-book {
    background: #8A2BE2;
    color: white;
}

    .btn-book:hover {
        transform: translateY(-2px);
        color: white;
    }

.btn-preview {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .btn-preview:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        color: #fff;
    }

/* === MODAL LOADING STATE === */
.modal-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

    .modal-loading i {
        font-size: 1.5rem;
        color: #8A2BE2;
        animation: spin 1s linear infinite;
    }

    .modal-loading span {
        color: #fff;
        font-size: 1rem;
    }

/* === MODAL OVERLAY FIX === */
.tg-modal-overlay {
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .tg-modal-overlay.active {
        opacity: 1;
    }

.tg-modal {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.2s ease;
}

.tg-modal-overlay.active .tg-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* === LOAD MORE === */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.btn-load-more {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 50px;
    color: #8A2BE2;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-load-more:hover {
        background: #8A2BE2;
        color: white;
        transform: translateY(-2px);
    }

    .btn-load-more:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* === ANIMATIONS === */
.venue-card {
    opacity: 1;
    transform: translateY(0);
}

    .venue-card.animating {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .venue-card.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .rsvp-search-container {
        margin: 1rem;
        padding: 1rem;
    }

    .venue-actions {
        opacity: 1;
        transform: translateY(0);
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .venue-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* === UTILITIES === */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top: 3px solid #8A2BE2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
