/* ============================================================
   REEON – index.css
   ============================================================ */


/* ─── HERO ──────────────────────────────────────────────────── */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Hintergrundbild füllt gesamte Hero-Fläche */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(/assets/img/reeon-hero-bg.webp);
    background-position: center top;
    background-size: cover;
    opacity: 0;
    will-change: opacity;
    transition: opacity 2s ease;
}

.hero__bg.is-loaded {
    opacity: 1;
    filter: blur(0px)
}


/* Inhalt über dem Hintergrundbild */
.hero__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
}


/* ─── SECTION WRAPPER ───────────────────────────────────────── */

.section--featured {
    overflow: hidden;
    position: relative;
    padding-top: 140px;
    padding-bottom: 140px;
}

.featured {
    position: relative;
    isolation: isolate;
}


/* ============================================================
   FEATURED
   ============================================================ */


/* ─── BLURRED BACKGROUND ────────────────────────────────────── */

.featured__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.5);
    opacity: 0;
    filter: blur(0px) saturate(1);
    z-index: 0;
    transition: opacity 2s ease, filter 0.4s ease;
}
.featured__bg.is-loaded {
    filter: blur(40px) saturate(1.5);
    opacity: 0.8;
}
@media (max-width: 768px) {
    .featured__bg.is-loaded {
        filter: blur(20px) saturate(1.5);
    }
}

/* ─── INNER GRID ────────────────────────────────────────────── */

.featured__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: center;
    width: fit-content;
}


/* ─── COVER ─────────────────────────────────────────────────── */

.featured__cover-wrap {
    position: relative;
}

.featured__cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    /* border: 1px solid #ffffff12; */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
}

/* ── Featured Player ─────────────────────────────────────── */
.featured__player {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: var(--border-radius);
    transition: opacity 0.7s ease;
    -webkit-tap-highlight-color: transparent;
}
.featured__player.is-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .featured__cover-wrap.has-src:hover .featured__player { opacity: 1; }
}
.featured__player img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
    pointer-events: none;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Gradient-Border während Playback (::after auf dem Wrap) */
.featured__cover-wrap::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    z-index: -1;
    /* TODO background: linear-gradient(var(--angle), #ffffffcc, #ffffffcc, #ffffff05, #ffffff05); */
    background: linear-gradient(var(--angle), #ffffff, #ffffff66, #ffffff00, #ffffff00);
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.7s ease;
}
.featured__cover-wrap.is-playing::after,
.featured__cover-wrap.is-fading::after {
    animation: rotate 4s linear infinite;
}
.featured__cover-wrap.is-playing::after {
    opacity: 1;
}
.featured__cover-wrap.is-playing {
    transform: scale(1.02);
}

@keyframes rotate {
  to { --angle: 360deg; }
}


/* ─── CONTENT ───────────────────────────────────────────────── */

.featured__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured__track-title {
    position: relative;
    display: flex;
    align-items: center;
}

.featured__label {
    display: block;
    letter-spacing: 0.05em;
    line-height: var(--leading-tight);
    margin: 0 0 4px;
    padding: 0px 0 0 30px;
}
.featured__accent-line {
    position: absolute;
    left: 0;
    background: var(--color-accent-dynamic);
    width: 10px;
    height: 64%;
    margin-bottom: 5px;
}

.featured__track-info {
    display: flex;
    flex-direction: column;
}

.featured__trackname {
    line-height: 1;
    margin: 0;
}

.featured__artist {
    margin: 0;
}

.featured__links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-left: -4px;
    position: relative;
}

.featured__link-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}
.featured__link-icon--image {
    width: 30px;
    height: 30px;
    transition: opacity var(--transition-default)
}
.featured__link-icon.is-visible { pointer-events: auto; }
.featured__link-icon.anim-fade-up.is-visible:hover .featured__link-icon--image{ opacity: 0.5; }
.featured__link-icon--image  { display: block; }



/* ─── RESPONSIVE ────────────────────────────────────────────── */


@media (max-width: 1020px) {
    .featured__inner {
        grid-template-columns: 330px 1fr;
        gap: 50px;
    }
}
@media (max-width: 900px) {
    .featured__inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Flatten content wrapper so children can be reordered relative to the cover */
    .featured__content {
        display: contents;
    }

    .featured__label        { order: 1;}
    .featured__cover-wrap   { order: 2; max-width: 340px; width: 100%; margin: 0 auto; }
    .featured__track-info   { order: 3; min-width: 340px; }
    .featured__trackname    { text-align: center; }
    .featured__links        { order: 4; min-width: 340px; margin-top: 0; justify-content: center; }
    .featured__artist       { text-align: center; }
}

@media (max-width: 768px) {
    .featured__link-icon--image {
        width: 35px;
        height: 35px;
    }
}
@media (max-width: 500px) {
    .section--featured {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .featured__cover-wrap {
        width: 280px;
    }
    .featured__track-info { min-width: 280px; }
    .featured__links      { order: 4; min-width: 280px; margin-top: 0; }
}

/* ============================================================
   NEWS
   ============================================================ */


/* ── Row ── */
.news__row {
    display: grid;
    grid-template-columns: 34px 185px 1fr 0.3fr;
    align-items: center;
    gap: 40px;
    padding: 34px 20px;
    border: 1px solid var(--color-dark);
    position: relative;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
    transform: none;
    overflow: hidden;
}
/*
.news__row.is-visible {
    transform: none;
}
    */
.news__row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background .25s;
    pointer-events: none;
    z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
    .news__row:hover::before {
        background: rgba(255, 255, 255, 0.03);
    }
}
.news__row .textlink__cta {
    justify-self: end;
}


/* ── Number ── */
.news__num {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

/* ── Cover Wrap ── */
.news__cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Cover Thumbnail ── */
.news__cover {
    width: 180px;
    height: 180px;
    background: #111;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
}


/* ── Body / Text Block ── */
.news__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* ── Tag / Badge ── */
.news__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    align-self: flex-start;
}
.news__tag--dot {
    background: #00d4ff;
    width: 7px;
    height: 7px;
    margin-top: -1px;
    border-radius: 100%;
    box-shadow: 0 0 8px #00d4ff;
    animation: pulse 2s ease infinite;
}
.news__tag--live {
    padding: 4px 10px 4px 0;
}

.news__tag--global {
    border-left: 3px solid currentColor;
    padding: 0px 0 0px 10px;
}


/* ── Title ── */
.news__title {
    font-family: var(--font-display);
    font-weight: var(--weight-black);
    font-size: 30px;
    letter-spacing: -0.01em;
    line-height: var(--leading-tight);
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    margin: 0;
}

/* ── Description ── */
.news__desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: var(--leading-body);
    max-width: 680px;
}

.news__sep {
    color: #555;
}

@media (hover: hover) and (pointer: fine) {
    .news__row:hover .textlink__cta--arr {
        transform: translate(4px, -4px);
    }
}

/* ── Responsive ── */

@media (hover: hover) and (pointer: fine) {
    .news__row {
        cursor: pointer;
    }
}
@media (max-width: 900px) {
    .news__row .textlink__cta {
        grid-column: 3 / 4;
        justify-self: start;
        border-bottom: 1px solid #fff;
    }
    .news__row {
        grid-template-columns: 50px 185px 1fr;
    }
    /* MORE label fallback when no ctaLabel */
    .news__row .textlink__cta--icon::before {
        content: 'LISTEN';
    }
}

@media (max-width: 645px) {
    .news__row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px 20px;
        padding: 0 0 16px 0;
    }

    /* Flatten body children into article grid */
    .news__body {
        display: contents;
    }

    /* Row 1: num + tag */
    .news__num {
        display: none;
    }
    .news__tag {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        align-self: center;
        position: relative;
        z-index: 1;
        margin: 5px 0 -12px 16px;
    }

    /* Row 2: full-width cover hero */
    .news__cover-wrap {
        grid-column: 1 / -1;
        grid-row: 1;
        position: relative;
        overflow: hidden;
        transform: translateZ(0);
        height: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff1c;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    .news__cover-wrap::before {
        content: '';
        position: absolute;
        inset: -55px;
        background-image: var(--news__cover-img);
        background-size: cover;
        background-position: center;
        filter: blur(27px);
        opacity: 0.75;
        z-index: 0;
    }
    .news__cover {
        position: relative;
        z-index: 1;
        width: 200px;
        height: 200px;
        flex-shrink: 0;
    }

    /* Rows 3+: auto-placed, full width */
    .news__title,
    .tag,
    .news__desc,
    .news__row .textlink__cta {
        margin-left: 16px;
        grid-column: 1 / -1;
        justify-self: start;
        position: relative;
        z-index: 1;
    }
    .tag {
        margin-top: -8px;
    }
    .news__title { font-size: 23px; }
    .news__row .textlink__cta { font-size: 16px; margin-top: 10px; }
    .news__row .textlink__cta--arr { width: 16px; }

}