/* =========================
   WP Hero Slider - Frontend
   ========================= */

.wphs-slider {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.wphs-swiper {
    width: 100%;
    height: var(--wphs-h-desktop, 600px);
}

@media (max-width: 767px) {
    .wphs-swiper {
        height: var(--wphs-h-mobile, 500px);
    }
}

.wphs-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color, #C8181F);
    color: var(--text-color, #fff);
    font-family: var(--font-family, inherit);
    box-sizing: border-box;
    display: flex;
}

/* Arkaplan görsel katmanı */
.wphs-slide-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg-desktop, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

@media (max-width: 767px) {
    .wphs-slide-bg {
        background-image: var(--bg-mobile, var(--bg-desktop, none));
    }
}

/* Overlay katmanı */
.wphs-slide-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--bg-overlay, transparent);
    z-index: 2;
}

/* İçerik kapsayıcı */
.wphs-slide-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
    box-sizing: border-box;
    display: flex;
}

/* Hizalama - Masaüstü */
@media (min-width: 768px) {
    .wphs-align-d-left-top      .wphs-slide-inner { justify-content: flex-start; align-items: flex-start; }
    .wphs-align-d-left-middle   .wphs-slide-inner { justify-content: flex-start; align-items: center; }
    .wphs-align-d-left-bottom   .wphs-slide-inner { justify-content: flex-start; align-items: flex-end; }
    .wphs-align-d-center-top    .wphs-slide-inner { justify-content: center;     align-items: flex-start; }
    .wphs-align-d-center-middle .wphs-slide-inner { justify-content: center;     align-items: center; }
    .wphs-align-d-center-bottom .wphs-slide-inner { justify-content: center;     align-items: flex-end; }
    .wphs-align-d-right-top     .wphs-slide-inner { justify-content: flex-end;   align-items: flex-start; }
    .wphs-align-d-right-middle  .wphs-slide-inner { justify-content: flex-end;   align-items: center; }
    .wphs-align-d-right-bottom  .wphs-slide-inner { justify-content: flex-end;   align-items: flex-end; }
}

/* Hizalama - Mobil */
@media (max-width: 767px) {
    .wphs-align-m-left-top      .wphs-slide-inner { justify-content: flex-start; align-items: flex-start; }
    .wphs-align-m-left-middle   .wphs-slide-inner { justify-content: flex-start; align-items: center; }
    .wphs-align-m-left-bottom   .wphs-slide-inner { justify-content: flex-start; align-items: flex-end; }
    .wphs-align-m-center-top    .wphs-slide-inner { justify-content: center;     align-items: flex-start; }
    .wphs-align-m-center-middle .wphs-slide-inner { justify-content: center;     align-items: center; }
    .wphs-align-m-center-bottom .wphs-slide-inner { justify-content: center;     align-items: flex-end; }
    .wphs-align-m-right-top     .wphs-slide-inner { justify-content: flex-end;   align-items: flex-start; }
    .wphs-align-m-right-middle  .wphs-slide-inner { justify-content: flex-end;   align-items: center; }
    .wphs-align-m-right-bottom  .wphs-slide-inner { justify-content: flex-end;   align-items: flex-end; }
}

/* Metin kutusu - tüm metin içeriklerini saran konteyner */
.wphs-text-box {
    background-color: var(--text-box-bg, transparent);
    padding: var(--text-box-padding, 0);
    margin: var(--text-box-margin, 0);
    border-radius: var(--text-box-radius, 0);
    max-width: var(--text-box-maxw, 500px);
    display: flex;
    flex-direction: column;
}

/* Metin hizalama (text-align) kutu içine de yansır */
.wphs-align-d-left-top   .wphs-text-box,
.wphs-align-d-left-middle .wphs-text-box,
.wphs-align-d-left-bottom .wphs-text-box { text-align: left; }

.wphs-align-d-center-top   .wphs-text-box,
.wphs-align-d-center-middle .wphs-text-box,
.wphs-align-d-center-bottom .wphs-text-box { text-align: center; }

.wphs-align-d-right-top   .wphs-text-box,
.wphs-align-d-right-middle .wphs-text-box,
.wphs-align-d-right-bottom .wphs-text-box { text-align: right; }

@media (max-width: 767px) {
    .wphs-align-m-left-top   .wphs-text-box,
    .wphs-align-m-left-middle .wphs-text-box,
    .wphs-align-m-left-bottom .wphs-text-box { text-align: left; }

    .wphs-align-m-center-top   .wphs-text-box,
    .wphs-align-m-center-middle .wphs-text-box,
    .wphs-align-m-center-bottom .wphs-text-box { text-align: center; }

    .wphs-align-m-right-top   .wphs-text-box,
    .wphs-align-m-right-middle .wphs-text-box,
    .wphs-align-m-right-bottom .wphs-text-box { text-align: right; }
}

/* Metin öğeleri */
.wphs-overline {
    font-size: var(--overline-size-d, 14px);
    font-weight: 500;
    letter-spacing: var(--overline-letter, 2px);
    text-transform: uppercase;
    color: inherit;
    opacity: 0.92;
    margin: 0 0 18px;
    line-height: 1.3;
}

.wphs-title {
    font-size: var(--title-size-d, 48px);
    font-weight: var(--title-weight, 700);
    line-height: 1.1;
    margin: 0 0 18px;
    color: inherit;
    letter-spacing: -0.5px;
    word-wrap: break-word;
}

.wphs-description {
    font-size: var(--desc-size-d, 16px);
    line-height: 1.5;
    margin: 0 0 22px;
    color: inherit;
    opacity: 0.95;
}

.wphs-description p:last-child { margin-bottom: 0; }
.wphs-description p:first-child { margin-top: 0; }

/* Buton */
.wphs-button {
    display: inline-block;
    background-color: var(--button-bg, #fff);
    color: var(--button-color, #C8181F) !important;
    padding: var(--button-padding, 12px 24px);
    border: var(--button-border, none);
    border-radius: var(--button-radius, 2px);
    text-decoration: none !important;
    font-weight: 500;
    letter-spacing: var(--button-letter, 1.5px);
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    align-self: flex-start;
}

.wphs-align-d-center-top   .wphs-button,
.wphs-align-d-center-middle .wphs-button,
.wphs-align-d-center-bottom .wphs-button { align-self: center; }

.wphs-align-d-right-top   .wphs-button,
.wphs-align-d-right-middle .wphs-button,
.wphs-align-d-right-bottom .wphs-button { align-self: flex-end; }

@media (max-width: 767px) {
    .wphs-align-m-center-top   .wphs-button,
    .wphs-align-m-center-middle .wphs-button,
    .wphs-align-m-center-bottom .wphs-button { align-self: center; }

    .wphs-align-m-right-top   .wphs-button,
    .wphs-align-m-right-middle .wphs-button,
    .wphs-align-m-right-bottom .wphs-button { align-self: flex-end; }

    .wphs-align-m-left-top   .wphs-button,
    .wphs-align-m-left-middle .wphs-button,
    .wphs-align-m-left-bottom .wphs-button { align-self: flex-start; }
}

.wphs-button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* Mobil tipografi */
@media (max-width: 767px) {
    .wphs-slide-inner { padding: 16px 20px; }

    .wphs-overline    { font-size: var(--overline-size-m, 10px); margin-bottom: 10px; }
    .wphs-title       { font-size: var(--title-size-m, 22px); margin-bottom: 10px; line-height: 1.15; }
    .wphs-description { font-size: var(--desc-size-m, 13px); margin-bottom: 14px; }

    .wphs-button { font-size: 11px; padding: 10px 18px; }

    .wphs-text-box {
        max-width: 100%;
    }
}

/* Mobilde gizle */
@media (max-width: 767px) {
    .wphs-slide.wphs-hide-mobile { display: none !important; }
}

/* Swiper özelleştirme */
.wphs-swiper .swiper-pagination {
    bottom: 16px;
}

.wphs-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.2s;
}

.wphs-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

.wphs-swiper .wphs-arrow {
    color: #fff;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    transition: background 0.2s;
}
.wphs-swiper .wphs-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}
.wphs-swiper .wphs-arrow::after {
    font-size: 18px;
    font-weight: 700;
}
.wphs-swiper .wphs-arrow-prev { left: 16px; }
.wphs-swiper .wphs-arrow-next { right: 16px; }

@media (max-width: 767px) {
    .wphs-swiper .wphs-arrow {
        width: 36px;
        height: 36px;
    }
    .wphs-swiper .wphs-arrow-prev { left: 8px; }
    .wphs-swiper .wphs-arrow-next { right: 8px; }
    .wphs-swiper .wphs-arrow::after { font-size: 14px; }
}
