/* theme-styles.css */
/* GLAVNI STILOVI ZA TEME */

/* ===== OSNOVNI STILOVI ===== */
body {
  font-family: 'Lora', serif;
  color: white;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  transition: all 0.5s ease;
  min-height: 100vh;
}

/* ===== COSMIC TEMA (DEFAULT) ===== */
body.cosmic-theme {
  background-image: url('../images/hero_background.jpg');
  background-color: #0a0a1a;
}

body.cosmic-theme::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: -1;
}

body.cosmic-theme::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 20s linear infinite;
  z-index: -1;
  opacity: .8;
}

@keyframes twinkle {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(100px) translateY(100px); }
}

/* ===== WHITE TEMA ===== */
body.white-theme {
  background-color: #ffffff;
  color: #1f2937;
  background-image: none;
}

body.white-theme::before,
body.white-theme::after {
  display: none;
}

/* TAMNI TEKST ZA BELU TEMU */
body.white-theme h1,
body.white-theme h2,
body.white-theme h3,
body.white-theme h4 {
  color: #1f2937;
}

body.white-theme .text-gray-200,
body.white-theme .text-gray-300,
body.white-theme .text-gray-400 {
  color: #4b5563 !important;
}

body.white-theme .text-white {
  color: #1f2937 !important;
}

/* KARTICE ZA BELU TEMU */
body.white-theme .card-bg,
body.white-theme .lifestyle-card {
  background: rgba(243, 244, 246, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #1f2937;
}

body.white-theme .form-field {
  background: rgba(243, 244, 246, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #1f2937;
}

body.white-theme .form-field::placeholder {
  color: #6b7280;
}

/* FOOTER ZA BELU TEMU */
body.white-theme footer {
  background-color: #f3f4f6 !important;
}

body.white-theme footer .text-gray-400 {
  color: #6b7280 !important;
}

body.white-theme footer .border-gray-700 {
  border-color: #d1d5db !important;
}

/* NAVIGACIJA ZA BELU TEMU */
body.white-theme nav {
  background-color: #f3f4f6 !important;
}

body.white-theme nav ul li a {
  color: #1f2937 !important;
}

/* LOGO ZA BELU TEMU */
body.white-theme .logo-star {
  background: linear-gradient(135deg, #b45309, #92400e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SCROLL TO TOP DUGME ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1f2937;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
}

body.white-theme .scroll-top-btn {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: white;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== DUGME ZA PROMENU TEME ===== */
.theme-switcher-btn {
  padding: 8px 16px;
  background: rgba(75, 85, 99, 0.7);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: white;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
  font-weight: 500;
}

body.white-theme .theme-switcher-btn {
  background: rgba(243, 244, 246, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #1f2937;
}

.theme-switcher-btn:hover {
  background: rgba(234, 179, 8, 0.2);
  transform: translateY(-2px);
}

.theme-switcher-btn:active {
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .theme-switcher-btn span {
    display: none;
  }
  
  .theme-switcher-btn {
    padding: 8px 12px;
    min-width: 40px;
    justify-content: center;
  }
  
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ANIMACIJA ZA PROMENU TEME */
body.theme-changing {
  animation: themeChange 0.5s ease;
}

@keyframes themeChange {
  0% { opacity: 0.9; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}