/* Jambo No.5 - Dark Forest Green Theme */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    min-height: 100vh;
    color: #c5efcb;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 8px;
}

.last-updated {
    color: #6b8f71;
    font-size: 13px;
}


/* Stats Grid — (2) flattened to match card language */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: white;
}

.stat-matches {
    background: #2d6a4f;
}

.stat-discoveries {
    background: #40916c;
}

.stat-uk {
    background: #35795a;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #c5efcb;
    transition: transform 0.2s ease;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Warnings Banner */
.warnings-banner {
    background: #2a2a1a;
    border: 1px solid #6b8f71;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #a9c5a0;
}

.warnings-banner p {
    margin: 4px 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    background: #1a1a2e;
    border: 2px solid #2d4a3e;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #a9c5a0;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab:hover {
    border-color: #40916c;
    color: #40916c;
}

.tab.active {
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    border-color: transparent;
    color: white;
}


/* Show Sections */
.show-section {
    display: none;
}

.show-section.active {
    display: block;
}

/* Month Headers — (5) larger, more breathing room */
.month-header {
    font-size: 20px;
    font-weight: 600;
    color: #52b788;
    margin: 36px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d4a3e;
}

.month-header:first-of-type {
    margin-top: 0;
}

/* Shows Grid */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 12px;
}

/* Show Card — (1) no accent line, (2) matched rounding with stats */
.show-card {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 12px;
}

.card-match {}
.card-discovery {}
.card-uk {}
.card-fuzzy {}

/* (7) Placeholder — music note icon instead of green box */
.artist-image {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.artist-image.placeholder {
    background: #1e1e32;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.artist-image.placeholder::after {
    content: '♪';
    font-size: 24px;
    color: #2d4a3e;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-info {
    flex: 1;
    min-width: 0;
}

/* (3) Card hierarchy: Date (subtle) → Artist (strongest) → Venue (medium) */
.show-date {
    font-size: 11px;
    color: #5a7a60;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.show-artist {
    font-size: 18px;
    font-weight: 700;
    color: #e0f5e0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Source badges for New Shows tab */
.source-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}

.badge-discovery {
    background: rgba(64, 145, 108, 0.3);
    color: #52b788;
}

.badge-fuzzy {
    background: rgba(204, 163, 0, 0.2);
    color: #cca300;
}

.show-similar {
    font-size: 11px;
    color: #a9c5a0;
    margin-bottom: 4px;
}

.show-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.genre-badge {
    font-size: 10px;
    background: rgba(45, 106, 79, 0.3);
    color: #a9c5a0;
    padding: 2px 8px;
    border-radius: 10px;
}

.show-venue {
    font-size: 12px;
    color: #7a9f80;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flag {
    display: inline-block;
    font-size: 14px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Buttons — (4) Tickets = primary solid, Listen = ghost/outline */
.show-actions {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-spotify {
    background: transparent;
    color: #1DB954;
    border: 1px solid #1DB954;
}

.btn-spotify:hover {
    background: rgba(29, 185, 84, 0.1);
}

.btn-tickets {
    background: #40916c;
    color: white;
}

.btn-tickets:hover {
    background: #52b788;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b8f71;
    font-size: 15px;
}

/* User Header */
.user-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #a9c5a0;
}

.header-link {
    font-size: 13px;
    color: #40916c;
    text-decoration: none;
    font-weight: 500;
}

.header-link:hover {
    text-decoration: underline;
}

.badge {
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
}

/* Login Page */
.login-box {
    max-width: 400px;
    margin: 40px auto;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #c5efcb;
    margin-bottom: 16px;
}

.login-subtitle {
    font-size: 14px;
    color: #a9c5a0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.login-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 12px;
}

.required {
    color: #ff6b6b;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #2d4a3e;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
    background: #121212;
    color: #c5efcb;
}

.login-input:focus {
    border-color: #52b788;
}

.login-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.login-hint {
    font-size: 13px;
    color: #7a9e71;
    margin-top: 14px;
    text-align: center;
}

.spotify-connect-btn {
    background: #1DB954;
}

.spotify-connect-btn:hover {
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

/* Settings Page */
.settings-box {
    max-width: 480px;
    margin: 24px auto;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.settings-title {
    font-size: 20px;
    font-weight: 600;
    color: #c5efcb;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #a9c5a0;
    margin-bottom: 6px;
}

.settings-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #2d4a3e;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #121212;
    color: #c5efcb;
}

.settings-input:focus {
    border-color: #52b788;
}

.settings-btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* Primary Button */
.primary-btn {
    background: #40916c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.primary-btn:hover {
    transform: translateY(-1px);
    background: #52b788;
}

/* Footer */
footer {
    border-top: 1px solid #2d4a3e;
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
}

footer p {
    color: #6b8f71;
    font-size: 12px;
    margin-bottom: 4px;
}

.footer-brand {
    color: #4a6b50;
    font-size: 11px;
}

/* Friend Chips */
.friend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.friend-chip {
    background: #1a1a2e;
    border: 2px solid #2d4a3e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #a9c5a0;
}

.friend-chip:hover {
    border-color: #40916c;
    color: #40916c;
}

.friend-chip.active {
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    border-color: transparent;
    color: white;
}

/* Friends line on show cards */
.show-friends-line {
    font-size: 11px;
    color: #52b788;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Settings — Friend list */
.friend-link-row {
    display: flex;
    gap: 8px;
}

.friend-link-row .settings-input {
    flex: 1;
    font-size: 12px;
}

.copy-btn {
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
}

.friend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2d4a3e;
}

.friend-row:last-child {
    border-bottom: none;
}

.friend-name {
    font-size: 14px;
    color: #c5efcb;
    font-weight: 500;
}

.friend-actions {
    display: flex;
    gap: 6px;
}

.btn-accept {
    background: #40916c;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-decline {
    background: transparent;
    color: #6b8f71;
    border: 1px solid #6b8f71;
    cursor: pointer;
}

.btn-decline:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.btn-remove {
    background: transparent;
    color: #6b8f71;
    border: 1px solid #2d4a3e;
    cursor: pointer;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
}

.btn-remove:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .tabs {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }

    .tab {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 1;
    }

    .month-header {
        font-size: 17px;
        margin: 24px 0 14px 0;
    }

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

    .artist-image {
        width: 56px;
        height: 56px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .login-box {
        padding: 20px;
        margin: 24px auto;
    }

    .settings-box {
        padding: 20px;
    }
}
