/* OpenMicList Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    color: white;
    padding: 30px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: white;
    color: #667eea;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

#authStatus {
    font-size: 14px;
    color: white;
}

#authStatus a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}

/* City Selector */
.city-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.city-selector label {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

#city-select {
    background: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 180px;
}

#city-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#city-select:focus {
    border-color: #764ba2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Tonight Button */
.tonight-btn {
    background: linear-gradient(135deg, #FF5722, #FF9800);
    color: white;
    border: 2px solid white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.tonight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.5);
}

.tonight-btn.active {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.6);
    animation: pulse-btn 1.5s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
    max-width: 800px;
}

.filter-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-section label {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 10px;
}

.filter-btn {
    background: white;
    border: 2px solid transparent;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #667eea;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.filter-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Map */
#map {
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px 0;
    z-index: 1;
}

/* Popup Content */
.popup-content h3 {
    margin-bottom: 8px;
    color: #333;
}

.popup-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.popup-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.popup-content a:hover {
    text-decoration: underline;
}

.popup-content .venue-type {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.popup-content .verified {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Venue List */
.venue-list {
    margin-top: 40px;
}

.venue-list h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

#venues-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.venue-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.venue-card.highlighted {
    border-color: #667eea;
    background: #f8f9ff;
}

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

.venue-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.badge.verified {
    background: #4CAF50;
    color: white;
}

.venue-type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.venue-type-badge.music {
    background: #e8f5e9;
    color: #2e7d32;
}

.venue-type-badge.comedy {
    background: #fff3e0;
    color: #e65100;
}

.venue-type-badge.mixed {
    background: #e3f2fd;
    color: #1565c0;
}

.venue-schedule {
    color: #666;
    margin: 8px 0;
    font-weight: 600;
}

.venue-description {
    color: #666;
    font-size: 0.95rem;
    margin: 12px 0;
    line-height: 1.5;
}

.venue-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-small:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

footer p {
    margin: 5px 0;
}

footer .small {
    font-size: 0.9rem;
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .city-selector {
        flex-direction: row;
        gap: 8px;
    }

    .city-selector label {
        font-size: 1rem;
    }

    #city-select {
        min-width: 150px;
        padding: 8px 16px;
    }

    #map {
        height: 400px;
    }

    #venues-container {
        grid-template-columns: 1fr;
    }

    .filters {
        padding: 0 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .city-selector {
        flex-direction: column;
        gap: 8px;
    }

    .city-selector label {
        font-size: 0.95rem;
    }

    #city-select {
        min-width: 200px;
        width: 100%;
        max-width: 280px;
    }

    #map {
        height: 300px;
        border-radius: 10px;
    }

    .venue-card {
        padding: 15px;
    }

    .venue-footer {
        flex-direction: column;
    }
}

/* Custom marker styles */
.custom-marker {
    background: transparent;
    border: none;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.2rem;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calendar-section h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.calendar-week {
    margin-bottom: 40px;
}

.calendar-week h3 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.3rem;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.day-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.day-card.today {
    border-color: #667eea;
    background: #f0f3ff;
}

.day-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.day-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.day-name {
    font-weight: bold;
    color: #667eea;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.day-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.day-events {
    min-height: 60px;
}

.no-events {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 10px 0;
}

.calendar-event {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calendar-event:last-child {
    margin-bottom: 0;
}

.event-venue {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.event-time {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.event-price {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-description {
    color: #555;
    font-size: 0.8rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .week-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .calendar-section {
        padding: 20px;
    }

    .day-card {
        padding: 10px;
    }

    .event-venue {
        font-size: 0.85rem;
    }

    .event-time, .event-price, .event-description {
        font-size: 0.75rem;
    }
}

/* Venue Modal */
.venue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.venue-modal.hidden {
    display: none;
}

.venue-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.venue-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    z-index: 1;
}

.venue-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.venue-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.venue-modal h2 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 24px;
}

.venue-modal .venue-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.venue-modal .venue-info {
    margin-bottom: 20px;
}

.venue-modal .venue-info p {
    margin: 8px 0;
    color: #475569;
    line-height: 1.6;
}

.venue-modal .venue-events {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.venue-modal .venue-events h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 18px;
}

.venue-modal .event-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #3b82f6;
}

.venue-modal .event-item.today {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.venue-modal .event-date {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.venue-modal .event-details {
    font-size: 14px;
    color: #64748b;
}

/* Hide venue list section */
.venue-list {
    display: none;
}

