/**
 * BTS Custom Theme — main layout & components
 * Base variables live in style.css (:root). Mobile-first.
 */

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

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--color-bts-purple-light); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--color-gold); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
    position: fixed; top: 0; left: 0; z-index: 9999;
    width: auto; height: auto; clip: auto;
    padding: .75rem 1rem; background: var(--color-gold); color: var(--color-black);
}

/* ------------------------------------------------------------------ Buttons */
.bts-btn {
    display: inline-block; padding: .8rem 1.6rem;
    font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1.5px;
    font-size: .85rem; font-weight: 600;
    border: 2px solid var(--color-bts-purple);
    background: var(--color-bts-purple); color: var(--color-white);
    border-radius: 3px; cursor: pointer;
    transition: transform .2s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.bts-btn:hover { transform: translateY(-2px); color: var(--color-white); box-shadow: 0 8px 24px rgba(135,88,142,.4); }
.bts-btn-gold { background: transparent; border-color: var(--color-gold); color: var(--color-gold); }
.bts-btn-gold:hover { background: var(--color-gold); color: var(--color-black); box-shadow: 0 8px 24px rgba(212,175,55,.35); }
.bts-btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

.bts-empty { opacity: .55; font-style: italic; }

/* ------------------------------------------------------------------ Header */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem 1.5rem;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(135,88,142,.35);
}
.custom-logo { max-height: 48px; width: auto; }
.bts-wordmark { display: inline-flex; align-items: center; gap: .35rem; }
.bts-wordmark-text {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem;
    letter-spacing: 3px; color: var(--color-white); text-transform: uppercase;
}
.bts-wordmark:hover .bts-wordmark-text { color: var(--color-gold); }

.main-navigation { display: flex; align-items: center; gap: 1.5rem; position: relative; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; }
.main-navigation a {
    color: var(--color-white); font-family: var(--font-heading);
    font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px;
    position: relative;
}
.main-navigation a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--color-gold); transition: width .25s ease;
}
.main-navigation a:hover { color: var(--color-gold); }
.main-navigation a:hover::after { width: 100%; }

.bts-header-actions { display: flex; align-items: center; gap: 1rem; }
.language-switcher { display: flex; gap: .5rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.language-switcher img { width: 20px; height: auto; }
.bts-cart-link { display: inline-flex; align-items: center; gap: .25rem; color: var(--color-white); font-size: 1.2rem; }
.bts-cart-link:hover { color: var(--color-gold); }
.bts-cart-count {
    font-family: var(--font-body); font-size: .7rem; font-weight: 700;
    background: var(--color-bts-purple); color: #fff;
    border-radius: 50%; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
}

.menu-toggle { display: none; background: transparent; border: 0; color: var(--color-white); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ------------------------------------------------------------------ Hero */
.bts-hero {
    position: relative; min-height: 92vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(135,88,142,.55) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, #1a0f1f 0%, #000 70%);
}
.bts-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; z-index: 1; }
.bts-hero-overlay { position: relative; z-index: 2; padding: 2rem; max-width: 800px; }
.bts-hero-title {
    font-size: clamp(4.5rem, 20vw, 13rem); margin: 0; line-height: .85;
    letter-spacing: 6px;
    background: linear-gradient(180deg, #fff 0%, var(--color-bts-purple-light) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(135,88,142,.4);
}
.bts-hero-tagline { font-family: var(--font-body); font-size: clamp(1rem, 3vw, 1.4rem); margin: 1rem 0 2rem; color: var(--color-bts-purple-light); letter-spacing: .5px; }

/* ------------------------------------------------------------------ Sections */
.bts-section { padding: 5rem 0; }
.bts-section-dark { background: var(--color-surface-2); }
.bts-section-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 2.5rem;
    display: inline-block; padding-bottom: .4rem; position: relative;
}
.bts-section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60%; height: 3px; background: var(--color-gold); }

/* ------------------------------------------------------------------ Product / album grid */
.bts-product-grid, .albums-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.75rem;
}
.bts-product-card, .album-item {
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 1rem;
    display: flex; flex-direction: column; gap: .6rem;
    transition: border-color .3s ease, transform .25s ease, box-shadow .3s ease;
}
.bts-product-card:hover, .album-item:hover {
    border-color: var(--color-bts-purple); transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.bts-product-thumb img, .album-thumbnail img { border-radius: 5px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.bts-product-title { font-size: 1.05rem; margin: .25rem 0; }
.bts-product-title a, .album-item .entry-title a { color: var(--color-white); }
.bts-product-price, .release-date { color: var(--color-gold); font-weight: 700; }

.bts-hscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }

/* ------------------------------------------------------------------ Countdown */
.bts-countdown { text-align: center; margin-bottom: 3rem; }
.bts-countdown-label { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 3px; color: var(--color-bts-purple-light); margin-bottom: .5rem; }
.bts-countdown-clock { display: flex; gap: 1.25rem; justify-content: center; align-items: baseline; font-family: var(--font-heading); }
.bts-countdown-clock span { font-size: clamp(2.2rem, 7vw, 4rem); color: var(--color-gold); font-weight: 700; }
.bts-countdown-clock small { font-size: 1rem; opacity: .55; margin-left: -.6rem; }

/* ------------------------------------------------------------------ Video embed */
.bts-video-embed { position: relative; aspect-ratio: 16/9; width: 100%; margin: 1.5rem 0; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.bts-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bts-latest-mv .bts-section-title { display: block; }

/* ------------------------------------------------------------------ Members */
.bts-members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.75rem; text-align: center; }
.bts-member-portrait { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.bts-member-avatar {
    width: 130px; height: 130px; border-radius: 50%; overflow: hidden;
    border: 3px solid rgba(135,88,142,.5); background: #1a1a1a;
    transition: border-color .3s ease, transform .3s ease;
}
.bts-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bts-member-portrait:hover .bts-member-avatar { border-color: var(--color-gold); transform: scale(1.05); }
.bts-member-label { color: var(--color-white); text-transform: uppercase; font-family: var(--font-heading); font-size: .9rem; letter-spacing: 1.5px; }

/* ------------------------------------------------------------------ Member single + archive */
.member-profile .member-hero, .bts-album-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; margin: 2rem 0; }
.member-real-name { color: var(--color-bts-purple-light); margin: .25rem 0 0; font-family: var(--font-body); }
.member-thumbnail img { border-radius: 10px; }
.member-info p, .bts-album-meta p { margin: .35rem 0; }
.bts-member-solo-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bts-member-solo-links a { border: 1px solid var(--color-bts-purple); padding: .35rem .8rem; border-radius: 20px; font-size: .8rem; }

/* ------------------------------------------------------------------ Album single */
.bts-album-cover img { border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.bts-album-tracklist ol { padding-left: 1.25rem; }
.bts-album-tracklist li { padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.bts-album-audio audio { width: 100%; margin-top: .5rem; }

/* ------------------------------------------------------------------ Generic page / post content */
.bts-page, .site-main article { padding: 3rem 0; }
.bts-page-header { text-align: center; margin-bottom: 2.5rem; }
.bts-page-title, .page-title, .entry-title { font-size: clamp(2rem, 5vw, 3rem); }
.entry-content, .bts-prose { max-width: 800px; margin: 0 auto; font-size: 1.05rem; }
.entry-content h2, .bts-prose h2 { margin-top: 2.5rem; color: var(--color-bts-purple-light); }
.entry-content a, .bts-prose a { text-decoration: underline; }
.entry-content blockquote { border-left: 4px solid var(--color-gold); margin: 2rem 0; padding: .5rem 1.25rem; font-style: italic; opacity: .9; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content img { border-radius: 8px; margin: 1.5rem 0; }
.page-header { text-align: center; padding: 3rem 0 1rem; }

/* ------------------------------------------------------------------ Footer */
.site-footer { padding: 3.5rem 0 1.5rem; border-top: 1px solid rgba(135,88,142,.35); background: #060508; }
.bts-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.bts-footer-logo { font-size: 1.5rem; letter-spacing: 3px; }
.bts-footer-brand p { opacity: .7; max-width: 320px; }
.bts-footer-col h4 { font-size: 1rem; letter-spacing: 2px; color: var(--color-gold); margin-bottom: 1rem; }
.bts-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.bts-footer-col a { color: rgba(255,255,255,.8); font-size: .9rem; }
.bts-footer-col a:hover { color: var(--color-gold); }
.bts-footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; opacity: .55; }

/* ------------------------------------------------------------------ Social feed placeholder */
.bts-social-feed { text-align: center; }
.bts-social-handle { font-family: var(--font-heading); letter-spacing: 2px; color: var(--color-bts-purple-light); }

/* ------------------------------------------------------------------ Responsive */
@media (min-width: 768px) {
    .member-profile .member-hero { grid-template-columns: 340px 1fr; }
    .bts-album-hero { grid-template-columns: 400px 1fr; }
}

@media (max-width: 900px) {
    .menu-toggle { display: block; order: 3; }
    .main-navigation { gap: .75rem; }
    .main-navigation ul#primary-menu {
        display: none; position: absolute; top: calc(100% + 12px); right: 0;
        flex-direction: column; align-items: flex-start;
        background: rgba(8,6,10,.98); padding: 1.25rem 1.5rem; gap: 1.1rem;
        border: 1px solid rgba(135,88,142,.4); border-radius: 8px; min-width: 230px;
        box-shadow: 0 20px 50px rgba(0,0,0,.6);
    }
    .main-navigation.is-open ul#primary-menu { display: flex; }
}

@media (max-width: 480px) {
    .bts-product-grid, .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .bts-section { padding: 3.5rem 0; }
}
