/* ========================================
   CMDpad Theme - Crio.do Inspired
   ======================================== */

/* Override variables for CMDpad theme */
:root,
html.theme-cmdpad,
html.theme-cmdpad * {
  /* ===== COLOR PALETTE OPTIONS ===== */
  
  /* OPTION 1: OLD CMDpad theme variables - Crio.do Inspired (commented for easy reversion) */
  /* --theme-primary: #1a365d;        /* Dark teal */
  /* --theme-primary-light: #2d7d32;  /* Medium teal */
  /* --theme-primary-dark: #0f172a;   /* Very dark teal */
  /* --theme-secondary: #2d7d32;      /* Green */
  /* --theme-secondary-light: #4ade80; /* Light green */
  /* --theme-accent: #ffd700;         /* Gold */
  /* --theme-accent-light: #fef08a;   /* Light gold */
  /* --theme-accent-dark: #eab308;    /* Dark gold */
  
  /* OPTION 2: Modern Tech Palette (commented for easy reversion) */
  /* --theme-primary: #6366f1;        /* Indigo */
  /* --theme-primary-light: #8b5cf6;  /* Purple */
  /* --theme-primary-dark: #4338ca;   /* Dark indigo */
  /* --theme-secondary: #06b6d4;      /* Cyan */
  /* --theme-secondary-light: #22d3ee; /* Light cyan */
  /* --theme-accent: #f59e0b;         /* Amber */
  /* --theme-accent-light: #fbbf24;   /* Light amber */
  /* --theme-accent-dark: #d97706;    /* Dark amber */
  
  /* OPTION 3: Modern Linux Terminal Colors - Dracula/Nord Inspired (commented for easy reversion) */
  /* --theme-primary: #bd93f9;        /* Purple */
  /* --theme-primary-light: #c678dd;  /* Light purple */
  /* --theme-primary-dark: #8b5cf6;   /* Dark purple */
  /* --theme-secondary: #50fa7b;      /* Green */
  /* --theme-secondary-light: #69ff94; /* Light green */
  /* --theme-accent: #ffb86c;         /* Orange */
  /* --theme-accent-light: #ffcc95;   /* Light orange */
  /* --theme-accent-dark: #ff9500;    /* Dark orange */
  
/* OPTION 4: GitHub-Inspired Modern Palette with Pluralsight Pink (ACTIVE) */
--theme-primary: #32d74b !important;        /* Lime Green */
--theme-primary-light: #4ade80 !important;  /* Light lime */
--theme-primary-dark: #16a34a !important;   /* Dark lime */
--theme-secondary: #1a7f37 !important;      /* GitHub Green */
--theme-secondary-light: #2ea043 !important; /* Light green */
    --theme-accent: #32d74b !important;         /* Lime Green */
--theme-accent-light: #4ade80 !important;   /* Light lime */
--theme-accent-dark: #16a34a !important;    /* Dark lime */

/* Additional Lime Green Variations for Design Flexibility */
--lime-50: #f0fdf4 !important;              /* Very light lime */
--lime-100: #dcfce7 !important;             /* Light lime */
--lime-200: #bbf7d0 !important;             /* Medium light lime */
--lime-300: #86efac !important;             /* Medium lime */
--lime-400: #4ade80 !important;             /* Medium dark lime */
--lime-500: #32d74b !important;             /* Lime Green (main) */
--lime-600: #16a34a !important;             /* Dark lime */
--lime-700: #15803d !important;             /* Darker lime */
--lime-800: #166534 !important;             /* Very dark lime */
--lime-900: #14532d !important;             /* Darkest lime */

/* Text and Background Colors */
--text-primary: #1f2937 !important;         /* Dark text for headings */
--text-secondary: #4b5563 !important;       /* Medium gray for body text */
--text-tertiary: #6b7280 !important;        /* Light gray for secondary text */
--text-muted: #9ca3af !important;           /* Muted gray for less important text */
--text-inverse: #ffffff !important;         /* White text on colored backgrounds */
--bg-card: #ffffff !important;              /* White card backgrounds */

/* OPTION 1: OLD CMDpad theme variables - Crio.do Inspired (COMMENTED) */
/* --theme-primary: #1a365d !important;        /* Dark teal */
/* --theme-primary-light: #2d7d32 !important;  /* Medium teal */
/* --theme-primary-dark: #0f172a !important;   /* Very dark teal */
/* --theme-secondary: #2d7d32 !important;      /* Green */
/* --theme-secondary-light: #4ade80 !important; /* Light green */
/* --theme-accent: #ffd700 !important;         /* Gold */
/* --theme-accent-light: #fef08a !important;   /* Light gold */
/* --theme-accent-dark: #eab308 !important;    /* Dark gold */

/* OPTION 5: Pluralsight-Inspired Palette (COMMENTED OUT) */
/* Core Color Parameters */
/* --color-white: #FFFFFF !important;          /* White - Secondary elements, headings, card backgrounds, text */
/* --color-orange-pink: #F05A28 !important;    /* Orange-pink - Buttons, gradients */
/* --color-lime-green: #D9F29F !important;     /* Lime green - Primary elements, accent elements */

/* Theme Variable Mapping */
/* --theme-primary: var(--color-lime-green) !important;         /* Lime green for primary elements */
/* --theme-primary-light: #e8f7c4 !important;                   /* Light lime green */
/* --theme-primary-dark: #c4e68a !important;                    /* Dark lime green */
/* --theme-secondary: var(--color-white) !important;            /* White for secondary elements */
/* --theme-secondary-light: #f0f0f0 !important;                 /* Light white/gray */
/* --theme-accent: var(--color-lime-green) !important;          /* Lime green for accent elements */
/* --theme-accent-light: #e8f7c4 !important;                    /* Light lime green */
/* --theme-accent-dark: #c4e68a !important;                     /* Dark lime green */

/* Text and Background Colors */
/* --text-primary: var(--color-white) !important;               /* White text for headings */
/* --text-secondary: #666666 !important;                        /* Gray text for readability */
/* --text-inverse: var(--color-white) !important;               /* White text on colored backgrounds */
/* --bg-card: var(--color-white) !important;                    /* White card backgrounds */
--bg-primary: #0f172a !important;                            /* Dark background */
--bg-secondary: #1e293b !important;                          /* Dark secondary background */
--bg-tertiary: #334155 !important;                           /* Medium dark */
--bg-overlay: rgba(15, 23, 42, 0.8) !important;
--text-tertiary: #94a3b8 !important;        /* Medium gray */
--text-muted: #64748b !important;           /* Muted gray */
  
  /* Border colors */
  --border-light: #334155;
  --border-medium: #475569;
  --border-dark: #64748b;
  --border-focus: var(--theme-accent);
  
  /* Status colors */
  --success: #22c55e;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fef2f2;
  --info: #3b82f6;
  --info-light: #dbeafe;
}

/* CMDpad Theme - Highest specificity */
html.theme-cmdpad {
  /* ===== COLOR PALETTE OPTIONS ===== */
  
  /* OPTION 1: OLD Primary brand colors - Crio.do Inspired (commented for easy reversion) */
  /* --theme-primary: #1a365d !important;        /* Dark teal */
  /* --theme-primary-light: #2d7d32 !important;  /* Medium teal */
  /* --theme-primary-dark: #0f172a !important;   /* Very dark teal */
  /* --theme-secondary: #2d7d32 !important;      /* Green */
  /* --theme-secondary-light: #4ade80 !important; /* Light green */
  /* --theme-accent: #ffd700 !important;         /* Gold */
  /* --theme-accent-light: #fef08a !important;   /* Light gold */
  /* --theme-accent-dark: #eab308 !important;    /* Dark gold */
  
  /* OPTION 2: Modern Tech Palette (commented for easy reversion) */
  /* --theme-primary: #6366f1 !important;        /* Indigo */
  /* --theme-primary-light: #8b5cf6 !important;  /* Purple */
  /* --theme-primary-dark: #4338ca !important;   /* Dark indigo */
  /* --theme-secondary: #06b6d4 !important;      /* Cyan */
  /* --theme-secondary-light: #22d3ee !important; /* Light cyan */
  /* --theme-accent: #f59e0b !important;         /* Amber */
  /* --theme-accent-light: #fbbf24 !important;   /* Light amber */
  /* --theme-accent-dark: #d97706 !important;    /* Dark amber */
  
  /* OPTION 3: Modern Linux Terminal Colors - Dracula/Nord Inspired (commented for easy reversion) */
  /* --theme-primary: #bd93f9 !important;        /* Purple */
  /* --theme-primary-light: #c678dd !important;  /* Light purple */
  /* --theme-primary-dark: #8b5cf6 !important;   /* Dark purple */
  /* --theme-secondary: #50fa7b !important;      /* Green */
  /* --theme-secondary-light: #69ff94 !important; /* Light green */
  /* --theme-accent: #ffb86c !important;         /* Orange */
  /* --theme-accent-light: #ffcc95 !important;   /* Light orange */
  /* --theme-accent-dark: #ff9500 !important;    /* Dark orange */
  
  /* OPTION 4: GitHub-Inspired Modern Palette (ACTIVE) */
  --theme-primary: #32d74b !important;        /* Lime Green */
  --theme-primary-light: #4ade80 !important;  /* Light lime */
  --theme-primary-dark: #16a34a !important;   /* Dark lime */
  --theme-secondary: #1a7f37 !important;      /* GitHub Green */
  --theme-secondary-light: #2ea043 !important; /* Light green */
  --theme-accent: #32d74b !important;         /* Lime Green */
  --theme-accent-light: #4ade80 !important;   /* Light lime */
  --theme-accent-dark: #16a34a !important;    /* Dark lime */
  
  /* Background colors */
  --bg-primary: #0f172a !important;           /* Very dark background */
  --bg-secondary: #1e293b !important;         /* Dark secondary */
  --bg-tertiary: #334155 !important;          /* Medium dark */
  --bg-card: #ffffff !important;              /* White cards */
  --bg-overlay: rgba(15, 23, 42, 0.8) !important;
  
  /* Text colors */
  --text-primary: #1f2937 !important;         /* Dark text for headings */
  --text-secondary: #4b5563 !important;       /* Medium gray for body text */
  --text-tertiary: #6b7280 !important;        /* Light gray for secondary text */
  --text-muted: #9ca3af !important;           /* Muted gray for less important text */
  
  /* Border colors */
  --border-light: #334155 !important;
  --border-medium: #475569 !important;
  --border-dark: #64748b !important;
  --border-focus: var(--theme-accent) !important;
  
  /* Status colors */
  --success: #22c55e !important;
  --success-light: #dcfce7 !important;
  --warning: #f59e0b !important;
  --warning-light: #fef3c7 !important;
  --error: #ef4444 !important;
  --error-light: #fef2f2 !important;
  --info: #3b82f6 !important;
  --info-light: #dbeafe !important;
}

/* ===== THEME-SPECIFIC COMPONENTS ===== */

/* Hero section with geometric patterns */
.hero-section {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
  position: relative;
  overflow: hidden;
}


.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 125, 50, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(26, 54, 93, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Terminal-style components */
.terminal-window {
  background: var(--theme-primary-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.terminal-header {
  background: var(--neutral-800);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca3f; }

.terminal-content {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.terminal-prompt {
  color: var(--theme-accent);
  font-weight: var(--font-semibold);
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-secondary);
  margin: var(--space-2) 0;
}

.terminal-highlight {
  color: var(--theme-secondary-light);
  font-weight: var(--font-medium);
}

/* Card components */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* CMDpad Theme Card Styles - Higher specificity */
html.theme-cmdpad .card-header {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
  color: var(--text-inverse) !important;
  padding: var(--space-6) !important;
  font-weight: var(--font-semibold) !important;
}

html.theme-cmdpad .card-body {
  padding: var(--space-6) !important;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

/* Button components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-xl);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: var(--text-base);
  line-height: 1;
}

/* CMDpad Theme Button Styles - Higher specificity */
html.theme-cmdpad .btn-primary {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
  color: var(--text-inverse) !important;
  box-shadow: var(--shadow-md) !important;
}

html.theme-cmdpad .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
  color: var(--text-inverse) !important;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--theme-primary);
  color: var(--text-primary);
}

.btn-accent {
  background: var(--theme-accent);
  color: var(--theme-primary-dark);
  font-weight: var(--font-bold);
}

.btn-accent:hover {
  background: var(--theme-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--theme-primary-dark);
}

/* Form components */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-inverse);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-inverse);
}

/* Search bar */
.search-bar {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--theme-accent);
  background: var(--bg-card);
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h6 {
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-8) 0;
  }
  
  .card {
    margin: var(--space-4) 0;
  }
  
  .card-header,
  .card-body {
    padding: var(--space-4);
  }
  
  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
  
  .navbar-nav {
    gap: var(--space-4);
  }
  
  .search-bar {
    max-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
