/* 
 * Theme Customization Styles
 * Para personalização visual da Pitx
 */

/* Variáveis CSS para tema */
:root {
  --background-color: #0A0A0A;
  --surface-color: #13171c;
  --primary-color: #ff9700;
  --primary-dark: #e68900;
  --accent-color: #66c0f4;
  --text-primary: #ffffff;
  --text-secondary: #c7d5e0;
  --border-color: #2a3a4a;
  --success-color: #5c7e10;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

/* Classes para gradientes */
.theme-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(10, 10, 10, 0.2) 20%,
    transparent 40%,
    transparent 60%,
    rgba(10, 10, 10, 0.2) 80%,
    rgba(10, 10, 10, 0.8) 100%
  ),
  linear-gradient(
    0deg,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.5) 10%,
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

.banner-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.5) 30%,
    rgba(10, 10, 10, 0.3) 60%,
    rgba(10, 10, 10, 0.1) 100%
  );
  z-index: 1;
}

/* Efeitos de transparência para elementos com background customizado */
.theme-transparent-bg {
  background-color: rgba(19, 23, 28, 0.9) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-transparent-header {
  background: rgba(42, 42, 42, 0.9) !important;
  backdrop-filter: blur(5px);
}

/* Classes para diferentes tipos de background */
.background-color {
  background-color: var(--background-color) !important;
}

.background-image {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Animações de transição de tema */
.theme-transition {
  transition: background-color 0.5s ease,
              background-image 0.5s ease,
              border-color 0.5s ease,
              color 0.5s ease;
}

/* Classes para diferentes esquemas de cores */
.theme-orange {
  --primary-color: #ff9700;
  --primary-dark: #e68900;
}

.theme-blue {
  --primary-color: #667eea;
  --primary-dark: #5a67d8;
}

.theme-purple {
  --primary-color: #764ba2;
  --primary-dark: #6b4291;
}

.theme-red {
  --primary-color: #f56565;
  --primary-dark: #e53e3e;
}

.theme-green {
  --primary-color: #48bb78;
  --primary-dark: #38a169;
}

.theme-steam {
  --accent-color: #66c0f4;
}

.theme-military {
  --accent-color: #5c7e10;
}

.theme-turquoise {
  --accent-color: #4ecdc4;
}

/* Utilitários para customização */
.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Efeitos de hover para elementos personalizáveis */
.theme-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb, 255, 151, 0), 0.2);
  transition: all 0.3s ease;
}

/* Responsividade para elementos de tema */
@media (max-width: 768px) {
  .theme-gradient-overlay {
    background: linear-gradient(
      0deg,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(10, 10, 10, 0.5) 10%,
      transparent 40%
    );
  }
  
  .background-image {
    background-attachment: scroll !important;
  }
}

/* Classes para preview em tempo real */
.theme-preview {
  border: 3px solid var(--primary-color) !important;
  box-shadow: 0 0 20px rgba(var(--primary-rgb, 255, 151, 0), 0.3) !important;
}

/* Efeito de carregamento para mudanças de tema */
.theme-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  z-index: 1000;
}

/* Classes para diferentes densidades de gradiente */
.gradient-light {
  opacity: 0.3;
}

.gradient-medium {
  opacity: 0.5;
}

.gradient-heavy {
  opacity: 0.7;
}

/* Efeito de vidro (glassmorphism) */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}