/* Responsive styles for landing */

/* DESKTOP: Ensure tab buttons are horizontal */
@media (min-width: 992px) {
    .tab-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}

/* FORCE STACKED FEATURES ON MOBILE & TABLET */
@media (max-width: 991px) {

    /* Hide the tab buttons completely */
    .tab-buttons {
        display: none !important;
    }

    /* Force all feature panels to be visible */
    .feature-panel {
        display: block !important;
        margin-bottom: 40px !important;
    }

    /* Adjust padding for stacked panels */
    .feature-panel>div {
        padding: 24px !important;
    }
}


/* Tablet styles */
@media (max-width: 1024px) {

    /* Feature panels - single column */
    .feature-panel>div>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .feature-panel>div {
        padding: 32px !important;
    }

    /* Stats grid - 2x2 */
    .feature-panel div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 20px"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile styles */
@media (max-width: 768px) {

    /* Tab buttons - stack vertically */
    .tab-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 16px !important;
        gap: 10px !important;
    }

    .feature-tab-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
    }

    /* Feature panels */
    .feature-panel>div {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .feature-panel h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .feature-panel p {
        font-size: 15px !important;
    }

    /* Section header */
    .section-header h2 {
        font-size: 28px !important;
        padding: 0 16px !important;
    }

    .section-header>span:first-child {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }

    .section-header p {
        font-size: 16px !important;
        padding: 0 16px !important;
    }

    /* Stats grid - 2x2 on mobile */
    .feature-panel div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 20px"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .feature-panel div[style*="grid-template-columns: 1fr 1fr"]>div {
        padding: 14px !important;
    }

    .feature-panel div[style*="font-size: 32px"] {
        font-size: 24px !important;
    }

    /* Feature list items */
    .feature-panel div[style*="display: flex"][style*="gap: 14px"] {
        gap: 10px !important;
    }

    .feature-panel div[style*="width: 28px"] {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    .feature-panel span[style*="font-size: 16px"] {
        font-size: 14px !important;
    }

    /* Colored accent panel */
    .feature-panel>div>div>div[style*="border-radius: 20px"][style*="padding: 40px"] {
        padding: 24px !important;
        border-radius: 16px !important;
    }

    /* Icons */
    .feature-panel span[style*="font-size: 64px"] {
        font-size: 48px !important;
    }

    .feature-panel span[style*="font-size: 28px"] {
        font-size: 24px !important;
    }

    /* Perfect For / Order Types cards */
    .feature-panel div[style*="gap: 12px"]>div[style*="padding: 16px 20px"] {
        padding: 12px 16px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 24px !important;
    }

    .feature-panel h3 {
        font-size: 22px !important;
    }

    .feature-panel>div {
        padding: 16px !important;
    }

    /* Stats grid - still 2x2 but smaller */
    .feature-panel div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 20px"] {
        gap: 8px !important;
    }

    .feature-panel div[style*="font-size: 32px"],
    .feature-panel div[style*="font-size: 24px"] {
        font-size: 20px !important;
    }

    .feature-panel div[style*="font-size: 14px"] {
        font-size: 12px !important;
    }
}

/* Smooth animations */
.feature-panel {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper touch targets */
.feature-tab-btn {
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll */
.features-section {
    overflow-x: hidden;
}

.feature-panels {
    overflow: hidden;
}

/* Navigation mobile */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 24px !important;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    .nav-links .nav-link {
        font-size: 24px !important;
        padding: 16px 32px !important;
        text-align: center;
    }

    .nav-links .btn {
        width: 80% !important;
        max-width: 280px !important;
        text-align: center !important;
        padding: 16px 32px !important;
        font-size: 18px !important;
    }

    .language-switcher {
        margin: 16px 0 !important;
    }

    .lang-btn {
        padding: 14px 28px !important;
        font-size: 16px !important;
    }

    .hero-title {
        font-size: 2rem !important;
        padding: 0 16px;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 24px;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .navbar {
        position: relative;
        z-index: 1002;
        background: #0f172a;
        /* Dark background for visibility */
    }

    .nav-container {
        justify-content: space-between !important;
        padding: 0 16px;
        /* Add padding for alignment */
    }
}

/* Touch-friendly elements */
@media (max-width: 768px) {

    .nav-link,
    .btn,
    .lang-btn,
    .lang-option {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}