/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1024px) {
    .header-nav {
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-sidebar {
        width: 240px;
    }
    
    .dashboard-main {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .lang-switcher-dropdown {
        right: auto;
        left: 0;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-content {
        flex-direction: column;
        text-align: center;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .language-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .language-modal-header,
    .language-modal-body,
    .language-modal-footer {
        padding: 16px 20px;
    }
    
    .tier-languages-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .language-flag {
        font-size: 24px;
    }
    
    .language-name {
        font-size: 11px;
    }
    
    .translation-start-notification {
        right: 12px;
        left: 12px;
        top: 90px;
    }
    
    /* NEW: Unified Translations List - Mobile Responsive */
    
    /* File Item Mobile */
    .file-item .file-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .file-header-left {
        width: 100%;
    }
    
    .file-header-right {
        width: 100%;
        flex-wrap: wrap;
    }
    
    /* Stack buttons on mobile */
    .btn-translate,
    .btn-download-all {
        flex: 1;
        min-width: 140px;
    }
    
    .btn-delete {
        order: -1;
        margin-left: auto;
    }
    
    /* Hide expand icon on mobile - too cluttered */
    .expand-icon {
        display: none;
    }
    
    /* Translation rows mobile */
    .translations-list {
        padding: 0 16px 16px;
    }
    
    .translation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .translation-info {
        width: 100%;
    }
    
    .translation-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* File Info Popup Mobile */
    .popup-content {
        width: 95%;
        padding: 24px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .popup-header {
        margin-bottom: 20px;
    }
    
    .popup-header h3 {
        font-size: 18px;
        padding-right: 40px; /* Space for close button */
    }
    
    /* Stats grid - single column on mobile */
    .popup-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    /* Platform badges - stack vertically */
    .platform-badges {
        flex-direction: column;
    }
    
    .platform-badge {
        width: 100%;
    }
    
    /* Demo note mobile */
    .demo-note {
        flex-direction: column;
        padding: 16px;
    }
    
    .demo-note-content h3 {
        font-size: 14px;
    }
    
    .demo-note-content ul {
        font-size: 13px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #242526;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-nav.mobile-active {
        max-height: 500px;
    }
    
    .header-nav .nav-link,
    .header-nav .btn-signup {
        width: 100%;
        text-align: left;
        padding: 12px 0;
    }
    
    .header-nav .language-switcher {
        width: 100%;
        margin: 12px 0;
    }
    
    .mobile-menu-toggle.active {
        color: #F39200;
    }
}

/* Small Mobile Adjustments (< 480px) */
@media (max-width: 480px) {
    .dashboard-main {
        padding: 16px;
    }
    
    .section-header h1 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* File items even more compact */
    .file-item .file-header {
        padding: 12px;
    }
    
    .file-item .file-icon {
        width: 40px;
        height: 40px;
    }
    
    .file-item .file-name {
        font-size: 14px;
    }
    
    .file-item .file-meta {
        font-size: 12px;
    }
    
    /* Smaller buttons on tiny screens */
    .btn-translate,
    .btn-download-all {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .file-item .status-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Translation rows more compact */
    .translation-row {
        padding: 10px 12px;
    }
    
    .lang-flag {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .lang-details h4 {
        font-size: 13px;
    }
    
    .lang-status {
        font-size: 11px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
    }
    
    /* Popup adjustments */
    .popup-content {
        padding: 20px 16px;
    }
    
    .popup-header h3 {
        font-size: 16px;
    }
    
    .popup-stats .stat-value {
        font-size: 18px;
    }
    
    .platform-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .platform-info h4 {
        font-size: 13px;
    }
}