/**
 * Temajet Category & Archive Isolated Stylesheet
 * 
 * Sitedeki diğer sayfaları koruma zırhı: Tüm CSS kuralları
 * kesinlikle .cat-archive-page ön eki ile izole edilmiştir.
 * 
 * @package temajet
 * @version 1.0.0
 */

/* ==========================================================================
   1. GENEL KAPSAYICI & TEMEL DÜZEN
   ========================================================================== */
.cat-archive-page {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.cat-archive-page *,
.cat-archive-page *::before,
.cat-archive-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2. 3'LÜ GRID DÜZENİ (.cat-archive-page.layout-grid .category-posts-grid)
   ========================================================================== */
.cat-archive-page.layout-grid .category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

@media (max-width: 1024px) {
    .cat-archive-page.layout-grid .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .cat-archive-page.layout-grid .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   3. KLASİK LİSTE DÜZENİ (.cat-archive-page.layout-list .category-posts-grid)
   ========================================================================== */
.cat-archive-page.layout-list .category-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.cat-archive-page.layout-list .cat-news-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
}

.cat-archive-page.layout-list .cat-card-thumb {
    width: 320px;
    min-width: 260px;
    max-width: 340px;
    flex-shrink: 0;
}

.cat-archive-page.layout-list .cat-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .cat-archive-page.layout-list .cat-card-thumb {
        width: 240px;
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .cat-archive-page.layout-list .cat-news-card {
        flex-direction: column;
        gap: 12px;
    }
    .cat-archive-page.layout-list .cat-card-thumb {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   4. HABER KARTLARI (GÖRSEL, KATEGORİ ADI, BAŞLIK)
   ========================================================================== */
.cat-archive-page .cat-news-card {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Görsel Kapsayıcı & Görsel */
.cat-archive-page .cat-card-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
}

.cat-archive-page .cat-card-thumb a {
    display: block;
    width: 100%;
    line-height: 0;
}

.cat-archive-page .cat-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-archive-page .cat-news-card:hover .cat-card-img {
    transform: scale(1.025);
}

/* Siyahlık / Overlay Temizleme Zırhı */
.cat-archive-page .cat-card-thumb::before,
.cat-archive-page .cat-card-thumb::after {
    display: none !important;
    content: none !important;
}

/* Görselin Altında Koyu Kalın Kategori Adı */
.cat-archive-page .cat-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000 !important;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: 0.4px;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.cat-archive-page .cat-card-category:hover {
    color: #d90429 !important;
}

/* Kategori Adının Altında Başlık (2 Satır Kilitli) */
.cat-archive-page .cat-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cat-archive-page .cat-card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cat-archive-page .cat-card-title a:hover {
    color: #d90429;
}

/* ==========================================================================
   5. "DAHA FAZLA GÖSTER" AJAX BUTONU & YÜKLEME ZIRHI
   ========================================================================== */
.cat-archive-page .cat-load-more-wrap {
    width: 100%;
    margin-top: 20px;
}

.cat-archive-page .load-more-btn {
    display: block;
    width: 100%;
    background: #d90429;
    color: #fff;
    text-align: center;
    padding: 14px 0;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(217, 4, 41, 0.2);
    letter-spacing: 0.5px;
    user-select: none;
}

.cat-archive-page .load-more-btn:hover {
    background: #b90322;
}

.cat-archive-page .load-more-btn:active {
    transform: scale(0.99);
}

.cat-archive-page .load-more-btn:disabled,
.cat-archive-page .load-more-btn[data-loading="1"] {
    background: #888;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: none;
    transform: none;
}
