/* --- MODERN HOME CSS (Mobile First) --- */

/* --- 1. STORIES ALANI (PNG Dostu & Tam Kaplama) --- */
.stories-container {
    margin: 0 -12px;
}

.stories-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px;
    scrollbar-width: none;
}

.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    max-width: 80px;
    text-decoration: none;
}

.story-circle {
    width: 75px;
    /* İstediğin büyüklüğe göre burayı artırabilirsin */
    height: 75px;
    border-radius: 50%;
    /* ARKA PLAN VE ÇERÇEVE KALDIRILDI */
    background: transparent;
    border: none;
    box-shadow: none;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-circle img {
    width: 100%;
    height: 100%;
    /* PNG GÖRSELİN KIRPILMADAN TAM ALANI KAPLAMASI İÇİN */
    object-fit: contain;
    padding: 0;
    /* Boşlukları sıfırladık ki görsel küçük kalmasın */
}

.story-item:hover .story-circle {
    transform: scale(1.08);
    /* Sadece hafif bir büyüme efekti */
}

.story-title {
    font-size: 0.75rem;
    margin-top: 6px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    /* YAZI AYARLARI */
    white-space: normal;
    line-height: 1.2;
    width: 100%;
    word-break: break-word;
    /* Uzun kelimeleri böler */
}

/* Mobilde boyutları korumak veya çok az küçültmek için */
@media (max-width: 768px) {
    .story-item {
        min-width: 75px;
        max-width: 75px;
    }

    .story-circle {
        width: 70px;
        height: 70px;
    }
}

/* 2. KONUM & ÖZELLİKLER BÖLÜMÜ */
.top-split-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* Nabız efekti veren ikon */
.icon-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Özellikler Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Masaüstünde 4 yan yana */
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    background: #ECFDF5;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Mobilde Özellikler (2x2 Grid) */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 yan yana */
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .feature-card {
        flex-direction: row;
        /* Mobilde ikon solda, yazı sağda */
        text-align: left;
        gap: 10px;
        background: #f9fafb;
        padding: 10px;
        border-radius: 8px;
    }

    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-bottom: 0;
    }
}

/* 3. BANNERLAR */
.banner-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.banner-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.banner-item:hover img {
    transform: scale(1.05);
}

/* 4. SEO BAŞLIK */
.display-title {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .display-title {
        font-size: 1.4rem;
    }
}

/* 5. FIRSAT WIDGET (Modern & Mobile Friendly) */
.firsat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    width: 340px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9990;
    transform: translateY(150%);
    /* Başlangıçta gizli */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.firsat-widget.active {
    transform: translateY(0);
}

.fp-inner {
    display: flex;
    padding: 12px;
    gap: 15px;
}

.fp-img-holder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.fp-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    text-align: center;
    padding: 2px 0;
}

.fp-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-timer-box {
    font-size: 0.75rem;
    color: #dc3545;
    background: #FFF1F2;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    width: fit-content;
}

.fp-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.fp-btn-go {
    background: var(--text-dark);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.fp-btn-go:hover {
    background: var(--primary);
    color: #fff;
}

.fp-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Mobilde Widget */
@media (max-width: 576px) {
    .firsat-widget {
        width: 94%;
        left: 3%;
        right: 3%;
        bottom: 85px;
        /* Alt menü varsa üstte kalsın */
    }

    .fp-inner {
        padding: 10px;
    }

    .fp-img-holder {
        width: 80px;
        height: 80px;
    }
}