﻿/* =========================================================
    HERO SECTION - Küçültülmüş Arama Başlığı
========================================================= */
.hero-search-section {
    position: relative;
    width: 100%;
    height: 25vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.hero-search-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    z-index: 1;
}

.hero-search-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.hero-search-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 30px 20px;
    box-sizing: border-box;
}

.hero-search-title-content {
    display: flex;
    margin-top: 5rem;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-term-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.hero-search-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.search-results-count {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0 0;
}

/* =========================================================
    İÇERİK BÖLÜMÜ
========================================================= */
.icerikBolumu {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================
    KATEGORİ TABS (Yatay)
========================================================= */
.related-content-nav-row {
    margin-bottom: 30px;
}

.custom-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
    margin: 0;
}

    .custom-tabs .nav-item {
        list-style: none;
    }

    .custom-tabs .nav-link {
        padding: 12px 24px;
        font-size: 15px;
        font-weight: 500;
        color: #666;
        text-decoration: none;
        background: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
        cursor: pointer;
        display: block;
    }

        .custom-tabs .nav-link:hover {
            color: #1e3a8a;
            background-color: rgba(59, 130, 246, 0.05);
        }

        .custom-tabs .nav-link.active {
            color: #1e3a8a;
            font-weight: 600;
            border-bottom-color: #3b82f6;
        }

/* =========================================================
    SONUÇ KARTLARI (Görselsiz, Basit Stil)
========================================================= */
.content-cards-row {
    margin-top: 0;
}

.content-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 100%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .content-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-3px);
        border-color: #3b82f6;
    }

.created-Date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 500;
}

.content-title-link {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 15px;
}

    .content-title-link:hover {
        color: #1e3a8a;
    }

        .content-title-link:hover .textContent {
            color: #1e3a8a;
        }

.textContent {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-tag-button {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: #3b82f6;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 12px;
}

    .content-tag-button:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

.slug-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
    TÜMÜNÜ GÖSTER BUTONU
========================================================= */
.show-all-button {
    background-color: transparent;
    color: #666;
    border: 2px solid #666;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .show-all-button:hover {
        background-color: #1e3a8a;
        color: white;
        border-color: #1e3a8a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }

/* =========================================================
    YÜKLEME VE UYARI MESAJLARI
========================================================= */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: #3b82f6;
}

.loading-text {
    margin-top: 20px;
    color: #6b7280;
    font-size: 16px;
}

.alert {
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert strong {
    font-weight: 700;
}

/* =========================================================
    RESPONSIVE TASARIM
========================================================= */
@media (max-width: 991px) {
    .container-custom {
        padding: 0 20px;
    }

    .custom-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

        .custom-tabs .nav-item {
            flex-shrink: 0;
        }

        .custom-tabs .nav-link {
            white-space: nowrap;
            padding: 10px 20px;
        }

    .hero-search-section {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .icerikBolumu {
        padding: 40px 0;
    }

    .container-custom {
        padding: 0 15px;
    }

    .content-card {
        padding: 20px;
        width: 100%;
    }

    .textContent {
        font-size: 1.05rem;
    }

    .show-all-button {
        padding: 10px 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-search-title {
        font-size: 26px;
    }

    .search-results-count {
        font-size: 13px;
    }

    .custom-tabs .nav-link {
        font-size: 14px;
        padding: 10px 16px;
    }
}
