/* ==========================================================
   _05-COMPONENTS.CSS
   ========================================================== */

/* Hero-text (highlight-block) */
.hero-style-text {
    position: absolute;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
}

/* Reveal-animation — JS lägger till klassen hero-text-revealed */
@keyframes heroFrontReveal {
    from { clip-path: inset(0 0 100% 0); opacity: 0; }
    to   { clip-path: inset(0 0 0% 0);   opacity: 1; }
}
.hero-style-text.hero-text-revealed {
    visibility: visible !important;
    animation: heroFrontReveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
}

.hero-style-text .hero-text-content {
    display: inline;
    background-color: transparent;                 /* ingen vit bakgrund */
    color: #fff !important;                        /* vit text */
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);     /* subtil skugga för läsbarhet */
    padding: 0;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: var(--text-hero);
    line-height: 1.15;
    letter-spacing: -0.02em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    overflow-wrap: break-word;
}

/* Dölj scroll-pilen som JS skapar — vi använder .hero-down-arrow istället */
.hero-style-text .scroll-down-arrow { display: none !important; }
.scroll-down-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: transform var(--t-base);
}
.scroll-down-arrow:hover { transform: translateY(3px); }

/* Länk-lista (hem + artists) */
.minimal-list-section,
.intro-actions-list { width: 100%; }
.minimal-list-item,
.intro-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--block-gap) 0;
    text-decoration: none !important;
    color: var(--color-text) !important;
    border-bottom: 2px solid var(--color-text);
    transition: padding var(--t-base);
}
.minimal-list-item:first-child,
.intro-list-item:first-child { border-top: 2px solid var(--color-text); }
.minimal-list-item .list-text,
.intro-list-item .link-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.list-arrow, .intro-list-item .list-arrow {
    width: clamp(30px, 4vw, 50px);
    height: auto;
    transition: transform var(--t-base);
    flex-shrink: 0;
}
.minimal-list-item:hover,
.intro-list-item:hover { padding-left: 15px; padding-right: 15px; }
.minimal-list-item:hover .list-arrow,
.intro-list-item:hover .list-arrow { transform: translateX(10px); }

/* Portfolio-laddare */
.portfolio-loader {
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.portfolio-item.fade-in-item { animation: portfolioFadeIn 0.8s ease forwards; opacity: 0; }
@keyframes portfolioFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Fristående nedåtpil — frontpage + projektheroes ── */
.hero-down-arrow {
    position: absolute;
    z-index: 20;
    bottom: clamp(32px, 4vw, 64px);
    left: var(--padding-x);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform var(--t-base), opacity var(--t-base);
    opacity: 0.85;
}
.hero-down-arrow:hover {
    transform: translateY(6px);
    opacity: 1;
}
.hero-down-arrow svg {
    width: clamp(28px, 3vw, 44px);
    height: auto;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Projekt-hero: pilen är vit, placeras längst ner */
.single-project-hero .hero-down-arrow {
    color: #fff;
}