/* Concert finder app - vanilla CSS */

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: #333;
}

header {
    margin-bottom: 2rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1f2937;
}

.logo {
    width: 40px;
    height: 40px;
    color: #2563eb;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-info {
    color: #666;
    font-size: 0.9rem;
}

.btn-login,
.btn-logout {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-login:hover {
    background: #f9fafb;
}

.btn-logout {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* Login Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

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

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

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

#filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

#filters input[type="search"],
#filters input[type="date"],
#filters select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#filters input[type="search"] {
    flex: 1;
    min-width: 200px;
}

#filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.results-info .count {
    font-weight: 600;
    color: #1e293b;
}

.results-info:empty {
    display: none;
}

#results {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0.5rem 0;
}

.card {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card.past-event {
    opacity: 0.7;
    background: #f9f9f9;
    border-color: #ccc;
}

.card.past-event .past-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    background: #6b7280;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
}

.card-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.event-date {
    color: #666;
    font-weight: 500;
    margin: 0.25rem 0;
}

.event-description {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.5;
}

.event-description:empty {
    display: none;
}

.description-preview {
    white-space: pre-wrap;
    margin-bottom: 0;
}

.description-details {
    margin: 0;
    margin-top: 0.25rem;
}

.description-details summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 500;
    user-select: none;
    padding: 0;
    list-style: none;
    margin: 0;
}

.description-details summary::-webkit-details-marker {
    display: none;
}

.description-details summary::marker {
    display: none;
}

.description-details summary::before {
    content: '\25BC ';
    font-size: 0.8em;
    transition: transform 0.2s;
    display: inline-block;
}

.description-details[open] summary::before {
    transform: rotate(180deg);
}

.description-full {
    white-space: pre-wrap;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid #eee;
}

.card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.card h2 a {
    color: #2563eb;
    text-decoration: none;
}

.card h2 a:hover {
    text-decoration: underline;
}

.card > p {
    margin: 0.25rem 0;
    color: #666;
}

.card > p:empty {
    display: none;
}

.works-tags {
    margin: 0.25rem 0 0.5rem 0;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 0.875rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.actions button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.actions button:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.actions button:disabled {
    cursor: not-allowed;
}

.actions button.btn-interested {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.actions button.btn-interested:hover {
    background: #059669;
}

.actions button.btn-not-interested {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.actions button.btn-not-interested:hover {
    background: #dc2626;
}

.actions a {
    padding: 0.5rem 1rem;
    border: 1px solid #2563eb;
    border-radius: 4px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.actions a:hover {
    background: #1d4ed8;
}

#loadMore {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
}

#loadMore:hover:not(:disabled) {
    background: #f5f5f5;
}

.scroll-trigger {
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
    visibility: hidden;
    grid-column: 1 / -1;
}

/* Venues page styles */
#venues-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.venue-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.venue-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.venue-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.venue-image.placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.venue-content {
    padding: 1.5rem;
}

.venue-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.venue-content h2 a {
    color: #2563eb;
    text-decoration: none;
}

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

.venue-location {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.venue-description {
    color: #555;
    margin: 1rem 0;
    line-height: 1.6;
}

.venue-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.venue-events {
    color: #666;
    font-size: 0.875rem;
}

.venue-website {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
}

.venue-website:hover {
    text-decoration: underline;
}

/* Event links */
.venue-link, .ticket-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.venue-link {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.venue-link:hover {
    background: #d1d5db;
}

.ticket-link {
    background: #2563eb;
    color: white;
}

.ticket-link:hover {
    background: #1d4ed8;
}

/* TodayTix link - distinctive styling */
.ticket-link.todaytix-link {
    background: linear-gradient(135deg, #ff134b 0%, #fc0ba0 100%);
    color: white;
}

.ticket-link.todaytix-link:hover {
    background: linear-gradient(135deg, #e0103f 0%, #d9098a 100%);
}

.event-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-event-page {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
}

.btn-event-page:hover {
    background: #d1d5db;
}

/* Review prompt */
.review-prompt {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.review-prompt p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
}

.btn-attended {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-attended:hover {
    background: #f9fafb;
}

/* Only show green if user actually selected "Yes" */
.btn-attended.btn-attended-yes {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-attended.btn-attended-yes:hover {
    background: #059669;
}

/* Optional: Show grey if user selected "No" */
.btn-attended.btn-attended-no {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-attended.btn-attended-no:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    #filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    #filters input[type="search"] {
        width: 100%;
    }
    
    .card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .event-description {
        margin: 0.5rem 0;
    }
    
    .actions {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        gap: 0.5rem;
    }
    
    .review-prompt {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
}

/* Stage/Space badge for multi-stage venues */
.stage-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    background: #f0f0f0;
    color: #555;
    margin-left: 4px;
    vertical-align: middle;
}
