/* ============================================
   MAIN.CSS - Optimized Import Structure
   cryptron.network - Organized by Category
   ============================================ */

/* 1. FONTS & BASE */
@import url('fonts.css');
@import url('base.css');

/* 2. ANIMATIONS & LOADING */
@import url('animations.css');
@import url('loading.css');

/* 3. LAYOUT COMPONENTS */
@import url('header.css');
@import url('form.css');
@import url('hero-new.css');
@import url('testimonals.css');

/* 4. MAIN SECTIONS */
@import url('sections.css');

/* 5. COMPONENTS */
@import url('components.css');

/* 6. FOOTER */
@import url('footer.css');
@import url('footer-modal.css');

/* 8. RESP */
@import url('resp/respheader.css');
@import url('resp/resphero.css');
@import url('resp/respform.css');
@import url('resp/respmockup.css');
@import url('resp/resptestimonials.css');
@import url('resp/respfaq.css');
@import url('resp/respfooter.css');
@import url('resp/respfootermodal.css');

@import url('carousel-mobile.css');
@import url('chart-tooltip.css');
@import url('dashboard-reveal.css');
@import url('canvas.css');


/* ============================================
   CRITICAL Z-INDEX HIERARCHY
   ============================================ */

#loadingOverlay { z-index: 100010 !important; }
.auth-modal { z-index: 10001 !important; }
.dropdown-options.active { z-index: 100003 !important; }
.header { z-index: 10000 !important; }
.scroll-pagination { z-index: 9999 !important; }
.nav-overlay { z-index: 9997 !important; }
.form-card { z-index: 100 !important; }

/* ============================================
   FORM ELEMENTS - ALWAYS INTERACTIVE
   ============================================ */

input,
select,
textarea,
button,
label,
option {
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Minimum touch target size */
    .nav-link,
    .btn-signin,
    .scroll-dot,
    .dropdown-option,
    .faq-question,
    .auth-btn,
    .form-submit,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   LANDSCAPE MODE FIX
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    section,
    .hero-section,
    .dashboard-hero-section,
    .mobile-mockup-section,
    .faq-section,
    footer.footer {
        min-height: auto;
        padding: 50px 20px;
    }
    
    .scroll-pagination {
        display: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .scroll-pagination,
    .btn-signin,
    .menu-toggle,
    .nav-overlay,
    #crypto3d-canvas,
    #loadingOverlay,
    .auth-modal {
        display: none !important;
    }
    
    section,
    footer {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--neon-green);
    color: var(--black);
    padding: 12px 24px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-to-main:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        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) {
    :root {
        --text-muted: #ffffff;
        --border-color: rgba(255, 255, 255, 0.5);
    }
    
    .faq-item,
    .form-group,
    .mockup-feature,
    .dropdown-selected {
        border: 2px solid var(--white);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Spacing */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ============================================
   DARK MODE SUPPORT (Future)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

@media (prefers-color-scheme: light) {
    /* Light mode overrides if needed in future */
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration for animations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Contain layout shifts */
.contain-layout {
    contain: layout;
}

.contain-paint {
    contain: paint;
}
