/* ==========================================================================
   Responsive Design System for Cryptora (Clean CSS)
   ========================================================================== */

/* 1. Large Screens (up to 1280px) */
@media (max-width: 1280px) {
    .main-content {
        padding: 2.5rem 2rem;
    }
}

/* 2. Tablet Screens (up to 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    /* Grid Stacking for all columns */
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .col-span-8,
    .col-span-7,
    .col-span-6,
    .col-span-5,
    .col-span-4,
    .col-span-3,
    .col-span-2 {
        grid-column: span 12 / span 12;
    }

    /* Hero Section Stacking */
    .hero-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-text-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-title,
    .hero-title-highlight {
        font-size: 2.5rem;
    }

    .hero-form-col {
        max-width: 100%;
        width: 100%;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 3. Small Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    .nav-content {
        height: 72px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .flex-column-gap-3 {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .flex-column-gap-3 > .btn {
        flex: 1 1 0;
        min-width: 0;
    }
    .main-content {
        padding: 1.5rem 1rem;
    }

    .hero-title,
    .hero-title-highlight {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .otp-card {
        padding: 1.5rem;
    }

    .otp-digit-inputs {
        gap: 0.375rem;
    }

    .otp-digit-input {
        width: 100%;
        height: 48px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
}

/* 4. Ultra Small Screens (up to 480px) */
@media (max-width: 480px) {
    .nav-content {
        height: 64px;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-balance-pill {
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
    }

    .hero-title,
    .hero-title-highlight {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.7rem;
    }



    .otp-digit-input {
        /*width: 32px;*/
        height: 44px;
        border-radius: 10px;
        font-size: 1rem;
        border-width: 2px;
    }

    /* Transaction History Ledger Mobile Adjustments */
    .tx-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .tx-row-left {
        width: 100%;
    }

    .tx-row-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
        padding-top: 0.75rem;
        gap: 0.5rem;
    }


    /* Ultra-small screen compact adjustments for transaction items */
    .tx-item-row {
        padding: 0.75rem 0.875rem;
        border-width: 2px;
        border-radius: 12px;
    }

    .tx-icon-box {
        width: 36px;
        height: 36px;
        border-width: 2px;
        border-radius: 8px;
    }

    .tx-icon-box i {
        width: 16px;
        height: 16px;
        stroke-width: 2.2;
    }

    .tx-info-title {
        font-size: 0.8rem;
    }

    .tx-info-meta {
        font-size: 10px;
    }

    .tx-meta-hash {
        font-size: 10px;
    }

    .tx-amount-text {
        font-size: 0.8rem;
    }

    .tx-status-badge {
        font-size: 9px;
        min-width: 65px;
        padding: 0.15rem 0.5rem;
    }
}



/* Listings Responsive Grid Overrides */
@media (max-width: 1024px) {
    .listings-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .listings-grid-layout .col-span-3 {
        grid-column: span 6 / span 6 !important;
    }
}

@media (max-width: 640px) {
    .listings-grid-layout {
        grid-template-columns: 1fr !important;
    }
    .listings-grid-layout .col-span-3 {
        grid-column: span 12 / span 12 !important;
    }
}


