/**
 * Responsive styles for InstaGrab theme
 */

/* Tablets and small desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 970px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Desktop menu needs to be scrollable on smaller screens */
    .menu {
        overflow-x: auto;
        padding-bottom: 5px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .menu::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 750px;
    }
    
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .input-field-container {
        margin-bottom: 5px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-field {
        width: 100%;
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .search-button {
        font-size: 1.5rem;
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .instagram-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .search-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-title h2 {
        margin-bottom: 5px;
    }
    
    .how-it-works,
    .features-section,
    .faq-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .media-viewer-content {
        width: 90%;
    }
    
    .media-viewer-close {
        top: -30px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .site-header {
        padding: 10px 0;
    }
    
    .site-logo-text {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .search-form {
        padding: 20px 15px;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .instagram-results-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .media-viewer-nav {
        display: none;
    }
    
    .media-viewer-content {
        width: 95%;
    }
}

/* Responsive navigation for mobile */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row; /* Keep as row on mobile */
        align-items: center;
        justify-content: space-between;
    }
}

/* Fix for very small screens */
@media (max-width: 350px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .search-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .input-field {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-examples {
        font-size: 0.8rem;
    }
}
