/* PipeCraft Abstract Geometric Art Gallery Theme (2026+) */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cream Canvas & Earth Tone Palette */
  --bg-void: #F5F2EB;
  --bg-canvas-textured: #F4F0EA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-sidebar: #ECE7DE;
  
  /* Muted Terracotta & Olive Accents */
  --accent-terracotta: #C86D51;
  --accent-terracotta-glow: rgba(200, 109, 81, 0.2);
  --accent-olive: #556B2F;
  --accent-olive-light: #6B705C;
  --accent-olive-glow: rgba(85, 107, 47, 0.2);
  
  /* Ink & Typography Contrast */
  --text-primary: #1C1B18;
  --text-secondary: #2A2925;
  --text-muted: #4A4740;
  
  /* Fine Architectural Gridlines */
  --border-hairline: rgba(28, 27, 24, 0.18);
  --border-active: rgba(200, 109, 81, 0.4);
  
  /* Typography */
  --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Layout Spacing & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-gallery: 0 12px 30px rgba(28, 27, 24, 0.05);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-void) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Solitary Distinct Terracotta Focal Circle */
.focal-circle-terracotta {
  width: 200px;
  height: 200px;
  background: var(--accent-terracotta);
  border-radius: 50%;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.15), 0 20px 40px var(--accent-terracotta-glow);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.focal-circle-terracotta span {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.focal-circle-terracotta:hover {
  transform: scale(1.05);
}

/* Glassmorphic Gallery Card Utility */
.glass-card {
  background: #FFFFFF !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hairline) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gallery);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-active) !important;
}

/* Header & Navigation Bar */
.navbar-sleek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(245, 242, 235, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Custom Art Gallery Web Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-switch-view {
  background: rgba(28, 27, 24, 0.05);
  border: 1px solid var(--border-hairline);
  color: #1C1B18 !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-switch-view span {
  color: #1C1B18 !important;
  font-weight: 600 !important;
}

.btn-switch-view:hover {
  border-color: var(--accent-terracotta);
  background: var(--accent-terracotta-glow);
  color: var(--accent-terracotta) !important;
}

.btn-switch-view:hover span {
  color: var(--accent-terracotta) !important;
}

/* STRICT HIGH CONTRAST DARK TEXT RULES OVER ALL TEMPLATES & TAILWIND CLASSES */
h1, h2, h3, h4, h5, h6, .text-white, .text-slate-100, .text-slate-200 {
  color: #1C1B18 !important;
  font-weight: 700;
}

p, body, article, main, nav, section, div, li, td, th {
  color: #2A2925;
}

.text-slate-300, .text-slate-400, .text-slate-500 {
  color: #3A3833 !important;
}

.text-slate-600, .text-muted {
  color: #58554E !important;
}

/* Backgrounds & Borders */
.bg-slate-950, .bg-slate-900, .bg-slate-900\/50, .bg-slate-800, .bg-brand-dark, .bg-brand-card {
  background-color: #FFFFFF !important;
  color: #1C1B18 !important;
}

.border-slate-800, .border-slate-700, .border-brand-border, .border-brand-border\/60 {
  border-color: rgba(28, 27, 24, 0.18) !important;
}

/* Code Blocks in Lessons */
pre, code {
  background-color: #ECE7DE !important;
  color: #C86D51 !important;
  border: 1px solid rgba(28, 27, 24, 0.18) !important;
  font-weight: 500;
}

/* Utility Animations */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.hidden {
  display: none !important;
}

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