/**
 * Nightlife Page Enhanced Styles
 * Comprehensive styling for venue cards, filters, and modals
 */

/* ==================== FILTERS SECTION ==================== */

.nightlife-filters-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.nightlife-filters-section .filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nightlife-filters-section .filters-row:last-child {
    margin-bottom: 0;
}

.nightlife-filters-section .filter-group {
    flex: 1;
    min-width: 200px;
}

.nightlife-filters-section .filter-group h3 {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.nightlife-filters-section .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ==================== VENUES LIST ==================== */

.nightlife-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.nightlife-list-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

#nightlifeCount {
    color: #808080;
    font-size: 0.95rem;
}

#nightlifeVenuesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.nightlife-venue-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.nightlife-venue-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.nightlife-venue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.venue-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nightlife-venue-card:hover .venue-image img {
    transform: scale(1.1);
}

.venue-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(212, 175, 55, 0.95);
    color: #0a0a0a;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.friends-going-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #D4AF37;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.venue-save-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.venue-save-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #0a0a0a;
    transform: scale(1.1);
}

.venue-save-btn.saved {
    background: rgba(212, 175, 55, 0.9);
    color: #0a0a0a;
}

.venue-content {
    padding: 1.5rem;
}

.venue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.venue-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #D4AF37;
    font-weight: 600;
    white-space: nowrap;
}

.venue-rating i {
    font-size: 1rem;
}

.review-count {
    color: #808080;
    font-size: 0.85rem;
    font-weight: 400;
}

.venue-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.venue-info-row i {
    color: #D4AF37;
    width: 16px;
}

.venue-music-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.genre-tag {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.venue-description {
    color: #808080;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.venue-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.feature-tag i {
    color: #4CAF50;
    font-size: 0.7rem;
}

.venue-crowd-meter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.crowd-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.crowd-label {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 600;
}

.crowd-level {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

.crowd-level.quiet {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.crowd-level.moderate {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.crowd-level.busy {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.crowd-level.very-busy {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.crowd-meter-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.crowd-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFC107, #FF9800, #F44336);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.crowd-meter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #808080;
    font-size: 0.8rem;
}

.peak-hours {
    color: #D4AF37;
    font-weight: 600;
}

.friends-going-list {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.friends-going-list strong {
    color: #D4AF37;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.friend-avatars {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.friend-avatar:hover {
    transform: scale(1.1);
}

.venue-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.venue-actions button {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-details,
.btn-book-table {
    grid-column: span 1;
}

.btn-details {
    background: #D4AF37;
    color: #0a0a0a;
}

.btn-details:hover {
    background: #E5C158;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-book-table {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    border: 2px solid #D4AF37;
}

.btn-book-table:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-directions,
.btn-share {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-directions:hover,
.btn-share:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.3);
}

/* ==================== VENUE DETAILS MODAL ==================== */

.venue-details-content {
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.venue-details-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.venue-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-details-body {
    padding: 2rem;
}

.venue-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.venue-details-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.venue-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4AF37;
    font-size: 1.2rem;
    font-weight: 600;
}

.venue-save-btn-large {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.venue-save-btn-large:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.venue-save-btn-large.saved {
    background: #D4AF37;
    color: #0a0a0a;
}

.venue-detail-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.venue-detail-section:last-of-type {
    border-bottom: none;
}

.venue-detail-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venue-detail-section h3 i {
    color: #D4AF37;
}

.venue-detail-section p {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.music-genres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.genre-tag-large {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.feature-item i {
    color: #4CAF50;
    font-size: 1rem;
}

.friends-going-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.friend-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.friend-item span {
    color: #ffffff;
    font-weight: 600;
}

.venue-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.venue-modal-actions button {
    flex: 1;
    min-width: 180px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==================== NO VENUES STATE ==================== */

.no-venues {
    text-align: center;
    padding: 4rem 2rem;
    color: #808080;
}

.no-venues i {
    font-size: 4rem;
    color: #D4AF37;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-venues h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-venues p {
    font-size: 1rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
    #nightlifeVenuesContainer {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .nightlife-filters-section {
        padding: 1.5rem;
    }

    #nightlifeVenuesContainer {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .venue-actions {
        grid-template-columns: 1fr;
    }

    .venue-modal-actions {
        flex-direction: column;
    }

    .venue-modal-actions button {
        width: 100%;
    }

    .venue-details-body {
        padding: 1.5rem;
    }

    .venue-details-header {
        flex-direction: column;
        gap: 1rem;
    }

    .venue-save-btn-large {
        width: 100%;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .nightlife-filters-section .filter-group {
        min-width: 100%;
    }

    .nightlife-filters-section .filters-row {
        flex-direction: column;
    }

    .venue-name {
        font-size: 1.1rem;
    }

    .venue-details-header h2 {
        font-size: 1.5rem;
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */

.venue-details-content::-webkit-scrollbar {
    width: 8px;
}

.venue-details-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.venue-details-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

.venue-details-content::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}