/* Anasayfa duyuru slider'ı, anasayfa duyurular bölümü ve Tüm Duyurular sayfası.
   Kartların kendisi ortak destangraphic-cards.css dosyasında.
   Renkler colors.css :root değişkenlerinden gelir. */

/* Geçiş eğrileri: kartlar sitedeki kartlarla aynı (easeOutCubic); görsel yakınlaşması daha yavaş ve düz */
.home-slider {
    --an-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
    --an-ease-slow: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* görsel yakınlaşması: baştan sona eşit yumuşaklıkta */
}

/* ===== Slider =====
   Geniş sahnede duyurunun kapak görseli (çift ince çerçeveli), iki yanda halkalı oklar,
   altta ortada sahneye taşan yazı kutusu. Slaytlar üst üste durur; aktif olan yumuşakça belirir, yazı ardından gelir. */
.home-slider {
    margin-bottom: 8px;
}

.hs-stage {
    position: relative;
    height: 600px;
    touch-action: pan-y; /* yandaki kutularla aynı hizada; oklar görselin üzerinde */
}

.hs-slide {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--base-text);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1s var(--an-ease), visibility 0s linear 1s;
}

.hs-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 1s var(--an-ease), visibility 0s linear 0s;
}

/* Sahne */
.hs-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 12px;
    background-color: var(--base-color);
}

.hs-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    /* dark-mode.css tüm görsellerde "transition: none !important" kullanıyor; yavaş yakınlaşma için aşılıyor */
    transition: transform 8s linear !important;
}

.hs-slide.is-active .hs-bg {
    transform: scale(1);
}

.hs-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--slider-shade), transparent 55%);
}

.hs-frame {
    position: absolute;
    inset: 12px;
    z-index: 1;
    border: 1px solid var(--main-color-line);
    border-radius: 6px;
    pointer-events: none;
}

.hs-frame::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--main-color-line);
    border-radius: 4px;
    opacity: 0.5;
}

/* Yazı kutusu */
.hs-caption {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(720px, 62%);
    padding: 34px 34px 22px;
    border: 1px solid var(--main-color-line);
    border-radius: 6px;
    background-color: var(--base-color);
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 22px);
    transition: opacity 0.9s var(--an-ease), transform 0.9s var(--an-ease);
}

.hs-slide.is-active .hs-caption {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.4s;
}

.hs-badge {
    position: absolute;
    top: -24px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--main-color-line);
    border-right-color: transparent;
    border-bottom-color: transparent;
    background-color: var(--base-color);
    transform: translateX(-50%) rotate(45deg);
}

.hs-badge i {
    font-size: 20px;
    color: var(--main-color);
    transform: rotate(-45deg);
}

.hs-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
}

.hs-side {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--light-text);
}

.hs-side:first-child {
    color: var(--main-color);
}

.hs-side:first-child::after {
    content: "·";
    margin-left: 14px;
    color: var(--light-text);
}

.hs-side:last-child::before {
    content: "·";
    margin-right: 14px;
    color: var(--light-text);
}

.hs-title {
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--base-text);
    transition: color 0.6s var(--an-ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-slide:hover .hs-title {
    color: var(--main-color);
}

.hs-rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: 14px 0;
    background-color: var(--main-color-line);
}

.hs-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--light-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--main-color);
}

.hs-more i {
    transition: transform 0.6s var(--an-ease);
}

.hs-slide:hover .hs-more i {
    transform: translateX(5px);
}

/* Oklar: koyu daire + iki ince halka */
.hs-arrow {
    position: absolute;
    top: 250px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--line-color);
    border-radius: 50%;
    background-color: var(--bg);
    color: var(--main-color);
    font-size: 20px;
    transform: translateY(-50%);
    transition: background-color 0.5s var(--an-ease), color 0.5s var(--an-ease), border-color 0.5s var(--an-ease);
}

.hs-arrow-prev {
    left: 34px;
}

.hs-arrow-next {
    right: 34px;
}

.hs-arrow::before,
.hs-arrow::after {
    content: "";
    position: absolute;
    border: 1px solid var(--main-color-line);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.6s var(--an-ease), opacity 0.6s var(--an-ease);
}

.hs-arrow::before {
    inset: -8px;
}

.hs-arrow::after {
    inset: -15px;
    opacity: 0.45;
}

.hs-arrow:hover {
    border-color: var(--main-color);
    background-color: var(--main-color);
    color: var(--on-main);
}

.hs-arrow:hover::before {
    transform: scale(1.08);
}

.hs-arrow:hover::after {
    transform: scale(1.12);
    opacity: 0.8;
}

/* Noktalar */
.hs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hs-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid var(--main-color-line);
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.6s var(--an-ease), border-color 0.6s var(--an-ease), transform 0.6s var(--an-ease);
}

.hs-dot:hover {
    border-color: var(--main-color);
}

.hs-dot.is-active {
    border-color: var(--main-color);
    background-color: var(--main-color);
    transform: scale(1.15);
}

/* ===== Anasayfa duyurular bölümü ===== */
.home-announcements {
    margin-top: 8px;
}

/* Tüm Duyurular sayfası: boş liste ve sayfalama */
.an-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--light-text);
}

.an-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.an-pagination a,
.an-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    background-color: var(--base-color);
    color: var(--base-text);
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}

.an-pagination a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.an-pagination .is-current {
    border-color: var(--main-color);
    background-color: var(--main-color);
    color: var(--on-main);
}

@media (max-width: 1199px) {
    .hs-stage {
        height: 520px;
    }

    .hs-scene {
        height: 420px;
    }

    .hs-arrow {
        top: 210px;
    }

    .hs-caption {
        width: min(640px, 70%);
    }

    .hs-title {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .hs-caption {
        width: 82%;
    }
}

@media (max-width: 767px) {
    .hs-stage {
        height: 470px;
    }

    .hs-scene {
        height: 290px;
    }

    .hs-caption {
        width: calc(100% - 24px);
        padding: 30px 16px 16px;
    }

    .hs-side {
        display: none;
    }

    .hs-title {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .hs-arrow {
        top: 145px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hs-arrow-prev {
        left: 10px;
    }

    .hs-arrow-next {
        right: 10px;
    }

    .hs-arrow::after {
        display: none;
    }
}


