/* 
    NexTrade Core Design System (2026)
    Base Layouts, Variables, and Structural Utilities
*/

:root {
    --nt-vert: #143b2a;
    --nt-vert-clair: #205c42;
    --nt-vert-neon: #10b981;
    --nt-or: #d4af37;
    --nt-or-c: #e8c96a;
    --nt-bg: #f8fafc;
    --nt-card: #ffffff;
    --nt-texte: #0f172a;
    --nt-texte-muted: #64748b;
    --nt-border: #e2e8f0;
    
    --nt-radius-sm: 8px;
    --nt-radius: 16px;
    --nt-radius-lg: 24px;
    --nt-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* DARK MODE OVERRIDES (PHASE 2) */
.dark-theme {
    --nt-bg: #0f172a;
    --nt-card: #1e293b;
    --nt-texte: #f8fafc;
    --nt-texte-muted: #94a3b8;
    --nt-border: #334155;
    --nt-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --nt-touch-target: 44px; /* Phase 3: Apple/Google standard */
}

/* MOBILE OPTIMIZATIONS (PHASE 3) */
input, select, textarea, button, .nav-links a {
    min-height: var(--nt-touch-target);
}

/* SKELETON LOADERS */
.nt-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: ntSkeletonLoading 1.5s infinite;
    border-radius: 8px;
    height: 1em;
}

@keyframes ntSkeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* PULL-TO-REFRESH CONTAINER */
.ptr-loading {
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
    background: var(--nt-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nt-vert-neon);
    font-weight: 800;
    font-size: 14px;
}
.ptr-active .ptr-loading { height: 60px; }

/* Transitional smooth effect */
body { transition: background 0.3s ease, color 0.3s ease; }

/* Base structural layout for super-app modules */
.nt-super-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--nt-bg);
}

@media (max-width: 1024px) {
    .nt-super-layout {
        grid-template-columns: 1fr;
    }
}

.nt-content-well {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .nt-content-well {
        padding: 20px 15px;
    }
}

/* B2B Hub Components */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.hub-card {
    background: #fff;
    border-radius: var(--nt-radius);
    padding: 25px;
    border: 1px solid var(--nt-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.hub-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 59, 42, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
