:root {
    /* layout */
    --site-width: 1280px;
    --gutter: 32px;
    --section-pad: 64px;

    /* primary colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --accent-color: #2563eb;
    --button-bg: #111827;
    --button-text: #ffffff;
    --shadows: #030303a4;
    --lshadows: #201e1ea4;

    /* type/text */
    --font-sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* dark mode variables */
.dark {
    --bg-primary: #0b1020;
    --bg-secondary: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #1f2937;
    --accent-color: #7c3aed;
    --button-bg: #7c3aed;
    --button-text: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

.wrapper {
    width: var(--site-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}


.error-message {
    margin: 6px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
}

#banner {
    padding: 12px 0;
    background: var(--bg-secondary);
}

.banner-inner {
    height: 320px;
    border-radius: 18px;
    background-image: url("images/concert.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* makes it stand out a bit better in dark mode, maybe tweak */
.dark .banner-inner {
    filter: brightness(0.85) saturate(1.1);
}

/* Smooth day/night transition */
body, header, section, .album-card, .album-detail, input, textarea, button, fieldset, footer {
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

/* -------------------------------------------------------------------------------------------------- */


/* HEADER SECTION */
header {
    background: #c7d2fe;
    border-bottom: 1px solid var(--border-color);
}

/* dark header */
.dark header {
    background: var(--bg-primary);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--shadows);
}

.dark .nav-list a {
    color: #e5e7eb;
}

.dark .nav-list a:hover {
    background: var(--lshadows);
}

.dark .theme-toggle button:hover {
    background: rgba(255,255,255,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.logo h1 {
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: 0.5px;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    padding: 0;
    margin: 0;
    }

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 10px;
    border-radius: 10px;
}

.nav-list a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 999px;
}

.nav-list a:hover {
    background: rgba(0, 0, 0, 0.08);
}

.nav-list a:focus {
    outline: 3px solid rgba(0, 0, 0, 0.25);
    outline-offset: 2px;
}

.theme-toggle {
    margin-left: 8px;
}

.theme-toggle button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle button:hover {
    background: rgba(0,0,0,0.1);
    transform: scale(1.08);
}

.theme-toggle button:focus {
    background: rgba(255,255,255,0.15);
}

/* -------------------------------------------------------------------------------------------------- */

/* main sections  */

main > section {
    padding: var(--section-pad) 0;
}

main > section + section {
    border-top: 1px solid var(--border-color);
}

h2 {
    margin: 0 0 18px;
    font-size: 2rem;
    line-height: 1.15;
}

p {
    margin: 0 0 14px;
    color: var(--text-secondary);
}

/* hero stuff */

#hero {
    background: var(--bg-secondary);
}

.hero-inner {
    display: grid;
    gap: 24px;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 14px;
}

.hero-media {
  height: 440px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  transition: opacity 600ms ease-in-out;
}


/* adding slight animation for the banner image */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* calling fadeUp for the text below banner image + banner image */
.hero-media, .hero-text {
    animation: fadeUp 700ms ease-out both;
}

/* slight delay so it feels more staged */
.hero-text {
    animation-delay: 120ms;
}

.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.about-media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.reveal {
    /* default state = visible (prevents content disappearing if JS fails, basically a fallback state) */
    opacity: 1;
    transform: none;
}

/* Only hide elements if JavaScript is running, which leads into the animation */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);

    /* if js works, transition uses CSS custom property (--d) for stagger delay */
    transition:
        opacity 650ms ease var(--d, 0ms),
        transform 650ms ease var(--d, 0ms);
    will-change: opacity, transform;
}

/* When JS adds .is-visible, element animates into place, thus completing the animation effect */
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* -------------------------------------------------------------------------------------------------- */


/* ALBUMS SECTION */

#albums h2 {
    margin-bottom: 22px;  
}

.album-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}

.album-controls button {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.album-controls button:hover, .album-controls button:focus {
    outline: none;
    border-color: var(--accent-color);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.album-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.album-card:hover, .album-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: var(--accent-color);
}

.album-card.is-active {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color),
                0 14px 32px rgba(0, 0, 0, 0.45);
}

.album-card .cover {
    height: 250px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.album-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.album-card p {
    margin: 0;
    font-size: 0.95rem;
}

.album-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-primary);
    margin: 18px 0 26px;
    align-items: start;
}
.album-detail[hidden] {
    display: none;
}


.album-detail-media {
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.album-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- dimming styles within the album covers stuff */

/* when album is active = rest of covers dim */
.album-grid.is-dimming .album-card {
    opacity: 0.55;
    transform: scale(0.995);
    transition: opacity 220ms ease, transform 220ms ease;
}

/* makes sure active album selected is not dimmed */
.album-grid.is-dimming .album-card.is-active {
    opacity: 1;
    transform: scale(1);
}

/* enhanced the is-active style */
.album-card.is-active {
    border-color: var(--accent-color);
    box-shadow:
        0 0 0 2px var(--accent-color),
        0 14px 32px rgba(0, 0, 0, 0.45);
}

.album-detail[hidden] {
    display: none;
}

/* base state when shown */
.album-detail {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 260ms ease, transform 260ms ease;
}

/* add this class in JS when opening */
.album-detail.is-open {
    opacity: 1;
    transform: translateY(0);
}

/* TRACKLIST STYLING WITHIN THE ALBUM SECTION */
.tracklist-wrap{
    max-height: 420px;
    overflow: auto;
}

.tracklist {
    margin: 10px 0 0;
    padding-left: 0px;
    color: var(--text-secondary);
    column-count: 2;
    column-gap: 48px;
    max-height: 420px;
    overflow: auto;
    list-style-position: inside;
}

.tracklist li {
    break-inside: avoid;
    margin: 6px 0;
    -webkit-column-break-inside: avoid;
    padding-left: 6px;
    transition: color 160ms ease, transform 160ms ease;
}

.tracklist li:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.detail-close {
    margin-top: 14px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 800;
    width: fit-content;
}

@media (max-width: 900px) {
  .album-detail {
    grid-template-columns: 1fr;
  }
}


/* -------------------------------------------------------------------------------------------------- */

 
/* FAN CHALLENGE */

.challenge-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.challenge-ui form {
    display: grid;
    gap: 12px;
    max-width: 420px;
}

.challenge-ui input[type="number"] {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.challenge-ui button[type="submit"] {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 800;
}

#gameResult {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.win-wallpaper {
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    text-align: center;
    padding: 12px;
}

.win-wallpaper img {
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* -------------------------------------------------------------------------------------------------- */

/* CONTACT SECTION */

#contact form {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    align-items: start;
}

.contact-left, .contact-right {
    width: 100%;
    display: grid;
    gap: 16px;
    }

.field {
    width: 100%;
}

.field label {
    margin-bottom: 8px;
    font-weight: 700;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

#contact textarea {
    min-height: 300px;
    resize: vertical;
}

#contact fieldset {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
}

#contact legend {
    font-weight: 800;
    padding: 0 8px;
}

.radio-group {
    display: grid;
    gap: 10px;
}

.radio-option {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.radio-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.radio-option span {
    grid-column: 1;
}

.radio-option input[type="radio"] {
    grid-column: 2;
    justify-self: end;
    margin: 0;
}

.contact-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.contact-submit {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 14px;
    padding: 16px 26px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.1rem;
    width: 100%
}

.contact-submit:hover {
    filter: brightness(1.05);
}

#formSuccess {
    color: var(--text-secondary);
}

/* -------------------------------------------------------------------------------------------------- */

/* FOOTER SECTION */

footer {
    padding: 28px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0 0 10px;
    font-size: 0.95rem;
}


