/* ==========================================================================
   TempUp — Progressive Frontend Reskin
   Layered on top of the existing retro frontend template.
   Uses tokens from theme-tokens.css.
   ========================================================================== */

/* ==========================================================================
   1. BODY & GLOBALS
   ========================================================================== */
body {
  background-color: var(--tu-bg-body) !important;
  color: var(--tu-text-primary) !important;
}

::selection {
  background: var(--tu-primary);
  color: #fff;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
#hero, .hero {
  background: var(--tu-gradient-hero) !important;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}
#hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--tu-primary-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero h1, #home_title {
  color: var(--tu-text-primary) !important;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#hero h2, #home_desc {
  color: var(--tu-text-secondary) !important;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* CTA Button */
.btn-get-started {
  background: var(--tu-gradient-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--tu-radius-full) !important;
  padding: 14px 36px !important;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(var(--tu-primary-rgb), 0.35);
  transition: all var(--tu-transition);
  text-decoration: none !important;
}
.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--tu-primary-rgb), 0.45) !important;
  color: #fff !important;
}
.btn-get-started i {
  margin-left: 8px;
  transition: transform var(--tu-transition-fast);
}
.btn-get-started:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   3. SECTION STYLING
   ========================================================================== */
section {
  background-color: var(--tu-bg-body);
}

.section-header p {
  color: var(--tu-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.section-header h1 {
  color: var(--tu-text-primary) !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   4. VALUE BOXES
   ========================================================================== */
.values .box {
  background: var(--tu-bg-surface) !important;
  border: 1px solid var(--tu-border) !important;
  border-radius: var(--tu-radius-xl) !important;
  padding: 32px 24px !important;
  box-shadow: var(--tu-shadow-sm);
  transition: all var(--tu-transition);
  text-align: center;
}
.values .box:hover {
  transform: translateY(-6px);
  box-shadow: var(--tu-shadow-lg) !important;
  border-color: rgba(var(--tu-primary-rgb), 0.2) !important;
}
.values .box h3 {
  color: var(--tu-text-primary) !important;
  font-weight: 700;
  margin-top: 16px;
}
.values .box p {
  color: var(--tu-text-secondary) !important;
  line-height: 1.7;
}

/* ==========================================================================
   5. TTS SECTION FORM
   ========================================================================== */
#tts {
  background: var(--tu-bg-surface) !important;
}
#tts .form-control,
#tts .selectric {
  background: var(--tu-input-bg) !important;
  border: 1px solid var(--tu-input-border) !important;
  color: var(--tu-input-text) !important;
  border-radius: var(--tu-radius-md) !important;
}
#tts .form-control:focus {
  border-color: var(--tu-primary) !important;
  box-shadow: var(--tu-input-focus-ring) !important;
}
#tts label {
  color: var(--tu-text-primary) !important;
  font-weight: 500;
}
#tts .btn-primary {
  background: var(--tu-gradient-primary) !important;
  border: none !important;
  border-radius: var(--tu-radius-md) !important;
  font-weight: 600;
  transition: all var(--tu-transition-fast);
  box-shadow: 0 2px 8px rgba(var(--tu-primary-rgb), 0.3);
}
#tts .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--tu-primary-rgb), 0.4) !important;
}

/* File input */
#tts input[type="file"] {
  background: var(--tu-input-bg) !important;
  border: 1px solid var(--tu-input-border) !important;
  border-radius: var(--tu-radius-md) !important;
  color: var(--tu-input-text) !important;
}

/* Switch */
.form-check-input:checked {
  background-color: var(--tu-primary) !important;
  border-color: var(--tu-primary) !important;
}

/* ==========================================================================
   6. PRICING SECTION
   ========================================================================== */
.pricing {
  background: var(--tu-bg-body) !important;
}
.view-more-plans {
  color: var(--tu-primary) !important;
  font-weight: 600;
  transition: all var(--tu-transition-fast);
}
.view-more-plans:hover {
  color: var(--tu-primary-hover) !important;
  text-decoration: underline;
}

/* ==========================================================================
   7. MOBILE APP SECTION
   ========================================================================== */
.mobile-app {
  background: var(--tu-bg-surface) !important;
  border-radius: var(--tu-radius-xl) !important;
  padding: 40px !important;
  box-shadow: var(--tu-shadow-md);
}
.mobile-app .header-h1 {
  color: var(--tu-primary) !important;
  font-weight: 800;
}
.mobile-app .text-first {
  color: var(--tu-text-secondary) !important;
}
.mobile-app h3 {
  color: var(--tu-text-primary) !important;
  font-weight: 600;
}
.mobile-app .download_section {
  transition: transform var(--tu-transition-fast);
}
.mobile-app .download_section:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   8. LOGIN PAGE
   ========================================================================== */
.auth, .login-wrapper {
  background: var(--tu-gradient-hero) !important;
  min-height: 100vh;
}

.login-wrapper .card {
  background: var(--tu-bg-surface) !important;
  border: 1px solid var(--tu-border) !important;
  border-radius: var(--tu-radius-xl) !important;
  box-shadow: var(--tu-shadow-xl) !important;
  backdrop-filter: blur(8px);
}

.login-wrapper .form-control {
  background: var(--tu-input-bg) !important;
  border: 1px solid var(--tu-input-border) !important;
  color: var(--tu-input-text) !important;
  border-radius: var(--tu-radius-md) !important;
}
.login-wrapper .form-control:focus {
  border-color: var(--tu-primary) !important;
  box-shadow: var(--tu-input-focus-ring) !important;
}
.login-wrapper .form-control-new-border {
  border: 1px solid var(--tu-input-border) !important;
  background: var(--tu-input-bg) !important;
  color: var(--tu-input-text) !important;
  border-radius: var(--tu-radius-md) !important;
}

.login-wrapper .input-group-text {
  background: var(--tu-bg-surface-alt) !important;
  border-color: var(--tu-input-border) !important;
  color: var(--tu-text-secondary) !important;
}

.login-wrapper .btn.bg-primary,
.login-wrapper .btn.bg-new-primary {
  background: var(--tu-gradient-primary) !important;
  border: none !important;
  border-radius: var(--tu-radius-md) !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--tu-primary-rgb), 0.3);
  transition: all var(--tu-transition-fast);
}
.login-wrapper .btn.bg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--tu-primary-rgb), 0.4) !important;
}

.login-wrapper label {
  color: var(--tu-text-primary) !important;
  font-weight: 500;
}
.login-wrapper a.text-new-primary {
  color: var(--tu-primary) !important;
}
.login-wrapper .text-muted {
  color: var(--tu-text-muted) !important;
}
.login-wrapper .simple-footer {
  color: var(--tu-text-muted) !important;
}
.login-wrapper .form-check-label {
  color: var(--tu-text-secondary) !important;
}

/* Demo credential cards */
.login-wrapper .card.bg-new-primary {
  border-radius: var(--tu-radius-md) !important;
}
.login-wrapper .card.bg-new-secondary {
  border-radius: var(--tu-radius-md) !important;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
#footer, .footer {
  background: var(--tu-bg-surface) !important;
  border-top: 1px solid var(--tu-border) !important;
  color: var(--tu-text-muted) !important;
}

/* ==========================================================================
   10. TOAST STYLING OVERRIDE
   ========================================================================== */
[data-theme="dark"] .iziToast {
  background: var(--tu-bg-surface) !important;
  border-color: var(--tu-border) !important;
}

/* ==========================================================================
   11. MICRO-ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.values .box,
.pricing .box,
.card {
  animation-fill-mode: both;
}

/* Smooth focus ring for all interactive elements */
*:focus-visible {
  outline: 2px solid var(--tu-primary);
  outline-offset: 2px;
  border-radius: var(--tu-radius-sm);
}

/* ==========================================================================
   12. FRONTEND THEME TOGGLE (fixed position)
   ========================================================================== */
.theme-toggle-frontend {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: var(--tu-radius-full);
  background: var(--tu-gradient-primary);
  color: #fff;
  border: none;
  box-shadow: var(--tu-shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all var(--tu-transition);
}
.theme-toggle-frontend:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--tu-shadow-xl);
}
.theme-toggle-frontend .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-frontend .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle-frontend .icon-moon { display: inline; }

/* ==========================================================================
   13. RESPONSIVE TOUCH-UPS
   ========================================================================== */
@media (max-width: 768px) {
  #hero h1, #home_title {
    font-size: 2rem;
  }
  #hero h2, #home_desc {
    font-size: 1rem;
  }
  .btn-get-started {
    padding: 12px 28px !important;
    font-size: 0.9rem;
  }
  .theme-toggle-frontend {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}
