/**
 * Vitrin Boost Styles - Frontend (Güncellenmiş)
 * vitrin-boost.css
 */

/* Genel Vitrin Bölümü Stili */
.featured-products,
.vitrin-section {
    margin-bottom: 30px;
    padding: 30px 0;
    background-color: var(--bg-light, #ffffff);
}

html[data-theme="dark"] .vitrin-section,
html[data-theme="dark"] .featured-products {
    background-color: var(--bg-dark, #121212);
}

.featured-products .section-heading,
.vitrin-section .section-heading {
    text-align: center;
    margin-bottom: 25px;
}

.featured-products .section-heading h2,
.vitrin-section .section-heading h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.featured-products .section-heading h2:after,
.vitrin-section .section-heading h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ffc107;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

html[data-theme="dark"] .featured-products .section-heading h2,
html[data-theme="dark"] .vitrin-section .section-heading h2 {
    color: var(--text-color-dark, #fff);
}

.featured-products .section-heading p,
.vitrin-section .section-heading p {
    color: var(--text-muted, #666);
    font-size: 14px;
}

html[data-theme="dark"] .featured-products .section-heading p,
html[data-theme="dark"] .vitrin-section .section-heading p {
    color: var(--text-muted-dark, #aaa);
}

/* Vitrin Ürün Kartı - Daha kompakt ve daha kalın çerçeve */
.vitrin-item {
    border: 3px solid #ff9500 !important; /* Çerçeveyi 3px'e çıkardık */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(255, 149, 0, 0.2) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg, #fff);
    padding-top: 30px; /* Başlık bandı için üstte boşluk - daha küçük */
}

/* Renkli gölge efekti */
.vitrin-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 94, 58, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.vitrin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.3) !important;
}

.vitrin-item:hover::before {
    opacity: 1;
}

.vitrin-item:hover .product-image {
    transform: scale(1.05);
}

html[data-theme="dark"] .vitrin-item {
    border-color: #ff9500 !important;
    background-color: var(--card-bg-dark, #2a2a2a);
}

html[data-theme="dark"] .vitrin-item .product-name {
    color: var(--text-color-dark, #fff);
}

html[data-theme="dark"] .vitrin-item .price-old {
    color: var(--text-muted-dark, #aaa);
}

/* Vitrin İlanı Başlık Bandı - Daha küçük */
.vitrin-header-band {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #ff9500, #ff5ea3);
    color: #fff;
    padding: 5px 8px; /* Daha küçük padding */
    text-align: center;
    font-weight: bold;
    font-size: 12px; /* Daha küçük font */
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top-left-radius: 6px; /* Daha küçük radius */
    border-top-right-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Harf Harf Yanıp Sönen Animasyon */
.vitrin-header-band .letter {
    display: inline-block;
    animation-name: letterPulse;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.vitrin-header-band .letter:nth-child(1) { animation-delay: 0.0s; }
.vitrin-header-band .letter:nth-child(2) { animation-delay: 0.1s; }
.vitrin-header-band .letter:nth-child(3) { animation-delay: 0.2s; }
.vitrin-header-band .letter:nth-child(4) { animation-delay: 0.3s; }
.vitrin-header-band .letter:nth-child(5) { animation-delay: 0.4s; }
.vitrin-header-band .letter:nth-child(6) { animation-delay: 0.5s; }
.vitrin-header-band .letter:nth-child(7) { animation-delay: 0.6s; }
.vitrin-header-band .letter:nth-child(8) { animation-delay: 0.7s; }
.vitrin-header-band .letter:nth-child(9) { animation-delay: 0.8s; }
.vitrin-header-band .letter:nth-child(10) { animation-delay: 0.9s; }
.vitrin-header-band .letter:nth-child(11) { animation-delay: 1.0s; }

@keyframes letterPulse {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: translateY(-2px); /* Daha az hareket */
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* Basitleştirilmiş ürün içeriği */
.vitrin-item .product-content {
    padding: 10px;
    text-align: center;
}

.vitrin-item .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 5px;
    line-height: 1.3;
    max-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vitrin-item .price-box {
    text-align: center;
    margin-top: 8px;
}

.vitrin-item .price-new {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.vitrin-item .price-old {
    font-size: 13px;
    color: var(--text-muted, #888);
    text-decoration: line-through;
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .featured-products .row-products,
    .vitrin-section .row-products {
        margin: 0 -5px;
    }
    
    .featured-products .row-products > div,
    .vitrin-section .row-products > div {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    .featured-products .section-heading h2,
    .vitrin-section .section-heading h2 {
        font-size: 20px;
    }
    
    .featured-products .section-heading p,
    .vitrin-section .section-heading p {
        font-size: 13px;
    }
    
    .vitrin-header-band {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    @keyframes letterPulse {
        0%, 100% {
            transform: translateY(0);
            text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
        }
        50% {
            transform: translateY(-2px);
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
        }
    }
}

@media (max-width: 576px) {
    .vitrin-item {
        border-width: 2px !important; /* Mobilde biraz daha ince sınır */
        padding-top: 26px; /* Daha küçük başlık bandı için */
    }
    
    .vitrin-header-band {
        font-size: 10px;
        padding: 3px 5px;
    }
    
    .vitrin-item .product-name {
        font-size: 12px;
        max-height: 32px;
    }
    
    .vitrin-item .price-new {
        font-size: 14px;
    }
    
    .vitrin-item .price-old {
        font-size: 11px;
    }
}

/* Performans Optimizasyonu */
@media (prefers-reduced-motion: reduce) {
    .vitrin-header-band .letter {
        animation: none;
    }
    
    .vitrin-item:hover {
        transform: none;
    }
    
    .vitrin-item:hover .product-image {
        transform: none;
    }
}