/*
Theme Name: MourningWood
Author: You
Description: One-page scroller theme for Mourning Wood band
Version: 1.1
*/

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

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #ffcc00;
    text-decoration: none;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
}

.mw-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================================
   GENERIC PAGE TEMPLATE STYLES
   (Used by page.php)
============================================ */

/* Page wrapper */
.mw-generic-page {
    padding: 120px 0 80px;
    background: #000;
    color: #fff;
}

/* Container */
.mw-generic-page .mw-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title */
.mw-page-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffcc00;
}

/* Content */
.mw-page-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ddd;
}

/* Paragraphs */
.mw-page-content p {
    margin-bottom: 1.4em;
}

/* Links */
.mw-page-content a {
    color: #ffcc00;
    font-weight: 600;
    text-decoration: underline;
}

.mw-page-content a:hover {
    opacity: 0.8;
}

/* Headings inside pages */
.mw-page-content h1,
.mw-page-content h2,
.mw-page-content h3,
.mw-page-content h4 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: #fff;
}

/* Lists */
.mw-page-content ul,
.mw-page-content ol {
    margin-left: 25px;
    margin-bottom: 1.4em;
}

/* Images */
.mw-page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
}

/* Blockquotes */
.mw-page-content blockquote {
    border-left: 4px solid #ffcc00;
    padding-left: 18px;
    margin: 1.6em 0;
    color: #ccc;
    font-style: italic;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .mw-page-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .mw-page-content {
        font-size: 1.05rem;
    }
}


/* ============================================
   NAVIGATION (ALWAYS ON TOP)
============================================ */
.mw-nav {
    position: fixed;        /* Always visible on screen */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 99999;         /* Highest priority */
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 10px 0;
    transition: background 0.25s ease;
}

/* Push down when WP admin bar is visible */
body.admin-bar .mw-nav { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .mw-nav { top: 46px; position: fixed; }
}

.mw-nav a {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 6px 4px;
    position: relative;
    transition: color 0.3s ease;
}

/* Active nav link – tasteful yellow underline */
.mw-nav a.active {
    color: #ffcc00 !important;
}
.mw-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: #ffcc00;
    border-radius: 999px;
}

/* Mobile Navigation — cleaner spacing */
@media(max-width: 700px) {
    .mw-nav {
        gap: 6px;
        padding: 8px 0;
		position: fixed; 
    }
    .mw-nav a {
        font-size: 0.72rem;
        padding: 4px 2px;
        margin: 0;
    }
}

/* Progress underline */
.mw-nav a {
    position: relative;
}

.mw-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    background: #ffcc00;
    width: 0%;
    transition: width 0.15s linear;
}
.mw-nav a.active::after {
    width: var(--progress, 0%); /* dynamic fill */
}



/* ============================================
   HERO
============================================ */
.mw-hero {
    height: 100vh;
    background: url('https://www.mourningwood.nl/wp-content/themes/mourningwood/assets/img/tree-bg.jpg') no-repeat center center/cover !important;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mw-hero-inner {
    text-align: center;
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0.8;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.mw-hero-logo {
    width: 100%;
    max-width: 880px;
    height: auto;
}

.mw-scroll {
    margin-top: 25px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.8;
}



/* ============================================
   GENERIC SECTIONS
============================================ */
.mw-section {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
    opacity: 0;
    transform: translateY(40px);
    background: transparent;
}

.mw-section:nth-of-type(even):not(.mw-hero) {
    background: #181818;
}

.mw-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.mw-section.mw-shows {
	background:#240026;
}

/* ============================================
   BIO (Background Image Version)
============================================ */
.mw-bio {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px;
    color: #fff;
    text-align: center;
}

/* Dark overlay */
.mw-bio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1;
}

.mw-bio h2,
.mw-bio .mw-section-text,
.mw-bio p {
    position: relative;
    z-index: 2;
}

/* Old elements disabled */
.mw-bio-flex,
.mw-bio-img {
    display: none !important;
}

/* Typography */
.mw-bio p {
    width: 96%;
	text-align: center;
    margin: 20px auto 0;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Responsive */
@media(max-width: 800px) {
    .mw-bio {
        padding: 80px 20px;
        background-attachment: scroll;
    }

    .mw-bio p {
        font-size: 1.1rem;
    }
}


/* ============================================
   SHOWS
============================================ */
.mw-songkick {
    margin-bottom: 40px;
}

/* ============================================
   MERCH (Front/Back Flip)
============================================ */
.mw-merch-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Lift + scale happens here — smoother parent transform */
.mw-merch-item-wrapper {
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
}

.mw-merch-item-wrapper:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

/* Actual flippable content */
.mw-merch-item {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Faces */
.mw-merch-item-face {
    display: block;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease;
    will-change: transform, opacity;
}

.mw-merch-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Back face */
.mw-back-face {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
}

/* Smooth flip swap */
.mw-merch-item-wrapper[data-has-back="1"]:hover .mw-back-face {
    opacity: 1;
    transform: scale(1);
}

.mw-merch-item-wrapper[data-has-back="1"]:hover .mw-front-face {
    opacity: 0;
    transform: scale(1.03);
}

/* Flip icon */
.mw-merch-flip-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity .3s ease;
    will-change: opacity;
}

.mw-merch-item-wrapper[data-has-back="1"]:hover .mw-merch-flip-icon {
    opacity: 1;
}

/* Merch title */
.mw-merch-title {
    padding: 12px;
    background: #000;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* Button centered */
.mw-merch-btn-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.mw-merch-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #ffcc00;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.mw-merch-btn:hover {
    transform: scale(1.05);
}

.mw-merch-buy-wrap {
    width: 100%;
    text-align: center;
    margin: 14px 0 18px;
}

.mw-merch-buy-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #075623;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: background .25s ease, transform .25s ease;
}

.mw-merch-buy-btn:hover {
    background: #075634;
    transform: translateY(-2px);
}


/* ============================================
   SECTION TEXTS
============================================ */

.mw-section-text {
	text-align: center;
	margin-bottom: 20px;
}

/* ============================================
   CONTACT
============================================ */
.mw-contact p {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.85;
}

/* Social icons */
.mw-socials {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.mw-socials a {
    font-size: 1.8rem;
    color: #fff;
    transition: opacity 0.2s ease;
}

.mw-socials a:hover {
    opacity: 0.7;
}

/* ============================================
   ARCHIVE PAGE WRAPPER
============================================ */
.mw-archive {
    max-width: 1250px;
    margin: 60px auto;
    padding: 0 20px;
}

.mw-archive-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
}

.mw-show-count {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* ============================================
   ARCHIVE PAGE BACKGROUND
============================================ */
.mw-archive-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* parallax-style */
    padding: 120px 0;
}

/* Dark overlay for readability */
.mw-archive-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

/* Keep archive content above overlay */
.mw-archive {
    position: relative;
    z-index: 2;
}


/* ============================================
   YEAR GRID (2 × 2)
============================================ */
.mw-year-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}


/* ============================================
   YEAR BLOCK
============================================ */
.mw-year-block {
    background: #111;
    padding: 30px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

.mw-year-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.9rem;
}


/* ============================================
   SHOW LIST (Each LI becomes a 3-column row)
============================================ */
.mw-year-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: 1fr; /* one per row — each LI will become a 3-column grid internally */
    gap: 12px;
}

.mw-year-inner li {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    border-radius: 10px;
}


/* ============================================
   SHOW ROW LAYOUT
============================================ */
.mw-show-row {
    display: grid;
    grid-template-columns: 20% 50% 20%;
    align-items: center;
    gap: 10px;
}

/* Date column */
.mw-show-date {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Venue */
.mw-show-venue {
    font-size: 0.95rem;
    line-height: 1.35;
}

/* ============================================
   FLAG CELL (desktop baseline)
============================================ */
.mw-show-flag {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.mw-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

/* Modern subtle hover interaction */
.mw-show-row:hover .mw-flag {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    filter: brightness(1.1);
}


/* ============================================
   MOBILE RESPONSIVE FIX FOR SHOW ROW / FLAGS
============================================ */
@media (max-width: 550px) {
    .mw-show-row {
        display: grid;
        grid-template-areas:
            "date flag"
            "venue venue";
        grid-template-columns: 1fr auto;
        gap: 5px 10px;
    }

    .mw-show-date {
        grid-area: date;
    }

    .mw-show-venue {
        grid-area: venue;
        max-width: 100%;
    }

    .mw-show-flag  {
        grid-area: flag;
        align-self: center;
        justify-self: end;
        margin: 0;
    }
}


/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */

/* Collapse year grid to one column */
@media (max-width: 1000px) {
    .mw-year-grid {
        grid-template-columns: 1fr;
    }
}

/* Adjust row distribution between 551px–700px */
@media (max-width: 700px) {
    .mw-show-row {
        grid-template-columns: 40% 40% 20%;
    }
}

/* Stack venue & flag columns under date on very small screens */
@media (max-width: 500px) {
    .mw-show-row {
        grid-template-columns: 1fr 1fr;
    }
    .mw-show-flag {
        grid-column: 2;
        justify-self: end;
    }
}


/* ============================================
   FOOTER
============================================ */
.mw-footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.95rem;
}

.mw-footer a {
    color: #ffcc00;
}

/* ============================================
   MOBILE UTILS
============================================ */
@media(max-width: 600px) {
    h2 {
        font-size: 1.9rem;
    }
    .mw-merch-btn {
        width: 100%;
    }
}
