/**
 * FarmSource Mobile Responsive Styles
 * =====================================
 * Comprehensive mobile-first responsive design system
 * Breakpoints: 320px, 480px, 640px, 768px, 1024px, 1280px
 */

/* ========== Mobile First Base Reset ========== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ========== Viewport Meta Configuration ========== */
@viewport {
    width: device-width;
    initial-scale: 1;
    maximum-scale: 5;
    user-scalable: yes;
}

/* ========== Mobile Breakpoints ========== */
/* Extra Small Devices (phones, 320px and up) */
@media only screen and (min-width: 320px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }

    /* Mobile Navigation */
    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-nav-items {
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
    }

    .mobile-nav-item {
        flex: 1;
        text-align: center;
        padding: 8px;
        color: #666;
        text-decoration: none;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .mobile-nav-item.active {
        color: var(--brand-green, #50870D);
    }

    /* Mobile Headers */
    h1 {
        font-size: 24px;
        line-height: 1.2;
        margin: 16px 0;
    }

    h2 {
        font-size: 20px;
        line-height: 1.3;
        margin: 14px 0;
    }

    h3 {
        font-size: 18px;
        line-height: 1.4;
        margin: 12px 0;
    }

    /* Mobile Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    /* Mobile Buttons */
    button,
    .btn {
        min-height: 44px; /* iOS touch target */
        min-width: 44px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
        cursor: pointer;
        touch-action: manipulation;
    }

    /* Mobile Cards */
    .card {
        margin: 8px 0;
        padding: 16px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Mobile Modals */
    .modal {
        padding: 0;
    }

    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    /* Mobile Tables */
    table {
        display: block;
        overflow-x: auto;
    }

    /* Stack layout for mobile */
    .mobile-stack {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }
}

/* Small Devices (landscape phones, 480px and up) */
@media only screen and (min-width: 480px) {
    .container {
        max-width: 460px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }

    .card {
        padding: 20px;
    }

    .modal-content {
        width: 90%;
        height: auto;
        max-height: 90vh;
        border-radius: 12px;
        margin: 5vh auto;
    }
}

/* Medium Devices (tablets, 640px and up) */
@media only screen and (min-width: 640px) {
    body {
        font-size: 15px;
    }

    .container {
        max-width: 620px;
        padding: 0 20px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    /* Tablet Grid */
    .tablet-grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .mobile-nav {
        display: none;
    }

    /* Show tablet navigation */
    .tablet-nav {
        display: flex;
    }

    button,
    .btn {
        font-size: 15px;
        padding: 12px 24px;
    }

    .modal-content {
        width: 80%;
        max-width: 600px;
    }
}

/* Large Tablets (768px and up) */
@media only screen and (min-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .container {
        max-width: 740px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    /* Desktop Grid */
    .desktop-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .desktop-grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Hide mobile elements */
    .mobile-only {
        display: none !important;
    }

    /* Show desktop elements */
    .desktop-only {
        display: block !important;
    }

    /* Desktop navigation */
    .desktop-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
    }

    .tablet-nav {
        display: none;
    }
}

/* Desktop (1024px and up) */
@media only screen and (min-width: 1024px) {
    .container {
        max-width: 980px;
    }

    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }

    /* Desktop layout improvements */
    .sidebar-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .card {
        padding: 24px;
    }
}

/* Large Desktop (1280px and up) */
@media only screen and (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 28px; }

    .sidebar-layout {
        grid-template-columns: 300px 1fr;
    }
}

/* Extra Large Desktop (1536px and up) */
@media only screen and (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* ========== Mobile-Specific Component Fixes ========== */

/* Fix Header and Logo on Mobile */
@media only screen and (max-width: 640px) {
    /* Optimize header height for mobile */
    header {
        height: 64px !important;
        padding: 0 !important;
    }

    header .max-w-7xl {
        height: 64px !important;
        padding: 0 12px !important;
    }

    header .py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Optimize logo size for mobile */
    .logo-container {
        height: 48px !important;
        width: auto !important;
    }

    .logo-main {
        height: 48px !important;
        width: auto !important;
    }

    /* Tighten header spacing */
    header .flex.items-center.space-x-4 {
        gap: 8px !important;
    }

    /* Make account dropdown button more compact */
    #account-dropdown-button {
        font-size: 13px;
        padding: 6px 8px;
    }

    #account-dropdown-button .h-4 {
        height: 14px;
        width: 14px;
    }

    /* Optimize dropdown menu for mobile - prevent cutoff */
    #account-dropdown-menu {
        width: 240px;
        right: 0 !important;
        left: auto !important;
        margin-right: 0 !important;
    }

    /* Ensure dropdown stays on screen */
    #account-dropdown {
        position: relative;
    }

    /* For very small screens, make dropdown full width */
    @media only screen and (max-width: 380px) {
        #account-dropdown-menu {
            position: fixed !important;
            right: 12px !important;
            left: 12px !important;
            width: auto !important;
        }
    }

    /* Hide "Account" text on very small screens, keep icon only */
    @media only screen and (max-width: 380px) {
        #account-dropdown-button span {
            display: none;
        }
    }

    /* Optimize main content padding */
    main.max-w-7xl {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* Reduce glass card padding on mobile */
    .glass-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .glass-card-subtle {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    /* Fix marketplace cards on mobile */
    .farm-card {
        margin: 8px;
        padding: 12px;
    }

    .farm-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .farm-card-image {
        width: 100%;
        height: 160px;
        margin-bottom: 12px;
    }

    .farm-card-actions {
        flex-direction: column;
        gap: 8px;
    }

    .farm-card-actions button {
        width: 100%;
    }

    /* Fix inventory items */
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .inventory-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .inventory-item-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .inventory-item-details {
        flex: 1;
    }

    .inventory-item-price {
        font-size: 16px;
        font-weight: bold;
        color: var(--brand-green);
    }

    /* Fix Process Steps on Landing Page - Stack Vertically */
    .flex.items-center.justify-center.space-x-8 {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 20px;
    }

    .flex.items-center.justify-center.space-x-8 > span {
        text-align: center;
        font-size: 14px;
        max-width: 100%;
    }

    /* Hide chevrons between process steps on mobile */
    .flex.items-center.justify-center.space-x-8 > [data-lucide="chevron-right"] {
        display: none !important;
    }

    /* Optimize AI Mode Container Text */
    .text-3xl {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .text-lg {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .text-2xl {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    /* Fix drag & drop enhancement interface - ensure it stacks */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Hide the flow arrow between boxes on mobile */
    .absolute.inset-0.flex.items-center.justify-center.pointer-events-none {
        display: none !important;
    }

    /* Optimize draggable categories */
    .draggable-category {
        padding: 10px !important;
        font-size: 13px !important;
    }

    .draggable-category .h-3 {
        height: 12px;
        width: 12px;
    }

    /* Improve marketplace filter sidebar for mobile */
    .marketplace-filter-sidebar {
        width: 100% !important;
        position: relative !important;
        margin-bottom: 20px !important;
    }

    /* Stack marketplace layout on mobile */
    .flex.gap-8 {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .w-80 {
        width: 100% !important;
    }

    /* Fix farm results grid on mobile */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Optimize breadcrumb for better mobile visibility */
    .breadcrumb-step {
        min-width: 80px !important;
    }

    .breadcrumb-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .breadcrumb-title {
        font-size: 11px !important;
    }

    .breadcrumb-description {
        font-size: 9px !important;
    }

    .breadcrumb-nav {
        gap: 12px !important;
        padding: 8px 16px !important;
    }

    /* Improve button sizes for touch */
    .btn-sophisticated {
        padding: 14px 24px !important;
        font-size: 16px !important;
        min-height: 48px !important;
    }

    .btn-primary-transaction,
    .btn-primary-action,
    .btn-navigation {
        padding: 16px 28px !important;
        font-size: 17px !important;
        min-height: 52px !important;
    }

    .btn-secondary {
        padding: 12px 20px !important;
        font-size: 15px !important;
        min-height: 44px !important;
    }

    /* Fix mode switcher buttons for mobile */
    .mode-btn-title {
        font-size: 15px !important;
    }

    .mode-btn-subtitle {
        font-size: 12px !important;
    }

    .mode-btn {
        padding: 14px 16px !important;
    }

    .mode-btn-icon {
        width: 22px !important;
        height: 22px !important;
    }

    /* Optimize AI mode and marketplace containers */
    .ai-mode-container,
    .marketplace-mode-container {
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }

    /* Better spacing for form elements */
    #diet-form textarea {
        min-height: 120px !important;
        font-size: 15px !important;
        padding: 12px !important;
    }

    #zip-code {
        padding: 14px !important;
        font-size: 16px !important;
    }

    /* Optimize cart page */
    #cart-page .glass-card {
        padding: 16px !important;
    }

    .package-info-card {
        padding: 12px !important;
    }

    #package-weight-info {
        padding: 16px !important;
    }

    /* Better spacing in order summary */
    #order-summary,
    #payment-section,
    #shipping-section,
    #customer-info {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }

    /* Improve dashboard grid on mobile */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Make modal full screen on mobile */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
        max-height: 95vh !important;
    }

    .modal-header {
        padding: 16px !important;
    }

    /* Optimize toast notifications for mobile */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    /* Fix login page logo - reduced size and better spacing */
    .logo-login {
        height: 120px !important;
        max-width: 180px !important;
        margin-bottom: 20px !important;
    }

    .login-page .logo-container {
        margin-bottom: 16px !important;
    }

    /* Improve login page spacing */
    .login-page h2 {
        margin-top: 20px !important;
    }

    /* Improve account dropdown menu items */
    #account-dropdown-menu a,
    #account-dropdown-menu button {
        padding: 12px 16px !important;
        font-size: 15px !important;
        min-height: 44px !important;
    }

    #account-dropdown-menu .h-4 {
        height: 16px;
        width: 16px;
    }

    /* Fix Submit Feedback button - make it compact on mobile */
    .feedback-button-header {
        padding: 8px 12px !important;
        font-size: 12px !important;
        gap: 4px !important;
        max-width: fit-content !important;
        flex-shrink: 1 !important;
        white-space: nowrap !important;
    }

    /* Hide the "Welcome to FarmSource Alpha!" text on mobile */
    .feedback-button-header .alpha-welcome {
        display: none !important;
    }

    /* Hide the divider since we're hiding the welcome text */
    .feedback-button-header .divider {
        display: none !important;
    }

    /* Make the feedback button icon smaller on mobile */
    .feedback-button-header svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* On very small screens, show only icon */
    @media only screen and (max-width: 380px) {
        .feedback-button-header span:not(.alpha-welcome):not(.divider) {
            display: none !important;
        }

        .feedback-button-header {
            padding: 10px !important;
            border-radius: 50% !important;
            aspect-ratio: 1 / 1 !important;
        }
    }
}

/* Additional cart fixes for mobile */
@media only screen and (max-width: 640px) {
    /* Fix cart toggle button - ensure it stays on screen */
    #cart-toggle {
        right: 16px !important;
        bottom: 16px !important;
        padding: 12px !important;
        z-index: 40 !important;
    }

    #cart-toggle svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Ensure cart sidebar is properly sized on mobile */
    #cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cart-container {
        padding: 12px;
    }

    .cart-items {
        gap: 8px;
    }

    .cart-item {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .cart-summary {
        position: sticky;
        bottom: 60px; /* Above mobile nav */
        background: white;
        padding: 16px;
        border-top: 2px solid #eee;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    }

    .checkout-button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        font-weight: 600;
    }
}

/* ========== Tablet Optimizations (641px - 1023px) ========== */
@media only screen and (min-width: 641px) and (max-width: 1023px) {
    /* Optimize header for tablet */
    header {
        height: 80px !important;
    }

    header .max-w-7xl {
        height: 80px !important;
        padding: 0 20px !important;
    }

    /* Logo sizing for tablet */
    .logo-main {
        height: 60px !important;
    }

    /* Better spacing for tablet */
    main.max-w-7xl {
        padding: 32px 24px !important;
    }

    /* Optimize glass cards for tablet */
    .glass-card {
        padding: 32px !important;
    }

    .glass-card-subtle {
        padding: 24px !important;
    }

    /* Two-column grid for tablets where appropriate */
    .grid.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Marketplace filter sidebar - keep it visible but narrower */
    .marketplace-filter-sidebar {
        width: 280px !important;
    }

    /* Farm grid - 2 columns on tablet */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Mode switcher - keep horizontal on tablet */
    .mode-switcher-container {
        flex-direction: row !important;
    }

    /* Drag & drop interface - keep 2 columns on tablet */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Process steps - keep horizontal but smaller text */
    .flex.items-center.justify-center.space-x-8 > span {
        font-size: 15px;
    }

    /* Button sizes for tablet */
    .btn-sophisticated {
        padding: 13px 22px !important;
        font-size: 15px !important;
    }

    .btn-primary-transaction,
    .btn-primary-action,
    .btn-navigation {
        padding: 15px 26px !important;
        font-size: 16px !important;
    }

    /* Breadcrumb - slightly larger than mobile */
    .breadcrumb-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .breadcrumb-title {
        font-size: 13px !important;
    }

    .breadcrumb-description {
        font-size: 10px !important;
    }

    /* Modal sizing for tablet */
    .modal-content {
        width: 85% !important;
        max-width: 600px !important;
    }

    /* AI and Marketplace containers */
    .ai-mode-container,
    .marketplace-mode-container {
        padding: 36px 28px !important;
    }

    /* Text sizes for tablet */
    .text-3xl {
        font-size: 28px !important;
    }

    .text-2xl {
        font-size: 22px !important;
    }

    .text-lg {
        font-size: 17px !important;
    }
}

/* Fix order details on mobile */
@media only screen and (max-width: 640px) {
    .order-details-container {
        padding: 12px;
    }

    .order-header {
        flex-direction: column;
        gap: 12px;
    }

    .order-status {
        width: 100%;
        text-align: center;
        padding: 8px;
        border-radius: 8px;
    }

    .order-timeline {
        padding: 0 8px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: 0;
        width: 20px;
        height: 20px;
    }
}

/* Fix farm dashboard on mobile */
@media only screen and (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        background: white;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 12px;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1001;
        width: 44px;
        height: 44px;
        background: white;
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .orders-table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px 4px;
    }

    /* Hide less important columns on mobile */
    .hide-mobile {
        display: none;
    }
}

/* Fix account settings on mobile */
@media only screen and (max-width: 640px) {
    .settings-container {
        padding: 0;
    }

    .settings-tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
        background: white;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .settings-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        white-space: nowrap;
    }

    .settings-content {
        padding: 16px;
    }

    .settings-section {
        margin-bottom: 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }
}

/* ========== Touch-Friendly Interactions ========== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    a,
    button,
    input[type="checkbox"],
    input[type="radio"],
    select {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    button:hover,
    a:hover {
        transform: none;
        box-shadow: none;
    }

    /* Add active states for better feedback */
    button:active,
    a:active {
        opacity: 0.8;
        transform: scale(0.98);
    }

    /* Improve form usability */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on focus */
    }

    /* Disable text selection on buttons */
    button {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* ========== Print Styles ========== */
@media print {
    /* Hide unnecessary elements */
    .no-print,
    .mobile-nav,
    .desktop-nav,
    .feedback-button,
    button,
    .modal {
        display: none !important;
    }

    /* Reset backgrounds */
    body {
        background: white;
        color: black;
    }

    /* Ensure content fits */
    .container {
        width: 100%;
        max-width: none;
    }

    /* Break pages appropriately */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    table {
        page-break-inside: avoid;
    }
}

/* ========== Accessibility Improvements ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    * {
        border-width: 2px !important;
    }

    button,
    input,
    select,
    textarea {
        border: 2px solid currentColor !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --foreground: #ffffff;
        --card-background: #2a2a2a;
        --border-color: #3a3a3a;
    }

    body {
        background: var(--background);
        color: var(--foreground);
    }

    .card {
        background: var(--card-background);
        border-color: var(--border-color);
    }
}

/* ========== Utilities ========== */
/* Responsive spacing utilities */
.p-mobile-2 { padding: 8px; }
.p-mobile-3 { padding: 12px; }
.p-mobile-4 { padding: 16px; }

@media (min-width: 640px) {
    .p-tablet-2 { padding: 8px; }
    .p-tablet-3 { padding: 12px; }
    .p-tablet-4 { padding: 16px; }
}

@media (min-width: 1024px) {
    .p-desktop-2 { padding: 8px; }
    .p-desktop-3 { padding: 12px; }
    .p-desktop-4 { padding: 16px; }
}

/* Responsive text alignment */
.text-mobile-center { text-align: center; }
.text-mobile-left { text-align: left; }
.text-mobile-right { text-align: right; }

@media (min-width: 640px) {
    .text-tablet-center { text-align: center; }
    .text-tablet-left { text-align: left; }
    .text-tablet-right { text-align: right; }
}

@media (min-width: 1024px) {
    .text-desktop-center { text-align: center; }
    .text-desktop-left { text-align: left; }
    .text-desktop-right { text-align: right; }
}

/* Responsive display utilities */
.hidden { display: none !important; }
.block-mobile { display: block !important; }
.flex-mobile { display: flex !important; }
.grid-mobile { display: grid !important; }

@media (min-width: 640px) {
    .hidden-tablet { display: none !important; }
    .block-tablet { display: block !important; }
    .flex-tablet { display: flex !important; }
    .grid-tablet { display: grid !important; }
}

@media (min-width: 1024px) {
    .hidden-desktop { display: none !important; }
    .block-desktop { display: block !important; }
    .flex-desktop { display: flex !important; }
    .grid-desktop { display: grid !important; }
}