@charset "UTF-8";

/* ===== CSS VARIABLES ===== */
:root {
    --bg-base:        #0a0a0a;
    --bg-elevated:    #141414;
    --bg-card:        #1a1a1a;
    --bg-card-hover:  #222222;
    --accent:         #1ed760;
    --accent-dark:    #17b34e;
    --text-primary:   #ffffff;
    --text-secondary: #a7a7a7;
    --text-muted:     #535353;
    --sidebar-width:  240px;
    --topbar-height:  56px;
    --radius:         12px;
    --radius-sm:      8px;
    --transition:     0.2s ease;
}

/* ===== RESET & GLOBAL ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0 1.2em;
    z-index: 1100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

/* ===== HAMBURGER BUTTON ===== */
.navicon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

.navicon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
    transform-origin: center;
    position: absolute;
    left: 0;
}

/* Placera spans vertikalt */
.navicon span:nth-child(1) { top: 0; }
.navicon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navicon span:nth-child(3) { bottom: 0; }

.navicon:hover span {
    background: var(--accent);
}

/* ===== HAMBURGER → ✕ ANIMATION ===== */
.navicon.is-open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--accent);
}

.navicon.is-open span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.navicon.is-open span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    background: var(--accent);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: #000;
    padding: 1.2em;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2em;
    padding-top: 0.4em;
}

.sidebar-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-menu li {
    margin: 2px 0;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.65em 0.8em;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

.sidebar-menu a.active {
    color: var(--accent);
}

.menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding-top: 1em;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* ===== CONTENT WRAPPER ===== */
.content {
    padding-top: calc(var(--topbar-height) + 2em);
    max-width: 960px;
    margin: 0 auto;
    padding-left: 1.5em;
    padding-right: 1.5em;
    padding-bottom: 3em;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    padding: 3em 0 2em;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 2em;
}

.hero-text {
    flex: 1;
}

.hero-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5em;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.4em;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5em;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 0.75em 1.8em;
    border-radius: 500px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: scale(1.04);
}

.hero-visual {
    position: relative;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(30,215,96,0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}

.hero-note {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 24px rgba(30,215,96,0.4));
}

/* ===== CONCERT IMAGE ===== */
.concert-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2em;
}

.concert-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.concert-wrap:hover .concert-img {
    transform: scale(1.02);
}

.concert-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3em 1.5em 1.2em;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.concert-tag {
    background: var(--accent);
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3em 0.9em;
    border-radius: 500px;
}

/* ===== TAGLINE ===== */
.tagline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1.2em 0;
    margin: 0 0 1.5em;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: -0.01em;
}

/* ===== ABOUT ===== */
.about {
    text-align: center;
    margin: 0 auto 2.5em;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
}

/* H2 finns för SEO/skärmläsare men visas inte visuellt */
.about h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== EXPLORE SECTION ===== */
.explore-section {
    margin-bottom: 1em;
}

/* ===== SECTION LABEL ===== */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1em;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin-bottom: 3em;
}

/* ===== CARDS ===== */
.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 1.5em;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8em;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4em;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.card-arrow {
    display: inline-block;
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 1em;
    transition: transform var(--transition);
}

.card:hover .card-arrow {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 2em;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ===== DESKTOP: push topbar when sidebar opens ===== */
body.shift .topbar {
    left: var(--sidebar-width);
}

/* ===== MOBIL ===== */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2em 0 1.5em;
    }

    .hero-visual {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .concert-img {
        max-height: 200px;
    }

    /* Overlay-stil på mobil, ingen push */
    body.shift .topbar {
        left: 0;
    }
}

/* ===== FAVORITER ===== */
.fav-bar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(30,215,96,0.1);
    border: 1px solid rgba(30,215,96,0.3);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7em 1.2em;
    border-radius: 500px;
    margin-bottom: 1.5em;
    width: fit-content;
    transition: all 0.3s ease;
}

.fav-bar-icon {
    font-size: 1rem;
}

/* Favoritknapp på kortet */
.fav-btn {
    position: absolute;
    top: 0.8em;
    right: 0.8em;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25em 0.35em;
    border-radius: 50%;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    z-index: 1;
    /* Tvinga textfärg – blockerar emoji-rendering */
    color: rgba(255,255,255,0.85);
    font-family: Arial, sans-serif;
    font-variation-settings: normal;
}

.fav-btn:hover {
    transform: scale(1.25);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.fav-btn.is-fav {
    color: #ff4d6d;
    background: rgba(255,77,109,0.12);
    border-color: rgba(255,77,109,0.35);
    animation: fav-pop 0.25s ease;
}



@keyframes fav-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Kort markerat som favorit */
.card.is-fav {
    border-color: rgba(30,215,96,0.4);
    background: rgba(30,215,96,0.06);
}

.card.is-fav::before {
    transform: scaleX(1);
}

/* ===== GENRE-SLUMPARE ===== */
.random-section {
    margin-bottom: 2.5em;
}

.random-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6em;
    padding: 2.5em 2em;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.random-box.is-spinning {
    animation: random-shake 0.45s ease;
}

@keyframes random-shake {
    0%   { transform: rotate(0deg)   scale(1); }
    20%  { transform: rotate(-3deg)  scale(1.03); }
    40%  { transform: rotate(3deg)   scale(1.03); }
    60%  { transform: rotate(-2deg)  scale(1.02); }
    80%  { transform: rotate(2deg)   scale(1.01); }
    100% { transform: rotate(0deg)   scale(1); }
}

.random-icon {
    font-size: 3.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.random-name {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.random-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
}

.btn-random {
    margin-top: 0.8em;
    background: var(--accent);
    color: #000;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border: none;
    padding: 0.75em 2em;
    border-radius: 500px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-random:hover:not(:disabled) {
    background: var(--accent-dark);
    transform: scale(1.04);
}

.btn-random:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DAGENS CITAT ===== */
.daily-quote {
    margin: 0 0 2.5em;
    padding: 1.4em 1.8em;
    border-left: 3px solid var(--accent);
    background: rgba(30,215,96,0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.5em;
}

.quote-author {
    display: block;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== SPOTIFY-SPELARE ===== */
.spotify-section {
    margin-bottom: 2.5em;
}

.spotify-wrap {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.spotify-meta {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
}

.spotify-now-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
}

.spotify-now-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

#spotify-iframe {
    border-radius: var(--radius-sm);
    display: block;
}

.btn-spotify-random {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6em 1.3em;
    border-radius: 500px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-spotify-random:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: scale(1.03);
}
