/* Mobile-Optimized Overrides - Compact Design */
/* Version: 1.0.9 - Active */

/* Reduce base font size for mobile */
@media (max-width: 768px) {
    :root {
        --radius: 8px;
        --shadow: 0 2px 4px -1px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    }
    
    body {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Compact Navigation */
    .top-nav {
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .nav-logo {
        width: 28px;
        height: 28px;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .wallet-info {
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .wallet-info span {
        padding: 3px 6px;
    }
    
    /* Compact Header */
    .header {
        padding: 12px 0;
        margin-bottom: 12px;
    }
    
    .header h1 {
        font-size: 1.3rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .header p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* Compact Trade Features */
    .trade-features {
        gap: 8px;
        margin-top: 8px;
    }
    
    .trade-features span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Compact Buttons */
    .btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
        min-height: 32px;
    }
    
    .btn-large {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* Compact Cards */
    .trade-card, .card {
        padding: 12px;
        border-radius: 6px;
    }
    
    .trade-header {
        margin-bottom: 10px;
        padding: 12px;
    }
    
    .trade-header h2 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .trade-header p {
        font-size: 0.75rem;
    }
    
    /* Compact Form Elements */
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-input,
    .form-select {
        padding: 7px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    /* Compact Swap Details */
    .swap-details-box {
        padding: 12px;
        gap: 10px;
    }
    
    .swap-amount {
        font-size: 1.3rem;
    }
    
    .swap-token {
        font-size: 0.75rem;
    }
    
    .swap-arrow {
        font-size: 1.2rem;
    }
    
    /* Compact Info Boxes */
    .info-box {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .info-box h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    /* Compact Security Notice */
    .security-notice {
        padding: 12px;
        margin: 16px 0;
    }
    
    .security-notice h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .security-notice ul {
        gap: 6px;
    }
    
    .security-notice li {
        font-size: 0.8rem;
        padding-left: 20px;
    }
    
    /* Compact Created Offer Section */
    .created-offer-section {
        padding: 16px;
        margin-top: 16px;
    }
    
    .offer-success-header h3 {
        font-size: 1.2rem;
    }
    
    .offer-timer {
        font-size: 0.8rem;
    }
    
    .offer-share-section h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .offer-link-input {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .qr-code-section {
        padding: 12px;
    }
    
    .qr-code-section img {
        max-width: 180px !important;
        max-height: 180px !important;
    }
    
    /* Compact Detail Rows */
    .detail-row {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .detail-label {
        font-size: 0.8rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    /* Compact Status Badge */
    .status-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Compact Buyer View */
    .buyer-view-section {
        padding: 16px;
    }
    
    .buyer-offer-card {
        padding: 16px;
    }
    
    .buyer-offer-card h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .buyer-actions {
        gap: 10px;
        margin-top: 16px;
    }
    
    /* Compact Inline Messages */
    .inline-status-message {
        margin-top: 12px;
        padding: 10px 14px;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Compact Tabs */
    .tabs {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* Compact Offer Items */
    .offer-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .offer-item h3 {
        font-size: 1rem;
    }
    
    .offer-amounts {
        font-size: 0.85rem;
    }
    
    .offer-meta {
        font-size: 0.75rem;
        gap: 8px;
    }
    
    /* Reduce Modal Sizes */
    .modal-content {
        padding: 16px;
        max-width: 95%;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 12px 0;
    }
    
    /* Compact Action Buttons Group */
    .offer-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .offer-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .trade-header h2 {
        font-size: 1.1rem;
    }
    
    .swap-amount {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .trade-card {
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .qr-code-section img {
        max-width: 150px !important;
        max-height: 150px !important;
    }
    
    .security-notice {
        padding: 10px;
    }
    
    .security-notice li {
        font-size: 0.75rem;
    }
}

/* Landscape orientation optimization */
@media (max-height: 700px) and (orientation: landscape) {
    .top-nav {
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .header {
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .trade-card {
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .created-offer-section {
        padding: 12px;
        margin-top: 12px;
    }
    
    .qr-code-section {
        padding: 8px;
    }
    
    .qr-code-section img {
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .security-notice {
        margin: 10px 0;
        padding: 8px;
    }
    
    .security-notice ul {
        gap: 4px;
    }
}
