/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    hyphens: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
header {
    background-color: #fff;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    border-bottom: 3px solid #6366f1;
}

header h1 {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

section {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
    text-align: center;
}

.section-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Concert List */
.city-badge {
    display: inline-block;
    background-color: #e0e7ff;
    color: #3730a3;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.event-type-badge {
    display: inline-block;
    background-color: #d1fae5;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0rem;
    margin-bottom: 0.5rem;
}

.genre-badge {
    display: inline-block;
    background-color: #c96161;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
}

.concert-list {
    display: grid;
    gap: 1.5rem;
}

.concert-item {
    padding: 1.5rem;
    border-left: 4px solid #6366f1;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.concert-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.15);
}

.concert-item h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.venue {
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.description {
    color: #4b5563;
    font-size: 0.95rem;
    text-align: justify;
}

details {
    margin-top: 0.5rem;
}

summary {
    color: #6366f1;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* Remove default arrow */
    font-size: 0.95rem;
}

summary::-webkit-details-marker {
    display: none; /* Remove default arrow for webkit browsers */
}

/* Spotify Playlist */
.spotify-embed {
    margin-top: 1rem;
}

.spotify-embed iframe {
    width: 100%;
}

/* Signup Form */
.signup form {
    max-width: 500px;
    margin: 0 auto;
}

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

input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.3s;
}

input[type="email"]:focus {
    outline: none;
    border-color: #6366f1;
}

input[type="email"].error {
    border-color: #ef4444;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #6366f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button[type="submit"]:hover {
    background-color: #4f46e5;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

.success-message {
    color: #10b981;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    min-height: 1.5rem;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: #d1d5db;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #818cf8;
}


/* Desktop Layout (Two Columns) */
@media (min-width: 1024px) {
    main {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Concerts (left) wider than Playlist/Signup (right) */
        gap: 2rem; /* Space between columns */
        max-width: 1200px; /* Allow main to expand more */
        padding: 2rem;
    }

    .concerts {
        margin-bottom: 0; /* Remove bottom margin when in grid layout */
    }

    .right-column {
        display: flex;
        flex-direction: column;
        gap: 2rem; /* Space between playlist and signup sections */
    }

    .signup form {
        max-width: none; /* Allow form to take full width of its column */
    }

    .spotify-embed {
        margin-top: 0; /* Adjust margin as needed */
    }

    /* Ensure sections within right-column fill available width */
    .right-column section {
        width: 100%;
        margin-bottom: 0; /* Remove bottom margin for sections within right-column */
    }
}

