/* Basic reset sadece bu kartlar için */
.card__collection,
.card__collection *,
.card__collection *::before,
.card__collection *::after {
    box-sizing: border-box;
}

/* Her ihtimale karşı */
.img-responsive {
    display: block;
    max-width: 100%;
}

/* === KART CONTAINER === */
.card__collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 1rem 0;
    /* Arkaplanı section’dan gelsin diye transparan bıraktım */
}

/* === ORTAK KART STİLİ === */
.card__collection .cards {
    position: relative;
    width: min(100%, 320px);           /* responsive: max 320px */
    height: 430px;                     /* dikey, uzun kart */
    border-radius: 18px;
    overflow: hidden;
    background-color: #020617;         /* çok koyu lacivert/siyah (tailwind slate-950 vari) */
    cursor: pointer;
    transform: translateY(0);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    border: 1px solid rgba(148, 163, 184, 0.35); /* slate-400/30 */
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

/* Hover’da kart biraz yükselsin ve gölge artsın */
.card__collection .cards:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.7);
    border-color: rgba(250, 204, 21, 0.7); /* primary tonuna yakın sarı border */
}

/* Kart içindeki görsel (tam ekran, crop’lu) */
.card__collection .cards img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Hover’da görsel hafif yukarı + zoom */
.card__collection .cards--two:hover img {
    transform: translateY(-16px) scale(1.03);
}

/* === CARDS--TWO ÖZEL EFEKTLERİ (CodePen tarzı) === */

.card__collection .cards--two {
    backface-visibility: hidden;
}

/* Başlık yazısı – altta soldan içeri kayacak */
.card__collection .cards--two p {
    position: absolute;
    bottom: 2.2rem;
    left: -100%;
    z-index: 10;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    transition: all 0.6s ease;
}

/* Hover’da başlık içeri gelir */
.card__collection .cards--two:hover p {
    left: 1.4rem;
}

/* Sağdan içeri gelen üçgen overlay */
.card__collection .cards--two__tri {
    border-top: 230px solid transparent;
    border-bottom: 210px solid transparent;
    border-right: 320px solid rgba(15, 23, 42, 0.96); /* koyu slate */
    opacity: 0.96;
    position: absolute;
    top: 0;
    right: -110%;
    transition: all 0.3s ease-in-out;
}

/* Üçgenin sarı katmanı (primary tonuna yakın) */
.card__collection .cards--two__tri::before {
    content: "";
    border-top: 230px solid transparent;
    border-bottom: 210px solid transparent;
    border-right: 320px solid #FFDE32; /* senin primary rengin */
    position: absolute;
    top: -230px;
    right: -640px;
    transition: all 0.3s ease-in-out;
    transition-delay: 0.2s;
}

/* Hover’da üçgen kartın içine yaklaşır */
.card__collection .cards--two:hover .cards--two__tri {
    right: -42%;
}

.card__collection .cards--two:hover .cards--two__tri::before {
    right: -340px;
}

/* Alttan çapraz gelen dikdörtgen layer */
.card__collection .cards--two__rect {
    width: 780px;
    height: 220px;
    background: #020617; /* çok koyu lacivert/siyah */
    position: absolute;
    top: 185%;
    left: -80%;
    transform: rotate(28deg);
    z-index: 5;
    opacity: 0.96;
    transition: all 0.3s ease-in-out;
}

/* Dikdörtgenin sarı iç katmanı */
.card__collection .cards--two__rect::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #FFDE32; /* primary */
    transform: translateY(210px);
    z-index: 2;
    transition: all 0.3s ease-in-out;
    transition-delay: 0.1s;
}

/* Hover’da dikdörtgen yukarı çıkar */
.card__collection .cards--two:hover .cards--two__rect {
    top: 78%;
}

.card__collection .cards--two:hover .cards--two__rect::before {
    transform: translateY(18px);
}

/* === RESPONSIVE DOKUNUŞLAR === */
@media (max-width: 640px) {
    .card__collection .cards {
        height: 380px; /* mobilde biraz daha kısa */
    }

    .card__collection .cards--two__tri {
        border-top: 210px solid transparent;
        border-bottom: 190px solid transparent;
        border-right: 290px solid rgba(15, 23, 42, 0.96);
    }

    .card__collection .cards--two__tri::before {
        border-right: 290px solid #FFDE32;
        right: -600px;
    }

    .card__collection .cards--two__rect {
        top: 190%;
        width: 740px;
        height: 210px;
    }

    .card__collection .cards--two p {
        font-size: 0.98rem;
        bottom: 1.9rem;
    }
}
