/* Homepage Mobile Styles */

/* Mobile Hero Section */
@media (max-width: 767px) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        margin-top: 1.5rem;
        padding: 0;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Mobile Categories */
@media (max-width: 767px) {
    .featured-categories {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.25rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .category-grid {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
    }
}

/* Mobile Product Cards */
@media (max-width: 767px) {
    .featured-products {
        padding: 2rem 0;
    }
    
    .section-header {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-link {
        font-size: 0.75rem;
    }
    
    .products-grid {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .product-card {
        margin-bottom: 0;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-rating {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .product-features {
        margin-bottom: 0.75rem;
    }
    
    .product-features li {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .product-footer {
        padding-top: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile Banks Grid */
@media (max-width: 767px) {
    .banks-grid {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .bank-card {
        padding: 1.25rem;
    }
    
    .bank-logo {
        width: 80px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .bank-name {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .bank-features {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
}

/* Mobile Blog Section */
@media (max-width: 767px) {
    .blog-section {
        padding: 2rem 0;
    }
    
    .blog-grid {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .blog-card img {
        height: 160px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-category {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-card p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .read-more {
        font-size: 0.75rem;
    }
}

/* Mobile CTAs */
@media (max-width: 767px) {
    .calculator-cta {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0.75rem;
    }
    
    .calculator-cta h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .calculator-cta p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        gap: 0.5rem;
    }
    
    .btn-white,
    .btn-outline-white {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Mobile Newsletter */
@media (max-width: 767px) {
    .newsletter-section {
        padding: 1.5rem 0.75rem;
        margin: 1.5rem 0;
    }
    
    .newsletter-content {
        padding: 0;
    }
    
    .newsletter-section i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .newsletter-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-section p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form-inline {
        gap: 0.5rem;
    }
    
    .newsletter-form-inline input[type="email"] {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .newsletter-form-inline button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .newsletter-section small {
        font-size: 0.625rem;
        margin-top: 0.5rem;
        display: block;
    }
}

/* Mobile Ads */
@media (max-width: 767px) {
    .content-ad {
        margin: 1.5rem 0;
        padding: 0 0.75rem;
    }
    
    .grid-ad {
        margin: 0.75rem 0;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767px) {
    /* Reduce animations on mobile */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize images */
    img {
        image-rendering: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Reduce shadows for performance */
    .product-card:hover,
    .bank-card:hover,
    .blog-card:hover,
    .category-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .product-card:hover,
    .bank-card:hover,
    .blog-card:hover,
    .category-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Make tappable areas more obvious */
    .btn:active,
    .category-card:active,
    a:active {
        opacity: 0.8;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
    
    .category-grid,
    .products-grid,
    .banks-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small phone adjustments */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .product-title,
    .bank-name,
    .blog-card h3 {
        font-size: 0.9375rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}