/* ==========================================================================
   SimplyPost Demos Page Styles
   Organized: Custom Properties → Base → Hero → Cards → Chat → Animations → Responsive
   ========================================================================== */

/* ==========================================================================
   0. CSS Custom Properties (:root) — Brand Colors
   ========================================================================== */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #004e89;
  --success: #2d8f47;
  --warning: #f7931e;
  --accent: #1a659e;
}

/* ==========================================================================
   1. Base & Body
   ========================================================================== */
html {
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--secondary) 0%, #0a1628 100%);
  color: white;
  overflow-x: hidden;
}

/* ==========================================================================
   2. Demos Hero Section
   ========================================================================== */
.demos-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.demos-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.demos-hero-headline {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.demos-hero-subtext {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   3. Demo Section & Cards
   ========================================================================== */
.demo-section {
  padding: 40px 0 80px;
}

.demo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.demo-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.demo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.demo-icon-orange {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.demo-icon-navy {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.demo-icon-green {
  background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
}

.demo-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

/* ==========================================================================
   4. Chat Demo Styles
   ========================================================================== */
.chat-demo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.chat-header {
  background: var(--success);
  padding: 16px 20px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-header i {
  font-size: 1.2rem;
}

.powered-label {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-left: auto;
  font-weight: 400;
}

.chat-messages {
  padding: 20px;
  min-height: 380px;
  max-height: 450px;
  overflow-y: auto;
  background: #0d1418 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wa-bg" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23wa-bg)"/></svg>');
}

.chat-message {
  margin-bottom: 12px;
  animation: slideIn 0.3s ease;
}

.message-bot {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  display: inline-block;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-user {
  background: var(--success);
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  display: inline-block;
  max-width: 85%;
  float: right;
  clear: both;
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.message-btn {
  background: rgba(45, 143, 71, 0.15);
  border: 1px solid var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.message-btn:hover {
  background: var(--success);
}

/* ==========================================================================
   5. Animations
   ========================================================================== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slideIn {
  animation: slideIn 0.3s ease;
}

/* ==========================================================================
   6. Responsive Breakpoints (576px, 768px, 992px, 1200px)
   ========================================================================== */

/* Extra-large devices (≤1200px) */
@media (max-width: 1200px) {
  .demos-hero-headline {
    font-size: 3rem;
  }
}

/* Large devices / Tablets landscape (≤992px) */
@media (max-width: 992px) {
  .demos-hero-headline {
    font-size: 2.8rem;
  }

  .demos-hero {
    padding: 120px 0 50px;
  }
}

/* Medium devices / Tablets portrait (≤768px) */
@media (max-width: 768px) {
  .demos-hero {
    padding: 100px 0 40px;
  }

  .demos-hero-headline {
    font-size: 2.2rem;
  }

  .demos-hero-subtext {
    font-size: 1rem;
  }

  .chat-messages {
    min-height: 300px;
    max-height: 380px;
  }

  .demo-card {
    padding: 24px;
  }
}

/* Small devices / Phones (≤576px) */
@media (max-width: 576px) {
  .demos-hero-headline {
    font-size: 2rem;
  }

  .demos-hero-subtext {
    font-size: 0.95rem;
  }

  .demo-card {
    padding: 16px;
    border-radius: 18px;
  }

  .demo-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 12px;
  }

  .demo-title {
    font-size: 1.1rem;
  }

  .chat-header {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .chat-messages {
    padding: 15px;
    min-height: 280px;
    max-height: 350px;
  }

  .message-bot,
  .message-user {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .message-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   7. Navbar (shared with landing page)
   ========================================================================== */
.navbar {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar-brand {
  z-index: 1001;
}

.navbar-brand img {
  max-height: 48px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0 15px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

.btn-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10px 30px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  color: white;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   8. Footer (shared with landing page)
   ========================================================================== */
footer {
  background: #050505;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h5 {
  color: var(--primary);
  margin-bottom: 20px;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--primary);
}

footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.05);
  margin: 40px 0 20px;
}

footer .footer-bottom {
  color: rgba(255, 255, 255, 0.4);
}

footer .footer-badge {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 78, 137, 0.1) 100%);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 15px;
  padding: 20px;
  display: inline-block;
}

footer .footer-badge .copyright {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

footer .footer-badge .company {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

footer .footer-contact {
  color: rgba(255, 255, 255, 0.5);
}
