/**
 * Molecule: Section Header
 *
 * 2 varyant: with-arrows (carousel nav), with-arrow (tek link ok).
 *
 * Figma değerleri:
 *   Title: Scala Pro Regular, 18px/27px, uppercase
 *   Arrow SVG: 40×7px (uzun yatay ok)
 *   Arrow hit area: 40×20px
 *   Arrows gap: 16px
 *
 * @package Saha
 */

/* ----------------------------------------
   Base
   ---------------------------------------- */

.saha-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.saha-section-header__title {
    font-family: var(--saha-font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--saha-color-text-primary);
    margin: 0;
    padding: 0;
}

/* ----------------------------------------
   Arrow (ortak)
   ---------------------------------------- */

.saha-section-header__arrow,
.saha-section-header__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 20px;
    color: var(--saha-color-text-primary);
    transition: opacity 0.2s ease;
}

.saha-section-header__arrow {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.saha-section-header__link {
    text-decoration: none;
}

.saha-section-header__arrow:hover,
.saha-section-header__link:hover {
    opacity: 0.6;
}

.saha-section-header__arrow:focus-visible,
.saha-section-header__link:focus-visible {
    outline: 2px solid var(--saha-color-text-primary);
    outline-offset: 2px;
}

/* Arrow SVG boyutu */
.saha-section-header__arrow .saha-icon,
.saha-section-header__link .saha-icon {
    width: 40px;
    height: 7px;
}

/* ----------------------------------------
   Variant: with-arrows
   ---------------------------------------- */

.saha-section-header--with-arrows {
    align-items: flex-end;
}

.saha-section-header__arrows {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Prev ok: 180° döndür */
.saha-section-header__arrow--prev {
    transform: rotate(180deg);
}

/* Disabled state (JS toggle) */
.saha-section-header__arrow[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ----------------------------------------
   Variant: with-arrow
   ---------------------------------------- */

.saha-section-header--with-arrow {
    align-items: center;
}
