/*
===============================================
    UTILITY CLASSES - Reusable CSS Patterns
===============================================
*/

/* Box Shadows */
.shadow-standard {
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.shadow-1 {
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.shadow-2 {
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

/* Transitions */
.transition-standard {
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.transition-fast {
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

.transition-slow {
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.transition-3s {
  -webkit-transition: 3s all;
  transition: 3s all;
}

.transition-ease {
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
}

.transition-smooth {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Border Radius */
.rounded-circle {
  border-radius: 50%;
}

.rounded-sm {
  border-radius: 4px;
}

.rounded-md {
  border-radius: 10px;
}

/* Common Section Headings */
.section-heading-lg {
  font-size: 40px;
  line-height: 46px;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
}

.section-heading-md {
  font-size: 30px;
  line-height: 40px;
  font-weight: bold;
  margin-bottom: 60px;
}

.section-heading-sm {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Backgrounds */
.dark-bg {
  background-color: rgba(0, 0, 0, 0.5);
}

.transparent-bg {
  background-color: transparent;
}

/* Text Utilities */
.text-uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Spacing Utilities */
.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

/* Display Utilities */
.d-inline-block {
  display: inline-block;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

/* Position Utilities */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

/* Image Border Styles */
.img-border-dark {
  border: 20px solid rgba(0, 0, 0, 0.17);
  border-radius: 50%;
}

.img-border-light {
  border: 20px solid rgba(0, 0, 0, 0.07);
  border-radius: 50%;
}

.img-border-sm {
  border: 10px solid rgba(0, 0, 0, 0.17);
  border-radius: 50%;
}

/* Animation utilities */
.animated {
  -webkit-animation-duration: 3s;
  animation-duration: 3s;
}

/* Hover effects */
.hover-primary:hover {
  color: #0bceaf;
}

.hover-scale:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
}

/* Z-index utilities */
.z-1 {
  z-index: 1;
}

.z-10 {
  z-index: 10;
}

.z-100 {
  z-index: 100;
}

.z-999 {
  z-index: 999;
}

.z-9999 {
  z-index: 9999;
}

/* 
===============================================
  THEME TOGGLE COMPONENT
===============================================
*/
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.theme-toggle-btn {
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.4);
  overflow: hidden;
}

.theme-toggle-btn:hover {
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

.theme-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 206, 175, 0.3);
}

.theme-toggle-btn .toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  transition: all 0.3s ease;
  color: #fff;
}

.theme-toggle-btn .sun-icon {
  left: 8px;
  opacity: 1;
}

.theme-toggle-btn .moon-icon {
  right: 8px;
  opacity: 0.3;
}

[data-theme="dark"] .theme-toggle-btn {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  opacity: 0.3;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  opacity: 1;
}

.theme-toggle-btn .toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle-btn .toggle-slider {
  transform: translateX(30px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 15px;
  }
  
  .theme-toggle-btn {
    width: 50px;
    height: 26px;
  }
  
  .theme-toggle-btn .toggle-slider {
    width: 20px;
    height: 20px;
  }
  
  [data-theme="dark"] .theme-toggle-btn .toggle-slider {
    transform: translateX(24px);
  }
  
  .theme-toggle-btn .toggle-icon {
    font-size: 12px;
  }
}

/* Accessibility - keyboard focus */
.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

