/* ===== COLOR THEMES ===== */

/* Default Theme (Current) */
.theme-default {
  --ridda-primary-color: #FFD043;
  --ridda-secondary-color: #28F67A;
  --ridda-heading-color: #111111;
  --ridda-base-color: #696969;
  --ridda-lighter-color: #F7F8FE;
  --ridda-border-color: rgba(3, 27, 225, 0.1);
  --ridda-primary-rgb: 255, 208, 67;
  --ridda-secondary-rgb: 40, 246, 122;
  --ridda-accent-color: #FF6B35;
  --ridda-accent-rgb: 255, 107, 53;
}

/* Modern Blue Theme */
.theme-modern-blue {
  --ridda-primary-color: #2563EB;
  --ridda-secondary-color: #3B82F6;
  --ridda-heading-color: #1E293B;
  --ridda-base-color: #64748B;
  --ridda-lighter-color: #F1F5F9;
  --ridda-border-color: rgba(37, 99, 235, 0.1);
  --ridda-primary-rgb: 37, 99, 235;
  --ridda-secondary-rgb: 59, 130, 246;
  --ridda-accent-color: #06B6D4;
  --ridda-accent-rgb: 6, 182, 212;
}

/* Elegant Purple Theme */
.theme-elegant-purple {
  --ridda-primary-color: #7C3AED;
  --ridda-secondary-color: #A855F7;
  --ridda-heading-color: #1F2937;
  --ridda-base-color: #6B7280;
  --ridda-lighter-color: #F3F4F6;
  --ridda-border-color: rgba(124, 58, 237, 0.1);
  --ridda-primary-rgb: 124, 58, 237;
  --ridda-secondary-rgb: 168, 85, 247;
  --ridda-accent-color: #EC4899;
  --ridda-accent-rgb: 236, 72, 153;
}

/* Nature Green Theme */
.theme-nature-green {
  --ridda-primary-color: #059669;
  --ridda-secondary-color: #10B981;
  --ridda-heading-color: #064E3B;
  --ridda-base-color: #6B7280;
  --ridda-lighter-color: #F0FDF4;
  --ridda-border-color: rgba(5, 150, 105, 0.1);
  --ridda-primary-rgb: 5, 150, 105;
  --ridda-secondary-rgb: 16, 185, 129;
  --ridda-accent-color: #84CC16;
  --ridda-accent-rgb: 132, 204, 22;
}

/* Sunset Orange Theme */
.theme-sunset-orange {
  --ridda-primary-color: #EA580C;
  --ridda-secondary-color: #F97316;
  --ridda-heading-color: #7C2D12;
  --ridda-base-color: #78716C;
  --ridda-lighter-color: #FFF7ED;
  --ridda-border-color: rgba(234, 88, 12, 0.1);
  --ridda-primary-rgb: 234, 88, 12;
  --ridda-secondary-rgb: 249, 115, 22;
  --ridda-accent-color: #F59E0B;
  --ridda-accent-rgb: 245, 158, 11;
}

/* Ocean Teal Theme */
.theme-ocean-teal {
  --ridda-primary-color: #0D9488;
  --ridda-secondary-color: #14B8A6;
  --ridda-heading-color: #134E4A;
  --ridda-base-color: #6B7280;
  --ridda-lighter-color: #F0FDFA;
  --ridda-border-color: rgba(13, 148, 136, 0.1);
  --ridda-primary-rgb: 13, 148, 136;
  --ridda-secondary-rgb: 20, 184, 166;
  --ridda-accent-color: #06B6D4;
  --ridda-accent-rgb: 6, 182, 212;
}

/* Midnight Dark Theme */
.theme-midnight-dark {
  --ridda-primary-color: #6366F1;
  --ridda-secondary-color: #8B5CF6;
  --ridda-heading-color: #F8FAFC;
  --ridda-base-color: #CBD5E1;
  --ridda-lighter-color: #1E293B;
  --ridda-border-color: rgba(99, 102, 241, 0.2);
  --ridda-primary-rgb: 99, 102, 241;
  --ridda-secondary-rgb: 139, 92, 246;
  --ridda-accent-color: #EC4899;
  --ridda-accent-rgb: 236, 72, 153;
}

/* Rose Pink Theme */
.theme-rose-pink {
  --ridda-primary-color: #E11D48;
  --ridda-secondary-color: #F43F5E;
  --ridda-heading-color: #881337;
  --ridda-base-color: #78716C;
  --ridda-lighter-color: #FFF1F2;
  --ridda-border-color: rgba(225, 29, 72, 0.1);
  --ridda-primary-rgb: 225, 29, 72;
  --ridda-secondary-rgb: 244, 63, 94;
  --ridda-accent-color: #EC4899;
  --ridda-accent-rgb: 236, 72, 153;
}

/* Forest Green Theme */
.theme-forest-green {
  --ridda-primary-color: #166534;
  --ridda-secondary-color: #22C55E;
  --ridda-heading-color: #14532D;
  --ridda-base-color: #6B7280;
  --ridda-lighter-color: #F0FDF4;
  --ridda-border-color: rgba(22, 101, 52, 0.1);
  --ridda-primary-rgb: 22, 101, 52;
  --ridda-secondary-rgb: 34, 197, 94;
  --ridda-accent-color: #84CC16;
  --ridda-accent-rgb: 132, 204, 22;
}

/* Royal Gold Theme */
.theme-royal-gold {
  --ridda-primary-color: #D97706;
  --ridda-secondary-color: #F59E0B;
  --ridda-heading-color: #92400E;
  --ridda-base-color: #78716C;
  --ridda-lighter-color: #FFFBEB;
  --ridda-border-color: rgba(217, 119, 6, 0.1);
  --ridda-primary-rgb: 217, 119, 6;
  --ridda-secondary-rgb: 245, 158, 11;
  --ridda-accent-color: #FCD34D;
  --ridda-accent-rgb: 252, 211, 77;
}

/* ===== THEME SWITCHER STYLES ===== */
.theme-switcher {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border: 1px solid var(--ridda-border-color);
}

.theme-switcher-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ridda-primary-color);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher-toggle:hover {
  background: var(--ridda-secondary-color);
  transform: scale(1.1);
}

.theme-options {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-top: 10px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.theme-switcher.active .theme-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.theme-option:hover {
  background: var(--ridda-lighter-color);
}

.theme-option.active {
  background: var(--ridda-primary-color);
  color: white;
}

.theme-color-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-default .theme-color-preview { background: #FFD043; }
.theme-modern-blue .theme-color-preview { background: #2563EB; }
.theme-elegant-purple .theme-color-preview { background: #7C3AED; }
.theme-nature-green .theme-color-preview { background: #059669; }
.theme-sunset-orange .theme-color-preview { background: #EA580C; }
.theme-ocean-teal .theme-color-preview { background: #0D9488; }
.theme-midnight-dark .theme-color-preview { background: #6366F1; }
.theme-rose-pink .theme-color-preview { background: #E11D48; }
.theme-forest-green .theme-color-preview { background: #166534; }
.theme-royal-gold .theme-color-preview { background: #D97706; }

/* ===== THEME TRANSITIONS ===== */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ===== DARK THEME ADJUSTMENTS ===== */
.theme-midnight-dark {
  background: #0F172A;
}

.theme-midnight-dark .bgc-black {
  background: #1E293B !important;
}

.theme-midnight-dark .text-white {
  color: #F8FAFC !important;
}

.theme-midnight-dark .bordered-x {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== RESPONSIVE THEME SWITCHER ===== */
@media (max-width: 768px) {
  .theme-switcher {
    right: 10px;
    top: 20px;
    transform: none;
  }

  .theme-options {
    right: -10px;
    min-width: 180px;
  }
}

/* ===== THEME PREVIEW PAGE STYLES ===== */
.theme-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.theme-header {
  margin-bottom: 20px;
}

.theme-colors {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-header h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ridda-heading-color);
}

.theme-header p {
  margin: 0;
  font-size: 14px;
  color: var(--ridda-base-color);
  line-height: 1.4;
}

.theme-preview {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.preview-header {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.preview-nav {
  display: flex;
  gap: 6px;
}

.preview-nav span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.preview-content {
  padding: 15px;
}

.preview-title {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.preview-text {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 8px;
}

.preview-text:last-child {
  width: 70%;
}

.theme-select-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--ridda-primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-select-btn:hover {
  background: var(--ridda-secondary-color);
  transform: translateY(-2px);
}

.feature-item {
  padding: 30px 20px;
}

.feature-item .icon {
  font-size: 40px;
  color: var(--ridda-primary-color);
}

.feature-item h4 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.feature-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ===== THEME PREVIEW RESPONSIVE ===== */
@media (max-width: 768px) {
  .theme-card {
    padding: 20px;
  }

  .theme-header h4 {
    font-size: 16px;
  }

  .theme-header p {
    font-size: 13px;
  }

  .feature-item {
    padding: 20px 15px;
  }

  .feature-item .icon {
    font-size: 30px;
  }

  .feature-item h4 {
    font-size: 18px;
  }

  .feature-item p {
    font-size: 14px;
  }
}

/* ===== THEME TEST PAGE STYLES ===== */
.color-test-box {
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  color: white;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.color-test-box h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

.color-test-box p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.text-test-box {
  padding: 25px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--ridda-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.text-test-box h4 {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
}

.text-test-box p {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

.theme-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.theme-info-box {
  transition: all 0.3s ease;
}

.theme-info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
