/*
 * MaidenFans.com — structural & component CSS
 * Mobile-first. Breakpoints: 640px (tablet), 900px (desktop).
 */

/* === Reset & base === */

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Frozen tundra hero backdrop */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:
        /* Heavy fade to black from bottom */
        linear-gradient(180deg,
            transparent 0%,
            rgba(6,11,24,.3) 30%,
            rgba(6,11,24,.7) 55%,
            var(--bg) 80%
        ),
        /* Darken overall so content stays readable */
        linear-gradient(180deg,
            rgba(6,11,24,.4) 0%,
            rgba(6,11,24,.2) 50%,
            rgba(6,11,24,.6) 100%
        ),
        url('/images/hero-bg.png') center top / cover no-repeat;
    z-index: -1;
    pointer-events: none;
}

img { max-width: 100%; height: auto; }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color .15s, text-shadow .15s;
}
a:hover {
    color: var(--gold-hover);
    text-shadow: 0 0 8px var(--gold-glow);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--accent-dim) 50%, var(--border-light) 80%, transparent);
    margin: 2rem 0;
}

blockquote {
    margin: 1.25rem 0;
    padding: .85rem 1.25rem;
    border-left: 3px solid var(--accent-dim);
    background: linear-gradient(135deg, var(--bg-inset), var(--bg-panel));
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    box-shadow: inset 2px 0 12px rgba(140,189,224,.05);
}

pre, code {
    font-size: .9em;
    background: var(--bg-inset);
    border-radius: var(--radius);
}
pre  { padding: 1rem; overflow-x: auto; border: 1px solid var(--border); }
code { padding: .15em .35em; }
pre code { padding: 0; background: none; }


/* === Layout shell === */

.site-header {
    background: linear-gradient(180deg, rgba(5,10,20,.3) 0%, rgba(5,10,20,.6) 100%);
    border-bottom: 1px solid rgba(21,32,53,.5);
    padding: 1.5rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.site-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: filter .3s;
}
.site-logo:hover {
    filter: brightness(1.15) drop-shadow(0 0 12px var(--accent-glow));
}
.site-logo__img {
    height: auto;
    width: auto;
    max-height: 77px;
    max-width: min(70vw, 500px);
    display: block;
}
.site-logo span {
    display: block;
    font-family: var(--font-body);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
    padding-left: 2px;
}

.site-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-height: calc(100vh - 70px);
}

.site-main    { flex: 1; min-width: 0; }

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg), #040810);
    padding: 2rem 1rem;
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
}
.site-footer p { margin: .2rem 0; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--gold); }


/* === Hamburger (mobile) === */

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 8px;
    transition: border-color .2s, box-shadow .2s;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}
.hamburger:hover {
    border-color: var(--accent-dim);
    box-shadow: 0 0 8px var(--accent-glow);
}
.hamburger b {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] b:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] b:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] b:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* === Sidebar nav === */

.site-nav {
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-alt) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(140,189,224,.05);
}

/* Mobile: sticky header + overlay nav */
@media (max-width: 899px) {
    .site-header {
        position: sticky;
        top: 0;
        background: var(--bg);
    }
    .site-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        background: rgba(5,10,20,.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: none;
        overflow-y: auto;
        padding: 6rem 1.5rem 2rem;
    }
    .site-nav.open { display: block; }
    .site-sidebar:has(.site-nav.open) { display: block; }
}
.site-nav { display: block; }

.site-nav__section-title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    margin: 1.2rem 0 .35rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, transparent, var(--border-glow) 50%, transparent);
    background-size: 100% 1px;
    background-position: bottom;
    background-repeat: no-repeat;
}
.site-nav__section-title:first-child { margin-top: .25rem; }

.site-nav__forum-link,
.site-nav__forum-link:visited {
    color: var(--gold);
    font-weight: 500;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav li + li { margin-top: 1px; }

.site-nav a {
    display: block;
    padding: .35rem .5rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: .88rem;
    transition: all .15s;
    border-left: 2px solid transparent;
}
.site-nav a:hover {
    background: var(--bg-hover);
    color: var(--gold);
    border-left-color: var(--gold);
    text-shadow: 0 0 8px var(--gold-glow);
    padding-left: .65rem;
}


/* === Typography === */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--accent);
    line-height: 1.25;
    margin: 1.5rem 0 .6rem;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

.page-title {
    font-size: 1.8rem;
    font-style: italic;
    margin-top: 0;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, transparent, var(--accent-glow) 50%, transparent);
    background-size: 100% 1px;
    background-position: bottom;
    background-repeat: no-repeat;
    text-shadow: 0 0 20px var(--accent-glow);
}


/* === Breadcrumb === */

.breadcrumb {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold); }


/* === Meta text === */

.meta {
    font-size: .85rem;
    color: var(--text-secondary);
}

.meta-small {
    font-size: .75rem;
    color: var(--text-muted);
}


/* === News items === */

.news-item {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-panel-alt) 100%);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-dim);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    transition: border-left-color .2s, box-shadow .2s;
}
.news-item:hover {
    border-left-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 15px var(--border-glow);
}

.news-item h2 {
    margin-top: 0;
    font-size: 1.25rem;
    font-style: italic;
}
.news-item h2 a { color: var(--accent); }
.news-item h2 a:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 12px var(--accent-glow);
}

.news-read-on {
    margin-top: .75rem;
}
.news-read-on a {
    font-weight: 600;
    color: var(--gold);
}
.news-read-on a:hover {
    text-shadow: 0 0 10px var(--gold-glow);
}

.rss-link {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 1.25rem;
}
.rss-link a { color: var(--text-secondary); }
.rss-link img { vertical-align: middle; width: 14px; }


/* === Album / Video grids === */

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
    margin: 1.5rem 0;
}

.album-card {
    background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-panel-alt) 60%, var(--bg-inset) 100%);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    padding: 1rem .75rem;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.album-card::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: var(--album-bg) center / cover no-repeat;
    filter: blur(20px) saturate(1.8) brightness(1.2);
    opacity: .45;
    transition: opacity .4s;
    pointer-events: none;
}
.album-card:hover::before { opacity: .6; }
.album-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.album-card:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 4px 25px rgba(0,0,0,.4), 0 0 20px var(--border-glow);
    transform: translateY(-2px);
    cursor: pointer;
}
.album-card:hover::after { opacity: 1; }

.album-card img {
    position: relative;
    width: 120px;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: .6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.5);
    transition: box-shadow .25s;
}
.album-card:hover img {
    box-shadow: 0 6px 25px rgba(0,0,0,.6), 0 0 15px var(--accent-glow);
}
.album-card a {
    position: static;
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .2rem;
}
.album-card a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}
.album-card a:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 10px var(--accent-glow);
}
.album-card .album-year {
    position: relative;
    display: block;
    font-size: .78rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 4px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.5);
    margin-bottom: .15rem;
}
.album-card .album-rating {
    position: relative;
    display: block;
    font-size: .78rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.5);
    color: var(--text-secondary);
}


/* === Tracklist table === */

.tracklist {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.tracklist th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-dim);
    padding: .6rem .5rem;
    border-bottom: 2px solid var(--border-light);
}
.tracklist th:last-child { text-align: right; }
.tracklist td {
    padding: .5rem .5rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.tracklist tr:hover td {
    background: var(--bg-hover);
}
.tracklist td:first-child {
    color: var(--text-muted);
    width: 2.5rem;
}
.tracklist td:last-child {
    text-align: right;
    color: var(--text-secondary);
}
.tracklist .disc-heading td {
    padding-top: 1rem;
    font-weight: bold;
    color: var(--accent);
    border-bottom: 1px solid var(--border-light);
}
.tracklist a { color: var(--gold); }


/* === Data tables (tours, articles list) === */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.data-table th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    padding: .65rem .6rem;
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
    text-shadow: 0 0 8px var(--accent-glow);
}
.data-table td {
    padding: .55rem .6rem;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
}
.data-table tr:hover td {
    background: var(--bg-hover);
}
.data-table .group-heading td {
    padding-top: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    background: none;
    border-bottom: 1px solid var(--border-light);
    font-size: .9rem;
    text-shadow: 0 0 6px var(--accent-glow);
}
.data-table a { color: var(--gold); }
.data-table a:hover { color: var(--gold-hover); }

/* Mobile card layout for data tables */
@media (max-width: 639px) {
    .data-table thead { display: none; }
    .data-table tr { display: block; margin-bottom: .5rem; }
    .data-table tr.group-heading { margin-bottom: 0; }
    .data-table td {
        display: block;
        padding: .25rem .6rem;
        border-bottom: none;
    }
    .data-table td::before {
        content: attr(data-label);
        display: inline-block;
        font-size: .65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--text-muted);
        min-width: 5rem;
        margin-right: .5rem;
    }
    .data-table tr:not(.group-heading) {
        background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt));
        border: 1px solid var(--border);
        border-left: 3px solid var(--accent-dim);
        border-radius: var(--radius);
        padding: .5rem 0;
    }
    .data-table .group-heading td::before { content: none; }
}


/* === Info card (article sidebar, image details) === */

.info-card {
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    font-size: .88rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.info-card strong {
    color: var(--accent);
}

/* Float on larger screens */
@media (min-width: 640px) {
    .info-card--float {
        float: left;
        width: 210px;
        margin: 0 1.25rem 1rem 0;
    }
}


/* === Article layout === */

.article-meta {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
}
.article-meta strong {
    color: var(--accent);
}

.article-body {
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-panel-alt) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    margin-bottom: 1.5rem;
}
.article-body p { margin: .75rem 0; }

@media (min-width: 640px) {
    .article-meta {
        float: left;
        width: 200px;
        margin: 0 1.25rem 1rem 0;
        border-bottom: none;
        padding: 0;
    }
    .article-body {
        overflow: hidden; /* contain the float */
    }
}


/* === Comments & reviews === */

.comment {
    padding: 1rem;
    margin-bottom: .75rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

.comment__author {
    font-weight: 600;
    color: var(--accent);
}

.comment__body {
    margin: .5rem 0;
}

.review {
    padding: 1.25rem;
    margin-bottom: .75rem;
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt));
    border: 1px solid var(--border);
    border-left: 3px solid var(--purple-dim);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.review__rating {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    padding: .2rem .6rem;
    border-radius: var(--radius);
    margin-left: .4rem;
    box-shadow: 0 2px 8px rgba(140,189,224,.15);
}


/* === Gallery grid === */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .5rem;
    margin: 1rem 0 2rem;
}

.gallery-thumb {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: transform .2s;
}
.gallery-thumb:hover {
    transform: scale(1.05);
    color: var(--gold);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-inset);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: border-color .2s, box-shadow .2s;
}
.gallery-thumb:hover img {
    border-color: var(--accent-dim);
    box-shadow: 0 4px 15px rgba(0,0,0,.4), 0 0 10px var(--accent-glow);
}

.gallery-thumb span {
    display: block;
    font-size: .7rem;
    margin-top: .25rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* === Gallery single image === */

.gallery-image {
    margin-bottom: 1rem;
}
.gallery-image img {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}


/* === Lyrics === */

.lyrics {
    white-space: pre-line;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text);
    margin: .5rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(140,189,224,.03);
}


/* === Month nav (news archives) === */

.month-nav {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem 1.1rem;
    font-size: .88rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.month-nav a { color: var(--gold); }


/* === Rating badge === */

.rating-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-panel-alt), var(--bg-panel));
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: .4rem .9rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow), 0 2px 8px rgba(0,0,0,.2);
    text-shadow: 0 0 8px var(--accent-glow);
}
.rating-badge .rating-votes {
    font-size: .75rem;
    font-weight: normal;
    color: var(--text-muted);
    text-shadow: none;
    margin-left: .3rem;
}


/* === Search embed === */

.gsc-control-cse {
    background: transparent !important;
    border: none !important;
}


/* === Utility === */

.clearfix::after { content: ''; display: table; clear: both; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}


/* === Error pages === */

.error-page h1 {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}
.error-page pre {
    color: var(--text-secondary);
    font-size: .85rem;
}


/* === Content images (from markdown) === */

.site-main img.right {
    float: right;
    margin: 0 0 1rem 1rem;
}
.site-main img.left {
    float: left;
    margin: 0 1rem 1rem 0;
}
.site-main img.center {
    display: block;
    margin: 1rem auto;
}


/* === Older news list === */

.older-news {
    list-style: none;
    padding: 0;
}
.older-news li {
    padding: .4rem .6rem;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.older-news li:last-child { border-bottom: none; }
.older-news li:hover { background: var(--bg-hover); }
.older-news a { color: var(--gold); }


/* ===========================
   Tablet (640px+)
   =========================== */

@media (min-width: 640px) {
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .album-card img { width: 140px; }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .gallery-thumb img { height: 95px; }
}


/* ===========================
   Desktop (900px+)
   =========================== */

@media (min-width: 900px) {
    .site-wrap {
        flex-direction: row;
    }

    .site-sidebar {
        width: var(--sidebar-width);
        flex-shrink: 0;
        order: 0;
    }

    .site-main {
        flex: 1;
    }

    /* Nav always visible on desktop */
    .site-nav { display: block; }
    .hamburger { display: none; }

    /* Sticky sidebar nav */
    .site-sidebar .site-nav {
        position: sticky;
        top: 75px;
    }

    .album-card img { width: 150px; }

    h1 { font-size: 1.8rem; }
    .page-title { font-size: 2rem; }
}
