/* ============================================
   EduQueue Marketing Shared Styles
   ============================================ */

/* Override app dashboard styles on marketing pages */
body.marketing-page,
body.marketing-page.fixed-nav,
body.marketing-page.sticky-footer,
body.marketing-page[style] {
  background: #ffffff !important;
  background-image: none !important;
  background-attachment: initial !important;
}

body.marketing-page .container-fluid {
  background-color: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

body.marketing-page .marketing-nav .navbar {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Marketing Navigation */
.marketing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 0;
}

.marketing-nav.nav-scrolled {
  padding: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.marketing-nav .navbar {
  padding: 12px 0;
}

.marketing-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: #2d3748;
  text-decoration: none;
}

.marketing-nav .navbar-brand:hover {
  text-decoration: none;
  color: #2d3748;
}

.marketing-nav .navbar-brand img {
  height: 40px;
  width: auto;
}

.marketing-nav .nav-link {
  color: #4a5568 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
  position: relative;
}

.marketing-nav .nav-link:hover,
.marketing-nav .nav-link.active {
  color: #667eea !important;
}

.marketing-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.marketing-nav .nav-link:hover::after,
.marketing-nav .nav-link.active::after {
  transform: scaleX(1);
}

.btn-demo-nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-decoration: none;
  margin-left: 8px;
}

.btn-demo-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white !important;
  text-decoration: none;
}

/* Marketing Page Hero (reusable for inner pages) */
.marketing-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.marketing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.marketing-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.marketing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.marketing-hero .hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section Styles */
.marketing-section {
  padding: 80px 0;
}

.marketing-section-alt {
  padding: 80px 0;
  background: #f8f9fa;
}

.marketing-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.marketing-section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: #718096;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: #667eea;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #764ba2;
  text-decoration: none;
}

/* Forms */
.marketing-form .form-group {
  margin-bottom: 1.5rem;
}

.marketing-form label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.marketing-form .form-control {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.marketing-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.marketing-form select.form-control {
  height: auto;
}

.marketing-form .btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.marketing-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Card Styles */
.marketing-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.marketing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.marketing-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.marketing-card-icon i {
  font-size: 1.75rem;
  color: white;
}

.marketing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.marketing-card p {
  color: #718096;
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive adjustments for nav */
@media (max-width: 991px) {
  .marketing-nav .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .marketing-nav .nav-link::after {
    display: none;
  }

  .btn-demo-nav {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
    display: block;
  }
}

@media (max-width: 768px) {
  .marketing-hero {
    padding: 120px 0 60px;
  }

  .marketing-hero h1 {
    font-size: 2rem;
  }

  .marketing-section-title {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

/* ============================================
   Premium Footer Styles
   ============================================ */
.premium-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 60px 0 30px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding: 40px 0 50px;
  align-items: start;
}

.footer-brand-section {
  max-width: 600px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-main-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand-name {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-tagline {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 35px;
  font-weight: 400;
  line-height: 1.6;
}

.footer-badges-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #cbd5e0;
}

.security-badge i {
  color: #667eea;
  font-size: 1.1rem;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-self: end;
}

.footer-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.footer-action-link:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: #667eea;
  color: white;
  text-decoration: none;
}

.footer-action-link i {
  font-size: 1rem;
  color: #667eea;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0;
}

.footer-bottom-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  margin: 0;
  color: #718096;
  font-size: 0.95rem;
}

.footer-legal-links {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  color: #718096;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-legal-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.footer-legal-links a:hover {
  color: #cbd5e0;
}

.footer-legal-links a:hover::after {
  width: 100%;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: #718096;
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-logo-wrapper {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .footer-brand-name {
    font-size: 1.5rem;
  }

  .footer-links-section {
    justify-self: start;
  }

  .footer-bottom-modern {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-badges-row {
    justify-content: center;
  }
}
