/*
 * MongoMaster - MongoDB GUI Tool
 * Responsive Stylesheet
 */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Desktops (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Features Overview */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Screenshot Showcase */
    .screenshot-container {
        min-height: 350px;
    }
    
    /* Why Choose Us */
    .benefits-container {
        gap: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }
    
    .nav-item a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .navbar-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .navbar-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
        margin-left: 0;
    }
    
    /* Benefits */
    .benefits-container {
        flex-direction: column;
    }
    
    .benefits-content {
        margin-bottom: 3rem;
    }
    
    /* Comparison Table */
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
    }
    
    /* Feature Categories */
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mission Section */
    .mission-grid {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .mission-content .section-header {
        text-align: center;
    }
    
    .mission-content .section-header h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Info */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Social Grid */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Key Differentiators */
    .differentiators-grid {
        grid-template-columns: 1fr;
    }
    
    /* Performance Charts */
    .performance-charts {
        grid-template-columns: 1fr;
    }
    
    /* User Ratings */
    .ratings-grid {
        grid-template-columns: 1fr;
    }
    
    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonial Comparison */
    .testimonial-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-about {
        max-width: 100%;
    }
}

/* Large Phones (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    /* Features Overview */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Screenshot Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Technical Specs */
    .specs-container {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form Group Container */
    .form-group-container {
        grid-template-columns: 1fr;
    }
}

/* Small Phones (Up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 7rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Social Grid */
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
}

/* Specific Component Responsive Adjustments */

/* Navbar Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.menu-overlay.active {
    display: block;
}

/* Comparison Table Responsive */
@media (max-width: 767px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .comparison-table.detailed th,
    .comparison-table.detailed td {
        padding: 0.75rem;
    }
}

/* Testimonial Slider Responsive */
@media (max-width: 575px) {
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto 1rem;
    }
}

/* Feature Categories Tabs Responsive */
@media (max-width: 767px) {
    .category-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .category-tabs {
        grid-template-columns: 1fr;
    }
}

/* Feature Item Responsive */
@media (max-width: 575px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item .feature-icon {
        margin: 0 auto 1.5rem;
    }
}

/* Timeline Responsive */
@media (max-width: 575px) {
    .timeline:before {
        left: 10px;
    }
    
    .timeline-dot {
        left: 2px;
        width: 15px;
        height: 15px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
}

/* FAQ Responsive */
@media (max-width: 575px) {
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Rating Card Responsive */
@media (max-width: 767px) {
    .rating-category {
        flex-wrap: wrap;
    }
    
    .category-name {
        flex: 0 0 100%;
        margin-bottom: 0.3rem;
    }
    
    .category-bar {
        flex: 1;
        margin-left: 0;
    }
    
    .category-score {
        flex: 0 0 40px;
    }
}

/* Use Case Card Responsive */
@media (max-width: 575px) {
    .use-case-header {
        flex-direction: column;
        text-align: center;
    }
    
    .use-case-icon {
        margin: 0 auto 1rem;
    }
}

/* Tool Rating Responsive */
@media (max-width: 575px) {
    .tool-rating {
        flex-wrap: wrap;
    }
    
    .tool-name {
        flex: 0 0 100%;
        margin-bottom: 0.3rem;
    }
    
    .rating-bar {
        flex: 1;
        margin-left: 0;
    }
    
    .tool-score {
        flex: 0 0 auto;
    }
}
