/*
 * sections.css — Shatat Music Theme
 * Covers: About, Listen/Releases, Player Bar, Gallery,
 *         Press, Newsletter, page-about templates,
 *         member cards, tabs, data-reveal animations
 */

/* ═══════════════════════════════════════
   SECTION SPACING HELPERS
═══════════════════════════════════════ */
.section-pad       { padding-block: var(--section-pad); }
.section-pad--sm   { padding-block: 4rem; }
.section-pad--lg   { padding-block: 9rem; }

/* ═══════════════════════════════════════
   ABOUT STORY  (#about / .about-story)
═══════════════════════════════════════ */
#about,
.about-story {
    background: var(--c-parchment);
}

.about-story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ── Visual / Image frame ── */
.about-story__visual { position: relative; }

.about-story__img-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--c-sapphire-mid);
}

/* Offset border decoration */
.about-story__img-frame::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border: 1px solid var(--c-border);
    z-index: -1;
    pointer-events: none;
}

.about-story__img-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.about-story__img-frame:hover img { transform: scale(1.03); }

/* Placeholder shown before real photo is uploaded */
.about-story__img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--c-sapphire) 0%, var(--c-sapphire-mid) 100%);
}

.about-story__img-placeholder span {
    font-family: var(--font-arabic);
    font-size: 52px;
    color: rgba(196, 146, 58, 0.35);
}

/* Year badge pinned to bottom-right of frame */
.about-year-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 90px; height: 90px;
    background: var(--c-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.about-year-badge strong {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.about-year-badge small {
    font-size: 8px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* ── Text column ── */
.about-story__quote {
    font-family: var(--font-arabic);
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--c-gold);
    direction: rtl;
    text-align: right;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    border-right: 3px solid rgba(196, 146, 58, 0.3);
    padding-right: 1rem;
}

.about-story__text .entry-content p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--c-ink-muted);
    margin-bottom: 1rem;
}

/* ── Instrument tags row ── */
.instruments-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
}

/* ═══════════════════════════════════════
   LISTEN / RELEASES  (#listen)
═══════════════════════════════════════ */
#listen {
    background: var(--c-sapphire);
    padding-block: var(--section-pad);
    position: relative;
    overflow: hidden;
}

#listen::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.028;
    background-image:
        repeating-linear-gradient(45deg,  var(--c-gold) 0, var(--c-gold) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(-45deg, var(--c-gold) 0, var(--c-gold) 1px, transparent 1px, transparent 50px);
    background-size: 50px 50px;
    pointer-events: none;
}

.listen-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* ── Release card ── */
.release-card { cursor: pointer; }

.release-cover {
    aspect-ratio: 1 / 1;
    background: var(--c-sapphire-mid);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.25rem;
}

.release-cover-art {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.release-cover-art .cover-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.55s var(--ease);
}

.release-card:hover .cover-bg { transform: scale(1.04); }

/* Cover overlay with play button */
.cover-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 36, 62, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    z-index: 3;
}

.release-card:hover .cover-play-overlay { opacity: 1; }

.play-icon {
    width: 54px; height: 54px;
    border: 2px solid var(--c-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration) var(--ease);
}

.play-icon svg { fill: var(--c-gold); margin-left: 3px; width: 20px; height: 20px; }
.play-icon:hover { background: rgba(196, 146, 58, 0.15); }

/* Release metadata */
.release-label {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 5px;
    font-weight: 500;
}

.release-title-ar {
    font-family: var(--font-arabic);
    font-size: 20px;
    font-weight: 500;
    color: var(--c-parchment);
    direction: rtl;
    margin-bottom: 4px;
    line-height: 1.4;
}

.release-title-de {
    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;
    color: rgba(250, 246, 237, 0.42);
    margin-bottom: 1rem;
}

.release-platforms {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(250, 246, 237, 0.5);
    border: 1px solid rgba(250, 246, 237, 0.1);
    padding: 4px 10px;
    transition: var(--duration) var(--ease);
    font-weight: 500;
    text-decoration: none;
}

.platform-pill:hover {
    border-color: var(--c-gold);
    color: var(--c-gold-pale);
}

.platform-pill svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Badge on cover */
.vinyl-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(22, 36, 62, 0.88);
    border: 1px solid var(--c-border);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--c-gold);
    padding: 4px 8px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 4;
}

/* ═══════════════════════════════════════
   AUDIO PLAYER BAR
═══════════════════════════════════════ */
#player-bar {
    background: var(--c-sapphire-light);
    border-top: 1px solid rgba(196, 146, 58, 0.18);
    border-bottom: 1px solid rgba(196, 146, 58, 0.18);
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.player-track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 0 0 220px;
}

.player-track-ar {
    font-family: var(--font-arabic);
    font-size: 14px;
    color: var(--c-parchment);
    direction: rtl;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.player-track-en {
    font-size: 10px;
    color: var(--c-ink-faint);
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.pctrl {
    background: none; border: none;
    color: rgba(250, 246, 237, 0.45);
    transition: color var(--duration) var(--ease);
    padding: 4px;
    display: flex; align-items: center;
    cursor: pointer;
}

.pctrl:hover { color: var(--c-gold-pale); }

.pctrl.play-pause {
    width: 38px; height: 38px;
    border: 1px solid rgba(196, 146, 58, 0.32);
    border-radius: 50%;
    color: var(--c-parchment);
    justify-content: center;
}

.pctrl.play-pause:hover {
    border-color: var(--c-gold);
    background: rgba(196, 146, 58, 0.1);
}

.player-progress {
    flex: 1;
    height: 2px;
    background: rgba(250, 246, 237, 0.1);
    border-radius: 1px;
    position: relative;
    cursor: pointer;
}

.player-progress-fill {
    height: 100%;
    background: var(--c-gold);
    width: 38%;
    border-radius: 1px;
    position: relative;
    transition: width 0.4s linear;
}

.player-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px; top: -3px;
    width: 8px; height: 8px;
    background: var(--c-gold);
    border-radius: 50%;
}

.player-time {
    font-size: 11px;
    color: rgba(250, 246, 237, 0.38);
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.player-quality {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--c-gold);
    border: 1px solid var(--c-border);
    padding: 3px 7px;
    text-transform: uppercase;
    font-weight: 500;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   GALLERY
═══════════════════════════════════════ */
#gallery { background: var(--c-sapphire); }

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 6px;
    margin-top: 3rem;
}

.gallery-cell {
    background: var(--c-sapphire-mid);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-cell:first-child { grid-row: 1 / 3; }

.gallery-cell-inner {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease);
}

.gallery-cell:hover .gallery-cell-inner { transform: scale(1.05); }

.gallery-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 36, 62, 0.28);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.gallery-cell:hover::after { opacity: 1; }

.gallery-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder-text {
    font-family: var(--font-arabic);
    font-size: 28px;
    color: rgba(196, 146, 58, 0.28);
    direction: rtl;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   PRESS SECTION
═══════════════════════════════════════ */
#press { background: var(--c-parchment-warm); }

.press-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    opacity: 0.4;
    filter: sepia(0.5);
}

.press-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: italic;
    color: var(--c-sapphire);
    letter-spacing: 0.08em;
}

.press-quote-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.press-quote-card {
    background: var(--c-parchment);
    border: 1px solid var(--c-parchment-dark);
    padding: 2rem;
}

.press-quote-mark {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 0.8;
    color: var(--c-gold);
    opacity: 0.45;
    margin-bottom: 0.5rem;
    display: block;
}

.press-quote-text {
    font-family: var(--font-display);
    font-size: 17px;
    font-style: italic;
    line-height: 1.65;
    color: var(--c-ink-soft);
    margin-bottom: 1rem;
}

.press-quote-source {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-ink-faint);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════ */
.newsletter-section {
    background: var(--c-sapphire-mid);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        repeating-linear-gradient(0deg,  var(--c-gold) 0, var(--c-gold) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(90deg, var(--c-gold) 0, var(--c-gold) 1px, transparent 1px, transparent 80px);
    pointer-events: none;
}

.newsletter__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.newsletter__sub {
    font-family: var(--font-arabic);
    font-size: 15px;
    color: rgba(240, 216, 152, 0.55);
    direction: rtl;
    margin-bottom: 2rem;
}

.newsletter__form {
    display: flex;
    max-width: 440px;
    margin: 0 auto 0.75rem;
}

.newsletter__input {
    flex: 1;
    background: rgba(250, 246, 237, 0.06);
    border: 1px solid rgba(196, 146, 58, 0.22);
    border-right: none;
    color: var(--c-parchment);
    font-size: 13px;
    font-family: var(--font-ui);
    font-weight: 300;
    padding: 13px 18px;
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.newsletter__input::placeholder { color: rgba(250, 246, 237, 0.28); }
.newsletter__input:focus        { border-color: rgba(196, 146, 58, 0.55); }

.newsletter__submit {
    font-size: 10px;
    padding: 13px 22px;
    letter-spacing: 0.22em;
    flex-shrink: 0;
}

.newsletter__gdpr {
    font-size: 11px;
    color: rgba(250, 246, 237, 0.3);
    line-height: 1.6;
}

.newsletter__gdpr a {
    color: rgba(240, 216, 152, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ═══════════════════════════════════════
   ABOUT PAGE — BAND MEMBERS
═══════════════════════════════════════ */
.band-members { padding-block: var(--section-pad); }

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.member-card { text-align: center; }

.member-card__photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--c-sapphire-mid);
}

.member-card__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}

.member-card:hover .member-card__photo img { transform: scale(1.04); }

.member-card__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    color: rgba(196, 146, 58, 0.4);
    background: linear-gradient(135deg, var(--c-sapphire) 0%, var(--c-sapphire-mid) 100%);
}

.member-card__name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--c-sapphire);
    margin-bottom: 4px;
}

.member-card__role {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-weight: 500;
    margin-bottom: 4px;
}

.member-card__role-ar {
    font-family: var(--font-arabic);
    font-size: 13px;
    color: var(--c-ink-muted);
    direction: rtl;
    margin-bottom: 0.75rem;
}

.member-card__bio {
    font-size: 13px;
    line-height: 1.75;
    color: var(--c-ink-muted);
}

/* ═══════════════════════════════════════
   TABS (concert archive: upcoming/past)
═══════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--c-parchment-dark);
    margin-bottom: 2.5rem;
}

.tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--c-ink-muted);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.tab:hover { color: var(--c-sapphire); }

.tab--active {
    color: var(--c-sapphire);
    border-bottom-color: var(--c-gold);
}

.tab__count {
    font-size: 10px;
    background: var(--c-parchment-dark);
    color: var(--c-ink-muted);
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: 0;
    min-width: 22px;
    text-align: center;
}

.tab--active .tab__count {
    background: var(--c-gold);
    color: #fff;
}

.tab-panel { display: block; }
.tab-panel[hidden] { display: none; }

/* ═══════════════════════════════════════
   SCROLL-REVEAL ANIMATIONS
═══════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   CONTACT / PRESSKIT CTA BLOCKS
═══════════════════════════════════════ */
.contact-cta  { background: var(--c-parchment); }
.presskit-cta { background: var(--c-sapphire); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-story__grid  { grid-template-columns: 1fr; gap: 3rem; }
    .releases-grid      { grid-template-columns: repeat(2, 1fr); }
    .press-quote-row    { grid-template-columns: 1fr; }
    .members-grid       { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid       { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-cell:first-child { grid-row: auto; }
}

@media (max-width: 768px) {
    .releases-grid  { grid-template-columns: 1fr; }
    .members-grid   { grid-template-columns: 1fr 1fr; }
    .gallery-grid   { grid-template-columns: 1fr 1fr; }
    #player-bar     { flex-wrap: wrap; height: auto; padding: 1rem 1.25rem; gap: 1rem; }
    .player-track-info { flex: 0 0 100%; }
    .player-progress   { order: 10; flex: 0 0 100%; }

    .newsletter__form {
        flex-direction: column;
    }
    .newsletter__input {
        border-right: 1px solid rgba(196, 146, 58, 0.22);
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .members-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .tabs         { flex-direction: column; }
}
