/* TECHLOOP - High-End GreenTech & Neo-Brutalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-400: #34d399;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-900: #064e3b;
  
  --dark-bg: #0b1320;
  --dark-card: #131f33;
  --dark-border: #1e2d4a;
  
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-border: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #64748b;

  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.3);
  --shadow-glow-lg: 0 0 35px rgba(16, 185, 129, 0.45);
}

/* Base Reset & RTL Support */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', 'Readex Pro', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
  background-color: var(--dark-bg);
  color: #f1f5f9;
  --light-card: var(--dark-card);
  --light-border: var(--dark-border);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-500);
  border-radius: 99px;
}

/* Glassmorphism & Neo-Brutalism */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark .glass-panel {
  background: rgba(19, 31, 51, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.dark .glass-nav {
  background: rgba(11, 19, 32, 0.94);
  border-bottom: 1px solid rgba(30, 45, 74, 0.8);
}

.neo-card {
  border: 2px solid #0f172a;
  box-shadow: 4px 4px 0px #0f172a;
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.neo-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #059669;
}

body.dark .neo-card {
  border: 2px solid #10b981;
  box-shadow: 4px 4px 0px #10b981;
}

body.dark .neo-card:hover {
  box-shadow: 7px 7px 0px #34d399;
}

.neo-btn {
  border: 2px solid #0f172a;
  box-shadow: 3px 3px 0px #0f172a;
  font-weight: 800;
  transition: all 0.15s ease;
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #0f172a;
}

/* Stress Test Badges (FurMark, CrystalDiskInfo, MemTest86, Geekbench) */
.badge-test {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.1);
}

.badge-furmark {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

body.dark .badge-furmark {
  background: #450a0a;
  color: #fca5a5;
  border-color: #991b1b;
}

.badge-crystaldisk {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

body.dark .badge-crystaldisk {
  background: #172554;
  color: #93c5fd;
  border-color: #1e40af;
}

.badge-memtest {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

body.dark .badge-memtest {
  background: #052e16;
  color: #86efac;
  border-color: #166534;
}

/* Photo Slots Uploader (Depop Inspired) */
.photo-slot {
  aspect-ratio: 1;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

body.dark .photo-slot {
  border-color: #334155;
  background: #0f172a;
}

.photo-slot:hover {
  border-color: #10b981;
  background: #ecfdf5;
}

body.dark .photo-slot:hover {
  background: #064e3b;
}

.photo-slot-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Trade Offer Negotiation Cards */
.trade-offer-card {
  border: 2px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1rem;
  background: #ffffff;
  transition: all 0.2s ease;
}

body.dark .trade-offer-card {
  border-color: #1e2d4a;
  background: #131f33;
}

.trade-offer-card.active {
  border-color: #10b981;
  box-shadow: var(--shadow-glow);
}

/* Glow & Pulse Effects */
.glow-emerald {
  box-shadow: var(--shadow-glow-lg);
}

.animate-spin-slow {
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
