/* =============================================
   Responsive Styles
============================================= */

/* Tablet and Below (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .main-nav {
        gap: 20px;
    }

    .nav-search {
        max-width: 400px;
    }

    .nav-menu {
        gap: 20px;
    }

    /* Hero Slider */
    .hero-slide {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Top Stores Section */
    .stores-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .store-deal-card {
        padding: 25px 15px;
        min-height: 120px;
    }

    .store-logo-img {
        max-width: 100px;
        height: 70px;
    }

    /* Grids */
    .deals-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile and Below (max-width: 768px) */
@media (max-width: 768px) {
    /* Header */
    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-links {
        gap: 15px;
    }

    .main-nav {
        gap: 15px;
    }

    .logo {
        font-size: 24px;
    }

    .logo i {
        font-size: 28px;
    }

    .nav-search {
        max-width: none;
        flex: 1;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

    /* Hero Slider Mobile */
    .hero-slide {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 30px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 14px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-controls {
        padding: 0 10px;
    }

    /* Top Stores Mobile */
    .stores-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stores-title {
        font-size: 22px;
    }

    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .store-deal-card {
        padding: 20px 10px;
        min-height: 100px;
    }

    .store-logo-img {
        max-width: 80px;
        height: 60px;
    }

    /* Category Filter */
    .category-filter {
        padding: 20px 0;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Sections */
    .deals-section,
    .blog-section {
        padding: 40px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 26px;
    }

    /* Grids */
    .deals-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Deal Cards */
    .deal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .deal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .deal-btn {
        width: 100%;
        justify-content: center;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-title {
        font-size: 26px;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-btn {
        justify-content: center;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    body {
        font-size: 14px;
    }

    /* Header */
    .header-top {
        font-size: 12px;
    }

    .header-info span {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .logo span {
        display: none;
    }

    .logo i {
        font-size: 24px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 16px;
    }

    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Hero */
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-stats {
        gap: 20px;
        flex-direction: column;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Category Filter */
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .filter-tab i {
        display: none;
    }

    /* Sections */
    .section-title {
        font-size: 22px;
    }

    .view-all-link {
        font-size: 14px;
    }

    /* Deal Cards */
    .deal-card {
        border-radius: 12px;
    }

    .deal-image {
        height: 200px;
    }

    .deal-content {
        padding: 15px;
    }

    .deal-brand {
        font-size: 12px;
    }

    .deal-title {
        font-size: 18px;
    }

    .deal-description {
        font-size: 13px;
    }

    .deal-meta {
        padding: 12px;
    }

    .discount-badge {
        font-size: 14px;
        padding: 4px 10px;
    }

    .current-price {
        font-size: 20px;
    }

    .deal-cashback {
        font-size: 12px;
    }

    .deal-expires {
        font-size: 12px;
    }

    .deal-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Blog Cards */
    .blog-card {
        border-radius: 12px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-category {
        font-size: 11px;
        padding: 5px 12px;
    }

    .blog-meta {
        font-size: 12px;
        gap: 15px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-excerpt {
        font-size: 14px;
    }

    .author-avatar {
        width: 35px;
        height: 35px;
    }

    .author-name {
        font-size: 13px;
    }

    .read-more {
        font-size: 13px;
    }

    /* Newsletter */
    .newsletter-title {
        font-size: 22px;
    }

    .newsletter-subtitle {
        font-size: 14px;
    }

    .newsletter-input {
        padding: 14px 20px;
        font-size: 14px;
    }

    .newsletter-btn {
        padding: 14px 28px;
        font-size: 14px;
    }

    /* Footer */
    .footer-logo {
        font-size: 24px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .copyright,
    .disclaimer {
        font-size: 12px;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-stats {
        flex-direction: row;
    }
}

/* Large Screens (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .deals-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* Print Styles */
@media print {
    .site-header,
    .category-filter,
    .newsletter-section,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle,
    .deal-btn,
    .read-more {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    .deal-card,
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}

/* Blog Page Responsive */
@media (max-width: 1024px) {
    .blog-h-image {
        width: 300px;
        min-width: 300px;
        height: 250px;
    }
    
    .blog-h-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .blog-filter {
        padding: 20px 0;
        position: static;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .blog-card-horizontal {
        flex-direction: column;
    }
    
    .blog-h-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    
    .blog-h-content {
        padding: 20px;
    }
    
    .blog-h-title {
        font-size: 22px;
    }
    
    .blog-h-excerpt {
        font-size: 15px;
    }
    
    .blog-h-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .read-more-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .blog-h-title {
        font-size: 20px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-num {
        width: 40px;
        height: 40px;
    }
}

/* =============================================
   Stores Directory Page Responsive
============================================= */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stores-section {
        padding: 40px 0;
    }
    
    .category-title {
        font-size: 26px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .store-card {
        padding: 20px;
    }
    
    .store-logo {
        height: 80px;
    }
    
    .store-logo img {
        max-width: 140px;
        max-height: 80px;
    }
    
    .store-name {
        font-size: 18px;
    }
    
    .brand-card {
        padding: 15px;
    }
    
    .brand-logo {
        height: 60px;
    }
    
    .brand-logo img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .brand-name {
        font-size: 13px;
    }
    
    .category-quick-card {
        padding: 30px 20px;
    }
    
    .category-quick-card i {
        font-size: 40px;
    }
    
    .category-quick-card h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .store-logo {
        height: 60px;
    }
    
    .store-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .store-name {
        font-size: 16px;
    }
    
    .brand-card {
        padding: 12px;
    }
    
    .brand-logo {
        height: 50px;
    }
    
    .brand-logo img {
        max-width: 80px;
        max-height: 50px;
    }
    
    .brand-name {
        font-size: 12px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}