/*
Theme Name: Librium Tech
Theme URI: https://libriumtech.ai
Author: Librium Tech
Author URI: https://libriumtech.ai
Description: Premium dark-mode theme for Librium Tech — automated PAMM trading platform. Gold-and-black aesthetic with Space Grotesk + Inter typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://libriumtech.ai/terms
Text Domain: librium-tech
Tags: dark, one-column, custom-menu, featured-images
*/

/* ===== CSS Reset & Variables ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 240 10% 4%;
  --foreground: 40 20% 92%;
  --card: 240 8% 8%;
  --card-foreground: 40 20% 92%;
  --primary: 43 65% 54%;
  --primary-foreground: 240 10% 4%;
  --secondary: 240 6% 14%;
  --secondary-foreground: 40 20% 85%;
  --muted: 240 6% 12%;
  --muted-foreground: 240 5% 50%;
  --accent: 43 65% 54%;
  --destructive: 0 84.2% 60.2%;
  --border: 240 6% 16%;
  --input: 240 6% 16%;
  --ring: 43 65% 54%;
  --radius: 0.75rem;
  --gold: 43 65% 54%;
  --gold-light: 43 70% 65%;
  --gold-dark: 43 60% 40%;
  --surface: 240 8% 6%;
  --surface-light: 240 6% 10%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Container ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-display { font-family: 'Space Grotesk', system-ui, sans-serif; }

.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-gold { color: hsl(var(--gold)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-green-500 { color: #22c55e; }

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(43, 65%, 54%), hsl(43, 70%, 70%), hsl(43, 65%, 54%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-background { background: hsl(var(--background)); }
.bg-surface { background: hsl(var(--surface)); }
.bg-card { background: hsl(var(--card)); }
.bg-gradient-dark { background: linear-gradient(180deg, hsl(240,10%,4%), hsl(240,8%,6%)); }
.bg-gradient-card { background: linear-gradient(145deg, hsl(240,8%,10%), hsl(240,8%,6%)); }
.bg-gradient-gold { background: linear-gradient(135deg, hsl(43,65%,54%), hsl(43,60%,40%)); }
.bg-gold-10 { background: hsl(43,65%,54%,0.1); }
.bg-gold-20 { background: hsl(43,65%,54%,0.2); }
.bg-gold-5 { background: hsl(43,65%,54%,0.05); }

.border-gold-subtle { border-color: hsl(43,65%,54%,0.15); }
.border-border { border-color: hsl(var(--border)); }
.border-destructive-20 { border-color: hsl(0,84.2%,60.2%,0.2); }
.border-destructive-30 { border-color: hsl(0,84.2%,60.2%,0.3); }
.border-gold-20 { border-color: hsl(43,65%,54%,0.2); }
.border-gold-30 { border-color: hsl(43,65%,54%,0.3); }

.glow-gold { box-shadow: 0 0 40px hsl(43,65%,54%,0.15), 0 0 80px hsl(43,65%,54%,0.05); }
.shadow-gold { box-shadow: 0 4px 30px hsl(43,65%,54%,0.2); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 0.25rem); }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-16 { padding-top: 4rem; }
.pt-3 { padding-top: 0.75rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.w-full { width: 100%; }
.w-px { width: 1px; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-48 { width: 12rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: 0.025em; }
.whitespace-nowrap { white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-all { transition: all 0.15s; }
.duration-500 { transition-duration: 500ms; }

.opacity-0 { opacity: 0; }
.opacity-90 { opacity: 0.9; }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-gold:hover { color: hsl(var(--gold)); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gold-10:hover { background: hsl(43,65%,54%,0.1); }
.hover\:border-gold:hover { border-color: hsl(var(--gold)); }
.hover\:border-gold-30:hover { border-color: hsl(43,65%,54%,0.3); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.group:hover .group-hover-opacity-100 { opacity: 1; }
.group:hover .group-hover-glow { box-shadow: 0 0 40px hsl(43,65%,54%,0.15), 0 0 80px hsl(43,65%,54%,0.05); }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s; border: none; outline: none;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-sm { height: 2.25rem; padding: 0 0.75rem; border-radius: calc(var(--radius) - 2px); }
.btn-default { height: 2.5rem; padding: 0 1rem; }
.btn-lg { height: 2.75rem; padding: 0 2rem; border-radius: calc(var(--radius) - 2px); }
.btn-xl { height: 3.5rem; padding: 0 3rem; border-radius: calc(var(--radius) + 0.25rem); font-size: 1.125rem; }
.btn-icon { height: 2.5rem; width: 2.5rem; padding: 0; }

.btn-gold {
  background: linear-gradient(135deg, hsl(43,65%,54%), hsl(43,60%,40%));
  color: hsl(var(--primary-foreground));
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600; letter-spacing: 0.025em;
  box-shadow: 0 4px 30px hsl(43,65%,54%,0.2);
}
.btn-gold:hover { filter: brightness(1.1); }

.btn-gold-outline {
  background: transparent;
  border: 2px solid hsl(43,65%,54%,0.4);
  color: hsl(var(--gold));
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600; letter-spacing: 0.025em;
}
.btn-gold-outline:hover { background: hsl(43,65%,54%,0.1); border-color: hsl(var(--gold)); }

.btn-ghost {
  background: transparent; color: hsl(var(--foreground));
}
.btn-ghost:hover { background: hsl(var(--accent)); color: hsl(var(--accent)); }

/* ===== Input ===== */
.input {
  width: 100%; height: 2.75rem; padding: 0 1rem;
  border-radius: var(--radius); border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  font-size: 0.875rem;
}
.input::placeholder { color: hsl(var(--muted-foreground)); }
.input:focus { outline: none; box-shadow: 0 0 0 2px hsl(43,65%,54%,0.5); }

/* ===== Grids ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ===== Accordion (FAQ) ===== */
.accordion-item { border: 1px solid hsl(43,65%,54%,0.15); border-radius: calc(var(--radius) + 0.25rem); padding: 0 1.5rem; background: linear-gradient(145deg, hsl(240,8%,10%), hsl(240,8%,6%)); }
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1rem 0; font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600; color: hsl(var(--foreground)); cursor: pointer;
  background: none; border: none; text-align: left; font-size: 1rem;
  transition: color 0.15s;
}
.accordion-trigger:hover { color: hsl(var(--gold)); }
.accordion-trigger::after { content: '+'; font-size: 1.25rem; transition: transform 0.2s; }
.accordion-trigger.active::after { content: '−'; }
.accordion-content { display: none; padding-bottom: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; }
.accordion-content.open { display: block; }

/* ===== Switch ===== */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: hsl(var(--muted)); border-radius: 9999px; transition: 0.2s;
}
.switch-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .switch-slider { background: hsl(var(--gold)); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-36 { padding-top: 9rem; padding-bottom: 9rem; }
  .md\:pt-36 { padding-top: 9rem; }
  .md\:pb-24 { padding-bottom: 6rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:w-56 { width: 14rem; }
  .md\:h-56 { height: 14rem; }
  .md\:space-y-24 > * + * { margin-top: 6rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:flex-row-reverse { flex-direction: row-reverse; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:block { display: block; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:flex-row-reverse { flex-direction: row-reverse; }
  .lg\:text-left { text-align: left; }
}

/* Mobile nav toggle */
.mobile-nav { display: none; }
.mobile-nav.open { display: flex; flex-direction: column; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.hamburger { display: block; background: none; border: none; color: hsl(var(--foreground)); cursor: pointer; }
@media (min-width: 768px) { .hamburger { display: none; } }
