/* ==========================================================================
   MIKEL PROJEK — MASTER DESIGN SYSTEM & AUTOMOTIVE UI
   ========================================================================== */

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

:root {
  /* Color Palette — Light Mode Default */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  
  --border-color: #e2e8f0;
  --border-glass: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.2);
  
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

[data-theme="dark"] {
  /* Color Palette — Dark Mode (Modern Automotive High-Tech) */
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  --bs-body-color: #f8fafc;
  --bs-body-bg: #090d16;
  --bs-secondary-color: #cbd5e1;
  --bs-tertiary-color: #cbd5e1;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-bg: #111827;
  --bs-tertiary-bg: #1e293b;
  --bs-border-color: #334155;
  
  --border-color: #334155;
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(239, 68, 68, 0.35);
  
  --navbar-bg: rgba(15, 23, 42, 0.95);
  color-scheme: dark;
}

[data-theme="dark"] .text-dark:not(.badge):not(.btn) {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-body-secondary,
[data-theme="dark"] .text-black-50,
[data-theme="dark"] .text-white-50,
[data-theme="dark"] .text-body,
[data-theme="dark"] .text-reset,
[data-theme="dark"] .text-light,
[data-theme="dark"] .text-dark:not(.badge):not(.btn) {
  color: #ffffff !important;
  opacity: 1 !important;
}

[data-theme="dark"] body p,
[data-theme="dark"] body small,
[data-theme="dark"] body label,
[data-theme="dark"] body li,
[data-theme="dark"] body td,
[data-theme="dark"] body th,
[data-theme="dark"] body dt,
[data-theme="dark"] body dd,
[data-theme="dark"] body figcaption,
[data-theme="dark"] body .form-text {
  color: #ffffff !important;
  opacity: 1 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.product-search-icon {
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .product-search-icon {
  color: #ffffff;
  background-color: #111827;
  border-color: #334155;
}

/* Global Reset & Base */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Navbar */
.navbar-custom {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  padding: 0.8rem 0;
}

.navbar-brand .brand-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand span.highlight {
  color: var(--accent-red);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin: 0 0.4rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 50%),
              radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.08), transparent 50%);
  overflow: hidden;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span.text-gradient {
  background: linear-gradient(135deg, var(--accent-red), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Cards & Glassmorphism */
.card-custom {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 68, 68, 0.4);
}

.home-products-section {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Buttons */
.btn-primary-mikel {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-hover));
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
}

.btn-primary-mikel:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

.btn-outline-mikel {
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-outline-mikel:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Badge tags */
.badge-service {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
}

.badge-stock-ok {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-stock-low {
  background-color: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* Footer */
.footer-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-secondary);
}

.footer-section .brand-logo-text {
  color: var(--text-primary);
}

.footer-section .brand-logo-text .highlight {
  color: var(--accent-red);
}

.footer-section .footer-info-heading,
.footer-section .footer-info-link,
.footer-section .footer-info-list {
  color: var(--text-primary);
}

.footer-section .footer-info-link:hover {
  color: var(--accent-red);
}

.promo-details {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.promo-details strong {
  color: var(--text-primary);
}

.warranty-result .warranty-label,
.warranty-result .warranty-value {
  color: var(--text-primary);
}

/* Dark mode theme toggle button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}
