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

:root {
  /* Noratam Brand Colors */
  --bg-main: #050b12;
  --bg-surface: #0b151f;
  --bg-surface-elevated: #0d1924;
  --bg-surface-hover: #132232;
  --border-subtle: #253440;
  --border-focus: rgba(255, 106, 0, 0.5);
  
  /* Noratam Orange Accents */
  --accent-orange: #ff6a00;
  --accent-orange-hover: #ff8a22;
  --accent-glow: rgba(255, 106, 0, 0.35);
  --accent-gradient: linear-gradient(135deg, #ff6a00 0%, #ff8a22 100%);
  
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  
  --text-main: #f4f7f9;
  --text-muted: #aab4bd;
  --text-dim: #71808c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Noratam Buttons & Glows */
.btn-noratam {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 106, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-noratam:hover {
  background: linear-gradient(135deg, #ff7b1a 0%, #ffa042 100%);
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.45);
  transform: translateY(-1px);
}

.btn-noratam:active {
  transform: translateY(0);
}

.glow-orange {
  box-shadow: 0 0 25px var(--accent-glow);
}

/* Glassmorphism & Cards */
.noratam-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
}

.noratam-card:hover {
  border-color: rgba(255, 106, 0, 0.3);
}

/* Badge styles */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-recommended {
  background: rgba(255, 106, 0, 0.15);
  color: #ff8a22;
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-draft {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-published {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-skipped {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Transitions */
button, a, input, select, textarea {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================
   Editor & Social Studio Visual WYSIWYG Content Styles
   ============================================================ */
#editor-visual-canvas,
#studio-visual-canvas {
  outline: none;
  font-family: inherit;
  color: #f4f7f9;
  line-height: 1.75;
}

/* Headings */
#editor-visual-canvas h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

#editor-visual-canvas h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff8a22;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

#editor-visual-canvas h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f4f7f9;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#editor-visual-canvas p,
#studio-visual-canvas p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #f4f7f9;
}

/* Inline Styles */
#editor-visual-canvas strong, #studio-visual-canvas strong, #telegram-rendered-content strong,
#editor-visual-canvas b, #studio-visual-canvas b, #telegram-rendered-content b {
  font-weight: 700 !important;
  color: #ffffff !important;
}

#editor-visual-canvas em, #studio-visual-canvas em, #telegram-rendered-content em,
#editor-visual-canvas i, #studio-visual-canvas i, #telegram-rendered-content i {
  font-style: italic !important;
}

#editor-visual-canvas u, #studio-visual-canvas u, #telegram-rendered-content u {
  text-decoration: underline !important;
}

#editor-visual-canvas s, #studio-visual-canvas s, #telegram-rendered-content s,
#editor-visual-canvas strike, #studio-visual-canvas strike, #telegram-rendered-content strike,
#editor-visual-canvas del, #studio-visual-canvas del, #telegram-rendered-content del {
  text-decoration: line-through !important;
  color: #8c9ba5 !important;
}

#studio-visual-canvas a, #telegram-rendered-content a {
  color: #0088cc !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

#editor-visual-canvas a, #editor-preview-content a {
  color: #ff6a00 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* Unordered Lists (Bullets) */
#studio-visual-canvas ul,
#editor-visual-canvas ul,
#editor-preview-content ul,
#telegram-rendered-content ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
  margin: 0.75rem 0 0.75rem 1.5rem !important;
  padding-left: 0.5rem !important;
  display: block !important;
}

/* Ordered Lists */
#studio-visual-canvas ol,
#editor-visual-canvas ol,
#editor-preview-content ol,
#telegram-rendered-content ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
  margin: 0.75rem 0 0.75rem 1.5rem !important;
  padding-left: 0.5rem !important;
  display: block !important;
}

/* List Items */
#studio-visual-canvas li,
#editor-visual-canvas li,
#editor-preview-content li,
#telegram-rendered-content li {
  display: list-item !important;
  margin-bottom: 0.35rem !important;
  color: #f4f7f9 !important;
}

/* Blockquotes in Article Editor */
#editor-visual-canvas blockquote,
#editor-preview-content blockquote {
  display: block !important;
  position: relative !important;
  margin: 1.25rem 0 !important;
  padding: 0.875rem 1.25rem !important;
  background: rgba(13, 25, 36, 0.8) !important;
  border-left: 4px solid #ff6a00 !important;
  border-radius: 0.5rem !important;
  color: #aab4bd !important;
  font-style: italic !important;
}

/* Blockquotes in Social Post Studio (Telegram Style) */
#studio-visual-canvas blockquote,
#telegram-rendered-content blockquote {
  display: block !important;
  position: relative !important;
  margin: 0.875rem 0 !important;
  padding: 0.625rem 1rem !important;
  background: rgba(0, 136, 204, 0.1) !important;
  border-left: 4px solid #0088cc !important;
  border-radius: 0.5rem !important;
  color: #c5d3df !important;
  font-style: italic !important;
}

#studio-visual-canvas blockquote p,
#editor-visual-canvas blockquote p,
#telegram-rendered-content blockquote p {
  margin-bottom: 0 !important;
}
