/*
Theme Name: Keşfet Haber Teması
Description: Modern haber sitesi teması - Hızlı, kullanıcı dostu ve mobil uyumlu. Admin panelinden site başlığı özelleştirilebilir.
Author: MiniMax Agent
Version: 1.1
Requires at least: 6.0
Tested up to: 6.8.1
Requires PHP: 8.0
Text Domain: kesfet-haber
*/

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.site-logo .birgun {
    color: #ff6b35;
}

/* Navigation */
.main-navigation {
    display: none;
}

.hamburger-menu {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Ana İçerik */
.main-content {
    padding: 20px 0;
}

/* Haber Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-item h3 {
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #ff6b35;
}

/* Öne Çıkan Haber */
.featured-news {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.featured-news .news-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-news img {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.featured-news h3 {
    font-size: 20px;
    margin: 0;
}

/* Single Post (Haber Detay) */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.post-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 20px;
}

/* İlgili Haberler */
.related-posts {
    border-top: 2px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Infinite Scroll Loading */
.loading-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news .news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-news img {
        width: 100%;
        height: 200px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-content {
        font-size: 16px;
    }
    

}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .site-logo {
        font-size: 24px;
    }
    
    .news-item h3 {
        padding: 12px;
        font-size: 14px;
    }
    
    .news-item img {
        height: 120px;
    }
}