/* ==========================================================================
   FAST_STYLE.CSS - Ultra-Lightweight & High-Performance Pure CSS Grid Styling
   ========================================================================== */

:root {
    --primary-color: #ef4444;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 1. HERO & ARAMA ALANI (Süslü filtrelerden arındırılmış, hafif boyama) */
.fast-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
}
.fast-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}
.fast-hero-sub {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}
.fast-search-wrap {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.fast-search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    font-size: 0.95rem;
    border: 1px solid #334155;
    border-radius: 99px;
    background-color: #1e293b;
    color: #ffffff;
    outline: none;
    transition: border-color 0.15s ease;
}
.fast-search-input:focus {
    border-color: #ef4444;
    background-color: #1e293b;
}
.fast-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Canlı İstatistikler (Hafif ve yalın) */
.fast-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.fast-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fast-stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
}
.fast-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* 2. SOSYAL MEDYA & MARKET KISA YOLLARI */
.fast-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.fast-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.1s ease;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
}
.fast-quick-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: #d1d5db;
}
.fast-quick-btn-primary {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}
.fast-quick-btn-primary:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* 3. ULTRA HAFİF SEKME NAVİGASYONU (Yatay kaydırılabilir) */
.fast-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
    scrollbar-width: none; /* Firefox */
}
.fast-tabs-container::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}
.fast-tabs {
    display: inline-flex;
    gap: 0.5rem;
}
.fast-tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.12s ease;
}
.fast-tab-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}
.fast-tab-btn.active {
    background-color: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}

/* 4. SAF CSS GRID SİSTEMİ (0ms Yerleşim Hesaplama Süresi!) */
.fast-grid-container {
    display: none; /* JS geçişlerinde açılacak */
}
.fast-grid-container.active {
    display: block;
}
.fast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .fast-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobilde kusursuz simetrik 2 sütun */
        gap: 0.5rem;
    }
}

/* 5. GÖRSEL DETOKS UYGULANMIŞ PREMİUM KART TASARIMI */
.fc-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: var(--text-main);
    height: 100%;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fc-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

/* Platform ve Skor Satırı */
.fc-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.fc-platform {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.fc-score {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* Görsel Kutusu (Çökme Önleyici Sabit Yükseklik) */
.fc-img-wrap {
    width: 100%;
    height: 180px; /* Sabit yükseklik, asla 0px çökme yapmaz */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}
.fc-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease;
}
.fc-card:hover .fc-img {
    transform: scale(1.03); /* Hafif ve performanslı büyüme */
}

/* İndirim Rozeti */
.fc-discount {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 6px;
    border-top-right-radius: 6px;
}

/* Ürün Kaçırma Rozeti */
.fc-passive-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(107, 114, 128, 0.9);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* Gövde Alanı */
.fc-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: 8px;
}
.fc-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 4px 0 6px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.3rem; /* 2 satır yüksekliği sabit tutarak hizalamayı bozmaz */
}
.fc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.fc-stars {
    color: #fbbf24;
    font-weight: 700;
}
.fc-rating-count {
    color: var(--text-muted);
}

/* Fiyat Bölümü */
.fc-price-box {
    margin-top: auto; /* Kutu alt sınırına yaslar */
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 4px;
}
.fc-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}
.fc-oldprice {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.fc-detail {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 6px;
    word-break: break-word;
    white-space: pre-line;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    padding-right: 4px;
}
.fc-detail::-webkit-scrollbar {
    width: 4px;
}
.fc-detail::-webkit-scrollbar-track {
    background: transparent;
}
.fc-detail::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 99px;
}
.fc-detail::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Alt Bar (Zaman Sayacı ve Kaynak) */
.fc-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.fc-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Editör Butonları (Yalnızca Admin/Giriş yapmış üyeler için hafifçe ezilen alan) */
.fc-admin-actions {
    display: flex;
    gap: 2px;
    margin-top: 8px;
    border-top: 1px dashed var(--border-color);
    padding-top: 6px;
}
.fc-admin-btn {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    padding: 2px 0;
    background: #f3f4f6;
    border-radius: 4px;
    color: var(--text-main);
    text-decoration: none;
}
.fc-admin-btn:hover {
    background: #e5e7eb;
}

/* 6. SAYFALAMA */
.fast-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
}
.fast-page-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    border-radius: 8px;
    transition: all 0.1s ease;
}
.fast-page-btn:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
}
.fast-page-btn.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}
