/*
 * Responsive CSS - Bursa Bir Gün Teması
 * Mobil uyumluluk için ek stiller
 */

/* Extra Large Devices (1200px ve üzeri) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .featured-news {
        grid-column: span 3;
    }
    
    .post-title {
        font-size: 36px;
    }
}

/* Large Devices (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .featured-news {
        grid-column: span 3;
    }
}

/* Medium Devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .featured-news {
        grid-column: span 2;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .site-logo {
        font-size: 28px;
    }
    
    .hero-section {
        font-size: 17px;
        padding: 22px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 17px;
    }
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 12px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-news {
        grid-column: span 2;
    }
    
    .featured-news .news-item {
        flex-direction: column;
        text-align: left;
    }
    
    .featured-news img {
        width: 100%;
        height: 180px;
    }
    
    .news-item img {
        height: 130px;
    }
    
    .news-item h3 {
        padding: 12px;
        font-size: 15px;
    }
    
    .site-logo {
        font-size: 26px;
    }
    
    .hero-section {
        font-size: 16px;
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .post-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Extra Small Devices (575px ve altı) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-news {
        grid-column: span 1;
    }
    
    .featured-news .news-item {
        flex-direction: column;
        text-align: left;
    }
    
    .featured-news img {
        width: 100%;
        height: 200px;
    }
    
    .news-item img {
        height: 160px;
    }
    
    .news-item h3 {
        padding: 12px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .site-header {
        padding: 0;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .site-logo {
        font-size: 22px;
    }
    
    .hamburger-menu {
        font-size: 20px;
        padding: 8px;
    }
    
    .hero-section {
        font-size: 15px;
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    .post-title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .post-content {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 30px;
    }
    
    .post-featured-image {
        border-radius: 6px;
    }
    
    .related-posts {
        padding-top: 25px;
        margin-top: 30px;
    }
    
    .related-posts h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .related-post-item img {
        height: 150px;
    }
    
    .related-post-item h4 {
        padding: 10px;
        font-size: 13px;
    }
    
    .post-navigation-infinite {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .next-post-indicator {
        font-size: 14px;
    }
    
    .scroll-indicator {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .arrow-down {
        font-size: 20px;
        margin-top: 8px;
    }
}

/* Çok küçük ekranlar (400px ve altı) */
@media (max-width: 400px) {
    .container {
        padding: 0 8px;
    }
    
    .site-logo {
        font-size: 20px;
    }
    
    .news-item h3 {
        padding: 10px;
        font-size: 13px;
    }
    
    .news-item img {
        height: 140px;
    }
    
    .hero-section {
        font-size: 14px;
        padding: 15px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-content {
        font-size: 14px;
    }
    
    .related-post-item h4 {
        font-size: 12px;
        padding: 8px;
    }
    
    .related-post-item img {
        height: 120px;
    }
}

/* Landscape Orientation (Yatay) */
@media (orientation: landscape) and (max-height: 600px) {
    .site-header {
        position: static;
    }
    
    .hero-section {
        margin-bottom: 20px;
        padding: 15px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    .news-item img {
        height: 100px;
    }
    
    .featured-news img {
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .related-posts,
    .post-navigation-infinite,
    .loading-spinner,
    .hamburger-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .post-title {
        color: #000;
        font-size: 24px;
    }
    
    .post-content {
        color: #000;
        font-size: 12px;
        line-height: 1.5;
    }
    
    .post-featured-image {
        max-width: 100%;
        height: auto;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* High DPI (Retina) Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .news-item img,
    .post-featured-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (İsteğe bağlı) */
@media (prefers-color-scheme: dark) {
    /* Kullanıcı sistem ayarlarında dark mode seçmişse */
    .site-header {
        background: #1a1a1a;
        border-bottom-color: #333;
    }
    
    .site-logo {
        color: #fff;
    }
    
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .news-item {
        background: #1e1e1e;
        box-shadow: 0 2px 10px rgba(255,255,255,0.1);
    }
    
    .news-item h3 a {
        color: #e0e0e0;
    }
    
    .hero-section {
        background: #1e1e1e;
        color: #b0b0b0;
    }
    
    .site-footer {
        background: #0a0a0a;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .news-item,
    .spinner,
    .arrow-down {
        transition: none !important;
        animation: none !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .news-item {
        border: 2px solid #000;
    }
    
    .news-item h3 a {
        color: #000;
    }
    
    .news-item h3 a:hover {
        background: #000;
        color: #fff;
    }
}