/* Global Theme Styles for Regno Cloud Website */
/* This file provides consistent theming across all pages */

:root {
  /* Default Dark Mode Colors */
  --bg-primary: #080d16;
  --bg-secondary: #080d16;
  --bg-tertiary: #080d16;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-tertiary: #9ca3af;
  --border-color: #374151;
  --card-bg: rgba(12, 29, 54, 0.5);
  --card-hover: rgba(31, 41, 55, 0.8);
  --input-bg: #1f2937;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --section-bg: #080d16;  /* Slightly lighter than pure black for sections */
  
  /* Accent colors (same for both themes) */
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  /* Image paths and logos */
  --img-path: 'assets/img/dark/';
  --logo-image: url('assets/img/dark/logo.png');
}

/* Light Mode Override */
html.light-mode,
body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --border-color: #d1d5db;
  --card-bg: #ffffff;
  --card-hover: #f9fafb;
  --input-bg: #ffffff;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --section-bg: #f3f4f6;  /* Light gray for sections in light mode */
  
  /* Image paths and logos - Light mode */
  --img-path: 'assets/img/light/';
  --logo-image: url('assets/img/light/logo.png');
}

/* Logo image - switches based on theme */
.logo {
  content: var(--logo-image);
  transition: content 0.3s ease;
}

/* Base body styling */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headers and navigation - theme aware background */
header {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

.light-mode header {
  background-color: var(--bg-secondary) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Section backgrounds - theme aware */
.section-bg,
.how-we-do-it-bg,
.meet-the-team-bg {
  background: var(--section-bg);
}

.light-mode .section-bg,
.light-mode .how-we-do-it-bg,
.light-mode .meet-the-team-bg {
  background: var(--section-bg);
}

/* Links */
a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-blue);
}

/* Cards and containers */
.bg-gray-800\/50,
.bg-gray-900\/50,
[class*="bg-gray-8"],
[class*="bg-gray-9"] {
  background-color: var(--card-bg) !important;
  transition: background-color 0.3s ease;
}

.hover\:bg-gray-900:hover,
.hover\:bg-gray-800:hover {
  background-color: var(--card-hover) !important;
}

/* Borders */
.border-gray-700,
.border-gray-600,
[class*="border-gray"] {
  border-color: var(--border-color) !important;
}

/* Text colors */
.text-white {
  color: var(--text-primary) !important;
}

.text-gray-400,
.text-gray-300 {
  color: var(--text-secondary) !important;
}

.text-gray-500,
.text-gray-600 {
  color: var(--text-tertiary) !important;
}

/* Inputs and selects */
input,
select,
textarea {
  background-color: var(--input-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

input::placeholder {
  color: var(--text-tertiary) !important;
}

/* Buttons */
.bg-gray-700 {
  background-color: var(--bg-tertiary) !important;
}

.hover\:bg-gray-600:hover {
  background-color: var(--border-color) !important;
}

/* Cards with specific classes */
.article-card,
.testimonial-card,
.price-card,
[class*="card"] {
  background-color: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

/* Shadows */
.shadow,
.shadow-lg {
  box-shadow: var(--shadow) !important;
}

/* Theme toggle button styling */
#theme-toggle,
#theme-toggle-mobile,
[data-theme-toggle] {
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover,
#theme-toggle-mobile:hover,
[data-theme-toggle]:hover {
  color: var(--accent-blue) !important;
  transform: scale(1.1);
}

/* Smooth transitions for theme changes */
* {
  transition-property: background-color, border-color, color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Exclude specific elements from transitions */
.no-transition,
.animate-spin,
[class*="transition-transform"] {
  transition: none !important;
}

/* Light mode specific adjustments */
.light-mode .dark-bg {
  background-color: var(--bg-primary) !important;
}

.light-mode .section-bg {
  background-color: var(--bg-secondary) !important;
}

/* Hero and feature sections */
.light-mode .hero-title,
.light-mode h1,
.light-mode h2,
.light-mode h3 {
  color: var(--text-primary) !important;
}

/* Code blocks and pre elements */
.light-mode pre,
.light-mode code {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

/* Mobile navigation */
.mobile-nav {
  background-color: var(--bg-secondary) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Selection color */
::selection {
  background-color: var(--accent-blue);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--accent-blue);
  color: #ffffff;
}

/* =================== COMPREHENSIVE COLOR CLASSES =================== */
/* These replace inline Tailwind color classes in HTML */

/* Text color classes */
.text-gray-200,
.text-gray-300 {
  color: var(--text-secondary) !important;
}

.text-gray-400,
.text-gray-500 {
  color: var(--text-tertiary) !important;
}

.text-white {
  color: var(--text-primary) !important;
}

.text-blue-400 {
  color: var(--accent-blue) !important;
}

.text-blue-300,
.hover\:text-blue-300:hover {
  color: var(--accent-blue-hover) !important;
}

/* Background color classes */
.bg-black {
  background-color: var(--bg-primary) !important;
}

.bg-gray-900,
.bg-gray-800 {
  background-color: var(--bg-secondary) !important;
}

.bg-gray-700 {
  background-color: var(--bg-tertiary) !important;
}

.bg-white {
  background-color: var(--card-bg) !important;
}

.bg-black\/50 {
  background-color: rgba(var(--bg-primary), 0.5) !important;
}

/* Border color classes */
.border-gray-700,
.border-gray-600 {
  border-color: var(--border-color) !important;
}

/* Pricing card specific - white cards with text */
.price-card.bg-white {
  background-color: #ffffff !important;
}

.light-mode .price-card.bg-white {
  background-color: #f9fafb !important;
  border: 1px solid var(--border-color);
}

.price-card .text-gray-900 {
  color: #111827 !important;
}

.price-card .text-gray-500 {
  color: #6b7280 !important;
}

.light-mode .price-card .text-gray-900 {
  color: #000000 !important;
}

/* Ensure pricing card titles stay visible */
.price-card h3 {
  color: #ffffff !important;
}
