/* Editorial Aesthetic Theme Styles for Zahid Online Help Center */

/* ==========================================================================
   Global Dynamic Typography Variable (Inter, Poppins, Space Grotesk)
   ========================================================================== */
:root {
  --site-font-family: 'Inter', sans-serif;
  --active-font-name: 'Inter';
}

body,
h1, h2, h3, h4, h5, h6,
p, span:not(.font-mono), a, button, input, select, textarea, label,
.font-sans, .font-heading {
  font-family: var(--site-font-family);
}

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

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

html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip; /* Modern clean containment without disrupting sticky navigation */
  -webkit-text-size-adjust: 100%;
}

/* Ensure media elements never exceed their parent container */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Word break containment for typography across all viewports */
h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Smooth Theme Transitions */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease !important;
}

/* Theme Toggle Icons Display */
html.dark .theme-sun-icon,
html[data-theme="dark"] .theme-sun-icon {
  display: inline-block !important;
}
html.dark .theme-moon-icon,
html[data-theme="dark"] .theme-moon-icon {
  display: none !important;
}
html.light .theme-sun-icon,
html[data-theme="light"] .theme-sun-icon {
  display: none !important;
}
html.light .theme-moon-icon,
html[data-theme="light"] .theme-moon-icon {
  display: inline-block !important;
}

/* ==========================================================================
   1. DARK MODE (Default/Main Futuristic Design)
   ========================================================================== */

/* Editorial Deep Pitch Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #39FF14;
}

/* Subtle Editorial Background Grid lines */
.bg-editorial-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Editorial Typography */
.tracking-editorial {
  letter-spacing: -0.04em;
}

.leading-editorial {
  line-height: 0.95;
}

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

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

/* Editorial Card Glow Accent */
.hover-neon-glow:hover {
  box-shadow: 0 0 30px -4px rgba(57, 255, 20, 0.4);
  border-color: rgba(57, 255, 20, 0.6);
}

/* Glass effect */
.glass-panel {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Line clamp helpers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   2. LIGHT MODE (Clean, Premium, Professional Daytime Theme)
   ========================================================================== */

/* Body & Base Canvas */
html.light body,
html.light .bg-dark-bg {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light ::selection {
  background-color: #16a34a !important;
  color: #ffffff !important;
}

/* Scrollbars in Light Mode */
html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* Background grid in Light Mode */
html.light .bg-editorial-grid {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px) !important;
}

/* Text Hierarchy & Contrast in Light Mode */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
html.light .text-white {
  color: #0f172a !important;
}

html.light p,
html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-100,
html.light .text-slate-200 {
  color: #1e293b !important;
}

html.light .text-slate-400 {
  color: #64748b !important;
}

html.light .text-slate-500 {
  color: #94a3b8 !important;
}

/* Brand Accent Text (Rich Emerald Green for high readability on white) */
html.light .text-neon-400,
html.light .text-neon-500 {
  color: #15803d !important;
}

html.light .bg-neon-dim {
  background-color: rgba(22, 163, 74, 0.08) !important;
  color: #15803d !important;
}

/* Borders & Dividers in Light Mode */
html.light .border-dark-border,
html.light [class*="border-dark-border"] {
  border-color: #e2e8f0 !important;
}

html.light [class*="border-neon-500"] {
  border-color: rgba(22, 163, 74, 0.3) !important;
}

/* Header & Announcement Bar */
html.light #top-announcement-bar {
  background-color: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html.light #top-announcement-bar a {
  color: #334155 !important;
}

html.light #top-announcement-bar a:hover {
  color: #16a34a !important;
}

html.light header#main-site-header {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05) !important;
}

html.light #desktop-nav-menu a {
  color: #475569 !important;
}

html.light #desktop-nav-menu a:hover {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
}

html.light #desktop-nav-menu a.bg-neon-dim {
  color: #15803d !important;
  background-color: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  font-weight: 700 !important;
}

/* Logo in Light Mode */
html.light #brand-home-link > div {
  background: #ffffff !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
  box-shadow: 0 2px 8px -2px rgba(22, 163, 74, 0.2) !important;
}

html.light #brand-home-link span.text-neon-500 {
  color: #16a34a !important;
}

html.light #brand-home-link span.text-white {
  color: #0f172a !important;
}

html.light #brand-home-link span.bg-neon-dim {
  background-color: rgba(22, 163, 74, 0.09) !important;
  color: #15803d !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
}

html.light #brand-home-link p {
  color: #64748b !important;
}

/* Cards & Surfaces in Light Mode */
html.light .bg-dark-surface {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .bg-dark-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
}

html.light .hover\:bg-dark-cardHover:hover {
  background-color: #f8fafc !important;
}

html.light [id^="category-card-"]:hover,
html.light [id^="service-cat-"]:hover,
html.light [id^="service-card-"]:hover {
  border-color: rgba(22, 163, 74, 0.45) !important;
  box-shadow: 0 8px 30px -4px rgba(22, 163, 74, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.04) !important;
}

html.light [id^="category-card-"]:hover h3,
html.light [id^="service-cat-"]:hover h3,
html.light [id^="service-card-"]:hover h3 {
  color: #15803d !important;
}

/* Secondary surface containers inside cards */
html.light .bg-dark-surface\/90,
html.light .bg-dark-surface\/60 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light span.bg-dark-surface {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

/* Hero Section in Light Mode */
html.light #homepage-hero {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light #homepage-hero .bg-clip-text {
  background-image: linear-gradient(135deg, #16a34a 0%, #059669 50%, #0d9488 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

html.light #homepage-hero .inline-flex.rounded-full {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

html.light #homepage-hero .bg-dark-card {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* Buttons in Light Mode (Professional Green Styling) */
html.light .bg-neon-500 {
  background-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px -1px rgba(22, 163, 74, 0.35) !important;
}

html.light .bg-neon-500:hover,
html.light .hover\:bg-neon-400:hover {
  background-color: #15803d !important;
  color: #ffffff !important;
}

/* Card "Open" action buttons */
html.light a[id^="btn-view-services-"],
html.light a[id^="btn-cat-view-"] {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

html.light a[id^="btn-view-services-"]:hover,
html.light a[id^="btn-cat-view-"]:hover,
html.light .group:hover a[id^="btn-view-services-"],
html.light .group:hover a[id^="btn-cat-view-"] {
  background-color: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 14px -1px rgba(22, 163, 74, 0.3) !important;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  cursor: pointer;
}

html.light .theme-toggle-btn {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html.light .theme-toggle-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.dark .theme-toggle-btn {
  background-color: #0D0D0D !important;
  border-color: #222222 !important;
  color: #cbd5e1 !important;
}

html.dark .theme-toggle-btn:hover {
  border-color: #4dff2b !important;
  color: #ffffff !important;
}

/* Secondary header buttons (search trigger, mobile menu) */
html.light #search-modal-trigger-btn,
html.light #mobile-search-btn,
html.light #mobile-nav-toggle-btn {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

html.light #search-modal-trigger-btn:hover,
html.light #mobile-search-btn:hover,
html.light #mobile-nav-toggle-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* How It Works Section */
html.light #how-it-works-section {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light #how-it-works-section .bg-dark-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light #how-it-works-section .w-10.h-10 {
  background-color: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  color: #16a34a !important;
}

/* WhatsApp Callout Banner in Light Mode */
html.light #whatsapp-callout-banner .rounded-3xl {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%) !important;
  border: 1px solid rgba(22, 163, 74, 0.3) !important;
  box-shadow: 0 10px 30px -5px rgba(22, 163, 74, 0.12) !important;
}

html.light #whatsapp-callout-banner h2 {
  color: #0f172a !important;
}

html.light #whatsapp-callout-banner p {
  color: #334155 !important;
}

/* Footer in Light Mode */
html.light #main-site-footer {
  background-color: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0 !important;
}

html.light #main-site-footer h4 {
  color: #15803d !important;
}

html.light #main-site-footer p,
html.light #main-site-footer a {
  color: #475569 !important;
}

html.light #main-site-footer a:hover {
  color: #16a34a !important;
}

html.light #main-site-footer .border-dark-border {
  border-color: #e2e8f0 !important;
}

html.light #main-site-footer .bg-neon-500\/10 {
  background-color: #ffffff !important;
  border-color: rgba(22, 163, 74, 0.3) !important;
  color: #16a34a !important;
}

html.light #main-site-footer .bg-neon-500\/10:hover {
  background-color: #16a34a !important;
  color: #ffffff !important;
}

/* Mobile Drawer Menu in Light Mode */
html.light #mobile-drawer-menu {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

html.light #mobile-drawer-menu nav a {
  color: #475569 !important;
}

html.light #mobile-drawer-menu nav a:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light #mobile-drawer-menu nav a.bg-neon-dim {
  background-color: rgba(22, 163, 74, 0.08) !important;
  color: #15803d !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  font-weight: 700 !important;
}

/* Search Modal in Light Mode */
html.light #quick-search-modal .bg-dark-card {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
}

html.light #quick-search-input {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html.light #quick-search-input::placeholder {
  color: #94a3b8 !important;
}

html.light #quick-search-results a,
html.light #quick-search-results > div {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light #quick-search-results a:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Form Inputs in Light Mode */
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2) !important;
}

html.light label {
  color: #334155 !important;
}

html.light #whatsapp-message-preview {
  color: #15803d !important;
}

/* Floating WhatsApp Sticky container tooltip */
html.light #sticky-whatsapp-container .bg-dark-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1) !important;
}
