/* TrendzApps custom styles (static/css/trendz.css) */
:root{
  --primary:#6c5ce7;
  --secondary:#a29bfe;
  --bg-light:#ffffff;
  --bg-dark:#151515;
  --muted:#6c757d;
}

body{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #222;
}

/* Improve container visuals */
.content-wrapper{background:var(--bg-light);border-radius:12px;padding:1.5rem;box-shadow:0 8px 30px rgba(2,6,23,0.08)}

/* Buttons */
.btn-trendy{
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-trendy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.btn-trendy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-trendy:hover::before {
  left: 100%;
}

/* Cards */
.app-card{
  border-radius: 16px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(108, 92, 231, 0.3);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover::before {
  opacity: 1;
}

/* Navbar */
.navbar-brand{font-weight:700}
.navbar .nav-link{color:rgba(0,0,0,0.8)}

/* Footer */
.footer{
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%);
  color: #d1d5db;
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 2px solid rgba(108, 92, 231, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer small {
  line-height: 1.4;
}

.footer .text-primary {
  color: var(--primary) !important;
  text-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

.footer .text-info {
  color: #74b9ff !important;
  text-shadow: 0 0 10px rgba(116, 185, 255, 0.3);
}

.footer .text-warning {
  color: #fdcb6e !important;
}

.footer .text-secondary {
  color: #a29bfe !important;
}

.footer .text-light {
  color: #f8f9fa !important;
}

.footer .company-link {
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer .company-link:hover {
  transform: translateY(-1px);
  text-shadow: 0 0 15px currentColor;
}

.footer .affiliation-text {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  display: inline-block;
}

.footer .text-gradient {
  background: linear-gradient(45deg, #6c5ce7, #a29bfe, #74b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer i.fa-heart {
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.footer i.fa-rocket {
  animation: rocket-bounce 3s ease-in-out infinite;
}

@keyframes rocket-bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

/* Form styles for crispy-forms */
.form-control:focus{box-shadow:0 0 0 0.15rem rgba(108,92,231,0.15);border-color:var(--primary)}
.form-label{font-weight:600}
.form-helptext{font-size:0.9rem;color:var(--muted)}

/* Small utilities */
.badge-pill{border-radius:999px;padding:.35rem .6rem}

/* Dark overrides when body[data-bs-theme="dark"] */
body[data-bs-theme="dark"]{background:linear-gradient(135deg,#0f172a 0%,#020617 100%);color:#e6edf3}
body[data-bs-theme="dark"] .content-wrapper{background:#0b1220;color:#dbeafe}
body[data-bs-theme="dark"] .navbar .nav-link{color:#cbd5e1}
body[data-bs-theme="dark"] .footer{
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
  color: #e2e8f0;
  border-top: 2px solid rgba(162, 155, 254, 0.4);
}

body[data-bs-theme="dark"] .footer .text-primary {
  color: var(--secondary) !important;
  text-shadow: 0 0 12px rgba(162, 155, 254, 0.4);
}

body[data-bs-theme="dark"] .footer .text-info {
  color: #81ecec !important;
  text-shadow: 0 0 12px rgba(129, 236, 236, 0.4);
}

body[data-bs-theme="dark"] .footer .affiliation-text {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(162, 155, 254, 0.3);
}

body[data-bs-theme="dark"] .footer .text-gradient {
  background: linear-gradient(45deg, #a29bfe, #74b9ff, #81ecec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive tweaks */
@media (max-width:768px){
  .hero-title{font-size:2rem}
  .navbar-brand{font-size:1.4rem}
  
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer .affiliation-text {
    margin: 0.5rem 0;
    padding: 0.75rem;
  }
  
  .app-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .btn-trendy {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .footer .row {
    text-align: center !important;
  }
  
  .footer .col-md-4 {
    margin-bottom: 1rem;
  }
  
  .footer .text-md-end {
    text-align: center !important;
  }
}
