/* =============================================
   Yena Accordion Widget - Frontend CSS
   ============================================= */

.yena-postcard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1%;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.yena-postcard-item {
    position: relative;
    height: 65vh;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: flex-basis 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-radius 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Pasif Durum */
.yena-postcard-item:not(.active) {
    flex-basis: 7%;
    border-radius: 15px;
}

/* Aktif Durum */
.yena-postcard-item.active {
    flex-basis: 68%;
    border-radius: 15px;
}

/* Overlay Kapsayıcı */
.yena-item-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to top,
        rgba(0, 22, 61, 0.75) 40%,
        transparent 100%
    );
}

/* Pasif Kart İçeriği (Dikey Başlık) */
.yena-inactive-content {
    transition: opacity 0.5s ease;
}

.yena-inactive-content h5 {
    color: #fff;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 0;
    padding: 0;
}

/* Aktif Kart İçeriği */
.yena-active-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}

/* Geçiş Animasyonları */
.yena-postcard-item.active .yena-inactive-content {
    opacity: 0;
}

.yena-postcard-item.active .yena-active-content {
    opacity: 1;
    transform: translateY(0);
}

/* Başlık */
.yena-text-content h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.75rem;
}

/* Açıklama */
.yena-text-content p {
    margin: 0;
    max-width: 350px;
    font-size: 1rem;
    color: #fff;
}

/* CTA Butonu */
.yena-cta-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ff7f59;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.yena-cta-button:hover {
    background-color: #c44e2b;
    transform: scale(1.1);
}

.yena-cta-button svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

/* =============================================
   Tablet ve Mobil Responsive
   ============================================= */
@media (max-width: 900px) {
    .yena-postcard-container {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .yena-postcard-item,
    .yena-postcard-item.active,
    .yena-postcard-item:not(.active) {
        width: 90%;
        max-width: 400px;
        height: 280px;
        flex-basis: auto !important;
        cursor: default;
        border-radius: 15px;
    }

    /* Mobil'de dikey başlığı gizle */
    .yena-inactive-content {
        display: none;
    }

    /* Kart içeriğini her zaman görünür yap */
    .yena-postcard-item .yena-active-content {
        opacity: 1;
        transform: translateY(0);
        transition: none;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .yena-active-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .yena-cta-button {
        margin-top: 16px;
    }

    .yena-text-content h3 {
        font-size: 1.5rem;
    }

    .yena-text-content p {
        font-size: 0.9rem;
        max-width: 100%;
    }
}
