/* PRIMA STEEL - Premium Industrial Luxury Design System */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* Light Mode Variables (Default Root) */
:root {
  --font-vazir: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-obsidian: #f8fafc;
  --bg-graphite: #f1f5f9;
  --bg-surface: #ffffff;
  --border-metal: #e2e8f0;
  --border-metal-hover: #cbd5e1;
  --accent-orange: #ff5500;
  --accent-orange-hover: #ff7700;
  --accent-orange-glow: rgba(255, 85, 0, 0.25);
  --text-primary: #0f172a;
  --text-muted: #475569;
}

/* Dark Mode Variables */
html.dark {
  --bg-obsidian: #07080b;
  --bg-graphite: #0e1117;
  --bg-surface: #141822;
  --border-metal: #232838;
  --border-metal-hover: #3b4258;
  --accent-orange: #ff5500;
  --accent-orange-hover: #ff7700;
  --accent-orange-glow: rgba(255, 85, 0, 0.4);
  --text-primary: #e2e8f0;
  --text-muted: #8e9bb0;
}

body {
  font-family: var(--font-vazir);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-vazir {
  font-family: var(--font-vazir) !important;
}

/* Steel Pattern Background */
.bg-steel-pattern {
  background-color: #f8fafc;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.04) 0%, transparent 60%),
                    linear-gradient(to right, rgba(203, 213, 225, 0.4) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(203, 213, 225, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

html.dark .bg-steel-pattern {
  background-color: #07080b;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.05) 0%, transparent 60%),
                    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Glassmorphism & Cards */
.glass-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html.dark .glass-panel {
  background: rgba(20, 24, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-panel-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 20px 40px var(--accent-orange-glow);
}

/* Buttons */
.btn-molten {
  background: linear-gradient(135deg, #ff5500 0%, #d44000 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 20px var(--accent-orange-glow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-molten:hover {
  background: linear-gradient(135deg, #ff7700 0%, #ff5500 100%);
  box-shadow: 0 0 30px rgba(255, 85, 0, 0.7);
  transform: translateY(-2px);
}

.btn-steel-outline {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.3s ease;
}

html.dark .btn-steel-outline {
  border: 1px solid rgba(226, 232, 240, 0.2);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}

.btn-steel-outline:hover {
  border-color: #ff5500;
  color: #ff5500 !important;
  background: rgba(255, 85, 0, 0.08);
}

/* Form Fields Light / Dark Mode Override */
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.dark input[type="text"], 
html.dark input[type="email"], 
html.dark input[type="number"], 
html.dark select, 
html.dark textarea {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8 !important;
}

html.dark input::placeholder, 
html.dark textarea::placeholder {
  color: #64748b !important;
}

/* Typography Text Overrides for Light Mode */
html:not(.dark) h1, 
html:not(.dark) h2, 
html:not(.dark) h3, 
html:not(.dark) h4,
html:not(.dark) .text-white {
  color: #0f172a !important;
}

html:not(.dark) .text-brand-muted,
html:not(.dark) .text-brand-silver,
html:not(.dark) .text-gray-300,
html:not(.dark) .text-gray-400 {
  color: #334155 !important;
}

html:not(.dark) .bg-brand-black,
html:not(.dark) .bg-brand-black\/60,
html:not(.dark) .bg-brand-black\/80,
html:not(.dark) .bg-brand-surface {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html:not(.dark) .border-brand-border {
  border-color: #e2e8f0 !important;
}

/* Retain Orange Button text color */
html:not(.dark) .btn-molten,
html:not(.dark) .btn-molten * {
  color: #ffffff !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--border-metal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff5500;
}
