/*
===== CATEGORY & ARCHIVE PAGES STYLES =====
Kategori ve arşiv sayfaları için özel stiller
*/

/* ===== CATEGORY HEADER ===== */
.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px 0;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.category-header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-post-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== ARCHIVE NAVIGATION ===== */
.archive-navigation {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.archive-nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.archive-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-nav-item {
    margin: 0;
}

.archive-nav-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.archive-nav-link:hover,
.archive-nav-link.current {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== CATEGORY POSTS GRID ===== */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* DEBUG: Adjusting category posts grid spacing */
    margin-bottom: 40px;
}

.category-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.category-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post-card:hover .category-post-thumbnail img {
    transform: scale(1.05);
}

.category-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-post-card:hover .category-post-overlay {
    opacity: 1;
}

.category-post-content {
    padding: 25px;
}

.category-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.category-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-post-title a:hover {
    color: var(--primary-color);
}

.category-post-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.category-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-post-tags {
    display: flex;
    gap: 8px;
}

.category-post-tag {
    padding: 4px 8px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-post-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== ARCHIVE FILTERS ===== */
.archive-filters {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.archive-filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.archive-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.archive-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.archive-filter-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.archive-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== ARCHIVE PAGINATION ===== */
.archive-pagination {
    margin-top: 50px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .category-header {
        padding: 30px 0;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr !important; /* Tek sütunlu yapıyı zorunlu kıl */
        gap: 20px;
    }
    
    .category-post-content {
        padding: 20px;
    }
    
    .category-post-title {
        font-size: 1.2rem;
    }
    
    .archive-nav-list {
        justify-content: center;
    }
    
    .archive-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .archive-filter-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 20px 0;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .category-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ===== LIGHT MODE OVERRIDES ===== */
.light-mode .category-post-card {
    background: #fff;
    border: 1px solid var(--border-color);
}

.light-mode .archive-navigation,
.light-mode .archive-filters {
    background: #fff;
    border: 1px solid var(--border-color);
}

.light-mode .archive-nav-link {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.light-mode .archive-filter-select {
    background: #fff;
    border-color: var(--border-color);
}

/* ===== DARK MODE SPECIFIC ===== */
@media (prefers-color-scheme: dark) {
    .category-post-card {
        background: var(--bg-secondary);
    }
    
    .archive-navigation,
    .archive-filters {
        background: var(--bg-secondary);
    }
    
    .archive-filter-select {
        background: var(--bg-secondary);
        color: var(--text-color);
    }
}

/* ===== TEMA SATISI CATEGORY SPECIAL STYLES ===== */
/* Normal kategori tasarımını kullan, sadece minimal özelleştirmeler */

.category-temalar .category-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-tema-satisi .category-post-card:hover,
.category-temalar .category-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Normal kategori post content'ini kullan */
.category-temalar .category-post-content {
    padding: 25px;
}

/* Normal kategori post title'ını kullan */
.category-temalar .category-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.category-tema-satisi .category-post-title a,
.category-temalar .category-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-tema-satisi .category-post-title a:hover {
    color: var(--primary-color);
}

/* Normal kategori excerpt'ini kullan */
.category-temalar .category-post-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Normal kategori footer'ını kullan */
.category-temalar .category-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Normal kategori read more'unu kullan */
.category-temalar .category-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-tema-satisi .category-read-more:hover,
.category-temalar .category-read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Normal kategori tags'lerini kullan */
.category-temalar .category-post-tags {
    display: flex;
    gap: 8px;
}

.category-tema-satisi .category-post-tag {
    padding: 4px 8px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tema-satisi .category-post-tag:hover,
.category-temalar .category-post-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive düzenlemeler - normal kategori ile aynı */
@media (max-width: 768px) {
    .category-tema-satisi .category-post-content {
        padding: 20px;
    }
    
    .category-tema-satisi .category-post-title {
        font-size: 1.2rem;
    }
    
    .category-tema-satisi .category-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .category-tema-satisi .category-post-thumbnail {
        height: 180px;
    }
}

/* ===== CATEGORY HEADER NEW STYLES ===== */
/* category-header-new sınıfı için category-header ile aynı stiller */
.category-header-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 0; /* REDUCED: Adjusted category header background height */
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-header-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.category-header-new .category-header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-header-new .category-title {
    font-size: 1.8rem; /* FURTHER REDUCED: Category title font size */
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-header-new .category-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-header-new .category-post-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive düzenlemeler - category-header-new için */
@media (max-width: 768px) {
    .category-header-new {
        padding: 30px 0;
    }
    
    .category-header-new .category-title {
        font-size: 2rem;
    }
    
    .category-header-new .category-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-header-new {
        padding: 20px 0;
    }
    
    .category-header-new .category-title {
        font-size: 1.8rem;
    }
}

/* Light mode overrides - category-header-new için */
.light-mode .category-header-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark mode specific - category-header-new için */
@media (prefers-color-scheme: dark) {
    .category-header-new {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}
