/* --- Brand theming for Send Message page --- */

/* Header */
header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

header .text-xl {
  color: #4c1d95; /* EchoWall deep purple */
}

/* Main form container */
#send-form {
  background: #ffffff;
  border: 1px solid #ede9fe; /* subtle purple border */
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08); /* soft purple shadow */
}

/* Labels */
#send-form label {
  color: #4c1d95;
  font-weight: 600;
}

/* Inputs, Textareas, Selects */
#send-form input[type="text"],
#send-form input[type="password"],
#send-form input[type="file"],
#send-form input[type="datetime-local"],
#send-form textarea {
  border: 1px solid #d8b4fe;  /* lavender border */
  border-radius: 8px;
  padding: 0.5rem;
  transition: border 0.2s ease;
}

#send-form input:focus,
#send-form textarea:focus {
  outline: none;
  border-color: #a855f7; /* brighter purple on focus */
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Primary button (Upload & Send) */
#submitBtn {
  background: linear-gradient(to right, #a78bfa, #7c3aed);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

#submitBtn:hover {
  background: linear-gradient(to right, #7c3aed, #5b21b6);
}

/* Back to Dashboard link */
a[href="dashboard.html"] {
  color: #7c3aed;
  font-weight: 500;
}

a[href="dashboard.html"]:hover {
  text-decoration: underline;
}

/* Status messages */
#statusMessage {
  font-size: 0.95rem;
}

#statusMessage.text-green-600 {
  color: #15803d !important;
}

#statusMessage.text-red-600 {
  color: #b91c1c !important;
}

/* Owner/Invitee warning boxes */
#owner-unrecognized-device,
#invitee-unrecognized-device {
  border: 1px solid #fde68a;
  background: #fef9c3;
  color: #92400e;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.95rem;
}

/* Link Device & Send button (Owner Secret Code Box) */
#ownerLinkDeviceBtn {
  background: linear-gradient(to right, #a78bfa, #7c3aed);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
  transition: background 0.2s ease;
}

#ownerLinkDeviceBtn:hover {
  background: linear-gradient(to right, #7c3aed, #5b21b6);
}

/* new style added 08-03-25 above*/
body {
  font-family: 'Quicksand', sans-serif;
  scroll-behavior: smooth;
}

.gradient-bg {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(8, 47, 73, 0.08) 100%);
}
body.theme-dark .gradient-bg{
  background: linear-gradient(135deg, rgba(76,29,149,0.35) 0%, rgba(15,23,42,0.65) 100%);
}

/* Dark mode for landing mobile menu */
body.theme-dark #mobile-menu{
  background: #0f172a;
  color: #e5e7eb;
  border-top: 1px solid #1f2937;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}
body.theme-dark #mobile-menu a{
  color: #e5e7eb;
}
body.theme-dark #mobile-menu a:hover{
  color: #c4b5fd;
}

/* Mobile nav links */
#mobile-menu a{
  font-weight:600;
  padding:10px 0;
}

.btn-primary {
  background-color: #ffb4a2;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #ff9b85;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #c8b6ff;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #b39dff;
  transform: translateY(-2px);
}

.wave-animation {
  position: relative;
  overflow: hidden;
}

.wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 182, 255, 0.3);
  animation: wave 3s infinite linear;
  transform-origin: center;
}

.wave:nth-child(2) {
  animation-delay: 0.5s;
}

.wave:nth-child(3) {
  animation-delay: 1s;
}

@keyframes wave {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.testimonial-bg {
  background: linear-gradient(135deg, rgba(247, 225, 215, 0.4) 0%, rgba(181, 232, 213, 0.4) 100%);
}

.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.section-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.section-wave .shape-fill {
  fill: #FFFFFF;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.6;
  animation: float-up 15s linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100%) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

.carousel {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-item {
  scroll-snap-align: start;
}

.carousel-nav-button {
  transition: all 0.3s ease;
}

.carousel-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.faq-item {
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.5);
}


.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item:nth-child(3n+1) {
  background-color: rgba(200, 182, 255, 0.15);
}

.faq-item:nth-child(3n+2) {
  background-color: rgba(255, 180, 162, 0.15);
}
/* FAQ answers: hidden by default with smooth slide */
/* FAQ: hide answers by default */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* FAQ: expand answer when active */
.faq-item.active .faq-answer {
  max-height: 500px; /* adjust for your content */
}
.message-alert {
  animation: slideIn 0.5s ease-out;
  transition: opacity 0.5s ease;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.footer-wave .shape-fill {
  fill: #F9FAFB;
}

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

.footer-link:hover {
  color: #c8b6ff;
  transform: translateY(-2px);
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

/* ================================
   FAQ Accordion Styles
   ================================ */

/* Hide the FAQ answers by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

/* When active, expand the answer with padding */
.faq-item.active .faq-answer {
  max-height: 500px; /* big enough for your text */
  padding-top: 1rem; /* restore padding */
  padding-bottom: 1rem;
}

/* Consistent logo sizing across marketing/auth pages */
.brand-lockup .brand-logo{
  height: 44px;
  max-height: 44px;
  width: auto;
}
@media (max-width: 640px){
  .brand-lockup .brand-logo{
    height: 38px;
    max-height: 38px;
  }
}

/* Login/marketing header link spacing */
#main-header .login-nav-link{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
}

/* ✅ EchoWall playback page styles */

body.playback-page {
  font-family: system-ui, sans-serif;
  text-align: center;
  padding: 3rem;
  background: #f9fafb;
}

#audio-container {
  display: none;
  margin-top: 2rem;
}

#text-message {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

audio {
  width: 100%;
  max-width: 400px;
}

/* ================================
   EchoWall Device Register Styles
   ================================ */

body.register-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f9fafb;
}

.register-container {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.register-container h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.register-container input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
}

.register-container button {
  width: 100%;
  padding: 0.75rem;
  background: #7e22ce;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.register-container button:hover {
  background: #6b21a8;
}

.status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}

/* Optional for dashboard background sections */
.dashboard-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
}

/* Dashboard plush inputs and fields */
.input-dashboard {
  border-radius: 0.75rem;
  border: 1.5px solid #c8b6ff;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafaff;
}
.input-dashboard:focus {
  border-color: #7e22ce;
  outline: none;
  box-shadow: 0 0 0 2px #c8b6ff40;
}
.card {
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(200,182,255,0.06), 0 1.5px 10px #c8b6ff14;
  border: 1.5px solid #c8b6ff;
}
body.theme-dark .card{
  background: #0f172a;
  color: #e5e7eb;
  border: 1.5px solid #1f2937;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.card:hover {
  box-shadow: 0 6px 28px rgba(200,182,255,0.12), 0 3px 20px #c8b6ff28;
  transform: translateY(-2px) scale(1.01);
}
.section-divider {
  border-top: 1.5px solid #c8b6ff;
  margin: 1.5rem 0;
}
/* Plush button variants for dashboard */


/* Ensure trusted contacts invite form always lays out correctly */
.invite-email {
  flex: 1 1 0%;
  min-width: 0;
  width: auto !important;
  max-width: 100%;
}

.invite-token {
  width: 6rem !important;     /* 96px, fits 6-8 chars comfortably */
  min-width: 4rem !important; /* fallback, never gets too tiny */
  max-width: 8rem !important; /* never overflows */
  flex-shrink: 0 !important;
}

@media (max-width: 420px) {
  .device-row .actions { gap: 8px; }
}

/* Make sure the homepage footer stays dark even if generic footer styles exist */
.site-footer { background-color: #1e0123 !important; } /* Tailwind gray-900 */
.site-footer .footer-wave .shape-fill { fill: #F3F4F6; } /* keep the light wave */


/* ---------- FOOTER WRAP (centers injected footer) ---------- */

.marketing-footer-shell {
  background: #020617;
  padding-top: 1.5rem;
}

.marketing-footer-shell > * {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Marketing page footer overrides ---------- */

/* Wrapper background so it blends with page-shell */
.marketing-footer-shell {
  background: #020617;
}

/* Tame the big marketing footer when it's inside this shell */
.marketing-footer-shell .site-footer {
  background: transparent;              /* don't add another dark band */
  padding-top: 2.5rem;                  /* less huge */
  padding-bottom: 2.5rem;
}

/* Center the footer content and keep it within a nice width */
.marketing-footer-shell .site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Make the footer text readable on dark */
.marketing-footer-shell .site-footer,
.marketing-footer-shell .site-footer p,
.marketing-footer-shell .site-footer a,
.marketing-footer-shell .site-footer li {
  color: #e5e7eb;                       /* light gray */
}

.marketing-footer-shell .site-footer a:hover {
  color: #ffffff;
}

/* Dark wave so you don't get that light “lip” between sections */
.marketing-footer-shell .footer-wave .shape-fill {
  fill: #020617;
}

/* Thin border + subtle top separation */
.marketing-footer-shell .site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}
/* =========================================================
   Mobile menu drawer polish (index.html)
   - Works with /assets/js/mobileMenu.js (fixed menu under header)
   - Assumes header height ≈ 64px (h-16)
   ========================================================= */

#mobile-menu {
  /* Panel feel */
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;

  /* Keep it tidy on small screens */
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* Optional: subtle backdrop separation */
  background: #fff;
}

/* Better tap targets + nicer hover */
#mobile-menu a,
#mobile-menu button {
  display: block;
  border-radius: 12px;
  padding: 10px 10px;
}

/* Hover / focus feel */
#mobile-menu a:hover,
#mobile-menu button:hover {
  background: rgba(124, 58, 237, 0.06);
}

/* Optional: light dividers between items */
#mobile-menu a + a,
#mobile-menu a + button,
#mobile-menu button + a {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* Optional: keyboard focus clarity */
#mobile-menu a:focus-visible,
#mobile-menu button:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.5);
  outline-offset: 2px;
}
@import url('/assets/css/fonts.css');
