/* Responsive Styles for Hindi News Portal */

/* Large Devices (Desktops) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-slider .carousel-item {
        height: 550px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .article-title {
        font-size: 2.75rem;
    }
}

/* Medium Devices (Laptops, Desktops) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-slider .carousel-item {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .news-card .card-img-top {
        height: 280px;
    }
}

/* Small Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .main-nav .nav {
        gap: 1rem;
    }
    
    .main-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .hero-slider .carousel-item {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .breaking-label {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .trending-number {
        font-size: 1.5rem;
    }
    
    .sidebar-widget {
        margin-bottom: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        font-size: 0.8rem;
    }
    
    .top-links {
        font-size: 0.75rem;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header-actions {
        display: flex;
        gap: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .breaking-news {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .breaking-label {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .ticker-wrap {
        font-size: 0.8rem;
    }
    
    .hero-slider .carousel-item {
        height: 350px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .btn-primary {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }
    
    .news-grid {
        gap: 1rem;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
    
    .news-card .card-img-top {
        height: 200px;
    }
    
    .news-card .card-title {
        font-size: 1.1rem;
    }
    
    .news-card .card-text {
        font-size: 0.9rem;
    }
    
    .category-section {
        padding: 2rem 0;
    }
    
    .trending-section {
        padding: 2rem 0;
    }
    
    .trending-item {
        padding: 0.75rem 0;
    }
    
    .trending-number {
        font-size: 1.2rem;
    }
    
    .trending-content h4 {
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-section {
        padding: 2rem 0;
    }
    
    .newsletter-section h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer h4,
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .comments-section {
        margin-top: 2rem;
    }
    
    .comment {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-content h5 {
        font-size: 0.95rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .pwa-install-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .offcanvas {
        width: 85%;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .header {
        padding: 0.25rem 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .breaking-label {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .ticker-wrap {
        font-size: 0.7rem;
    }
    
    .hero-slider .carousel-item {
        height: 280px;
    }
    
    .hero-content h1 {
        font-size: 1.25rem;
    }
    
    .news-card .card-img-top {
        height: 180px;
    }
    
    .news-card .card-title {
        font-size: 1rem;
        min-height: 2.8rem;
    }
    
    .news-card .card-text {
        min-height: 3.6rem;
    }
    
    .category-card .card-img-top {
        height: 180px;
    }
    
    .trending-number {
        font-size: 1rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1rem;
    }
    
    .newsletter-section h2 {
        font-size: 1.25rem;
    }
    
    .footer h4,
    .footer h5 {
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.35rem;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Landscape Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-slider .carousel-item {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .breaking-news,
    .top-bar,
    .footer,
    .back-to-top,
    .pwa-install-btn,
    .share-buttons,
    .comments-section,
    .sidebar-widget {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High Resolution Displays */
@media (min-resolution: 2dppx) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    .news-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner {
        animation: none;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .news-card:hover {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .share-btn:hover {
        transform: none;
    }
}
