@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&family=JetBrains+Mono:wght@400;700;800&display=swap');

/* Global Light Theme Overrides */
body {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

.nemesis-header-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nemesis-footer-light {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    padding: 20px;
    text-align: center;
    font-size: 0.875rem;
}

.light-glass-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}

.asset-icon {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-block; vertical-align: middle; margin-right: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.network-icon {
    width: 16px; height: 16px; border-radius: 4px;
    display: inline-block; vertical-align: middle; margin-right: 4px;
}

.bg-slate-900 { background-color: #ffffff !important; }
.text-white { color: #0f172a !important; }
.border-slate-700 { border-color: #e2e8f0 !important; }
.text-slate-400 { color: #64748b !important; }
.bg-slate-800 { background-color: #f1f5f9 !important; }
.hover\:bg-slate-700:hover { background-color: #e2e8f0 !important; }
.text-slate-300 { color: #475569 !important; }

.accent-blue { color: #2563eb; }
.accent-bg-blue { background-color: #2563eb; color: #ffffff !important; }

.nemesis-watermark {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw; height: 40vw;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    background-image: url('logo_nemesis.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------------------------------
   DARKNET PORTAL: FLIPCARDS
----------------------------------- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.flip-card-front {
    background-color: #ffffff;
    color: #0f172a;
}

.flip-card-back {
    background-color: #f8fafc;
    color: #334155;
    transform: rotateY(180deg);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ---------------------------------
   DARKNET PORTAL: SLIDING MODAL
----------------------------------- */
.sliding-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sliding-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sliding-modal {
    position: fixed;
    top: 0; right: -800px; /* Hidden off-screen */
    width: 800px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 100001;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.sliding-modal.active {
    right: 0;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}
