/* Responsive Styles for BilgiX */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    .news-card, .featured-card, .exclusive-card {
        margin-bottom: 15px;
    }
    
    .card-img {
        height: 180px;
    }
    
    .main-featured {
        height: 250px;
    }
    
    .sub-featured {
        height: 120px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .breaking-label {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .card-img {
        height: 160px;
    }
    
    .main-featured {
        height: 300px;
    }
    
    .sub-featured {
        height: 140px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .card-img {
        height: 180px;
    }
    
    .main-featured {
        height: 350px;
    }
    
    .sub-featured {
        height: 165px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .card-img {
        height: 190px;
    }
    
    .main-featured {
        height: 380px;
    }
    
    .sub-featured {
        height: 185px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print styles */
@media print {
    .sidebar-widget,
    .breaking-news-bar,
    .mobile-app,
    .shop-section,
    .charity-ads {
        display: none !important;
    }
    
    .news-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .news-card,
    .sidebar-widget,
    .featured-card,
    .exclusive-card {
        background-color: #1e1e1e;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .card-title a,
    .card-text,
    .widget-body,
    .category-item {
        color: #e0e0e0;
    }
    
    .category-item:hover {
        background-color: #2d2d2d;
    }
    
    .price {
        color: #e0e0e0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .news-card,
    .sidebar-widget,
    .featured-card {
        border: 2px solid #000;
    }
    
    .section-title {
        border-bottom: 3px solid #000;
    }
    
    .category-badge,
    .exclusive-badge {
        border: 1px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .news-card:hover,
    .service-card:hover,
    .charity-ad:hover img {
        transform: none !important;
    }
    
    .breaking-news-slider {
        height: auto;
    }
    
    .breaking-item {
        position: static;
        animation: none;
        margin-bottom: 5px;
    }
}
