/* 
 * Theme Options Styling
 * 
 * This CSS styles the Theme Options in the navigation menu
 * to match the style of other elements in the menu bar
 */

/* Mobile color switcher styles */
.mobile-color-switcher {
  margin-top: 5px; /* Further reduced gap between Music button and Theme text */
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.mobile-color-switcher h4 {
  font-size: 1.125rem; /* 25% smaller than 1.5rem */
  margin-bottom: 10px;
  font-weight: 600;
  text-align: left;
  padding-left: 34px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-color-switcher h4 i {
  font-size: 1.2rem;
  margin-left: 5px;
  vertical-align: middle;
}

.mobile-color-switcher .color-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 34px;
}

.mobile-color-switcher .color-btn {
  width: 29px; /* Additional 15% reduction from 34px */
  height: 29px; /* Additional 15% reduction from 34px */
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-color-switcher .color-btn:hover {
  transform: scale(1.15);
  border-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-color-switcher .grain-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-left: 34px;
  margin-bottom: 10px; /* Ensure there's space below */
}

.mobile-color-switcher .grain-toggle label {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-block; /* Ensure label is visible */
}

.mobile-color-switcher .grained-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  display: inline-block; /* Ensure checkbox is visible */
}

/* RTL language support */
html[dir="rtl"] .mobile-color-switcher h4,
html[dir="rtl"] .mobile-color-switcher .color-buttons,
html[dir="rtl"] .mobile-color-switcher .grain-toggle {
  padding-left: 0;
  padding-right: 34px;
  text-align: right;
}

/* Responsive adjustments for small mobile devices */
@media (max-width: 480px) {
  .mobile-color-switcher .color-buttons {
    gap: 6px;
  }
  
  .mobile-color-switcher .color-btn {
    width: 25px;
    height: 25px;
  }
  
  .mobile-color-switcher h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .mobile-color-switcher .grain-toggle {
    margin-top: 8px;
  }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .mobile-color-switcher {
    padding: 10px 0;
  }
  
  .mobile-color-switcher .color-buttons {
    max-width: 280px;
  }
  
  .mobile-color-switcher .color-btn {
    width: 32px; /* Additional 15% reduction from 38px */
    height: 32px; /* Additional 15% reduction from 38px */
  }
}

/* Desktop screens */
@media (min-width: 1200px) {
  .mobile-color-switcher h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .mobile-color-switcher .color-buttons {
    gap: 10px;
  }
  
  .mobile-color-switcher .grain-toggle label {
    font-size: 0.95rem;
  }
}