/* 
 * Public pages styling for Verteco.pro
 */

:root {
  --verteco-primary: #5a67d8;
  --verteco-primary-dark: #4c51bf;
  --verteco-secondary: #38b2ac;
  --verteco-dark: #2d3748;
  --verteco-light: #f7fafc;
  --verteco-gray: #a0aec0;
}

.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--verteco-dark);
}

.public-content {
  flex: 1 0 auto;
}

.public-footer {
  flex-shrink: 0;
}

/* Header improvements */
.public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-collapse {
  justify-content: space-between;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--verteco-primary) 0%, var(--verteco-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('/static/img/hero-pattern.svg');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-light {
  background-color: white;
  color: var(--verteco-primary);
  border-color: white;
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--verteco-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
}

/* Features */
.features {
  padding: 6rem 0;
  background-color: var(--verteco-light);
}

.features h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.feature-card {
  height: 100%;
  transition: all 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background-color: rgba(90, 103, 216, 0.1);
  color: var(--verteco-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Benefits */
.benefits {
  padding: 6rem 0;
  background-color: white;
}

.benefits h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.benefits img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.benefits h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefits i {
  color: var(--verteco-primary);
}

/* CTA */
.cta {
  padding: 6rem 0;
  background-color: var(--verteco-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('/static/img/cta-pattern.svg');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.cta .container {
  position: relative;
  z-index: 1;
}

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

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonials {
  padding: 6rem 0;
  background-color: var(--verteco-light);
}

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

.testimonial-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 1.5rem 0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.testimonial-card .card-body {
  padding: 2rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

/* Footer improvements */
.public-footer {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.public-footer h5 {
  font-weight: 600;
  color: var(--verteco-dark);
}

.public-footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

.public-footer a.text-muted {
  transition: all 0.2s ease;
}

.public-footer a.text-muted:hover {
  color: var(--verteco-primary) !important;
  text-decoration: none;
}

/* Legal Pages */
.legal-content {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 3rem 0;
}

.legal-content h2 {
  color: var(--verteco-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-content h3 {
  color: var(--verteco-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Contact Page */
.contact-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info {
  padding: 2.5rem;
}

.contact-info i {
  color: var(--verteco-primary);
  margin-right: 0.5rem;
}

/* Responsive - improved for mobile */
@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 35px;
  }
  
  .navbar .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  
  .d-flex.gap-2 .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .features, 
  .benefits, 
  .cta, 
  .testimonials {
    padding: 4rem 0;
    text-align: center;
  }
  
  .features h2,
  .benefits h2,
  .cta h2,
  .testimonials h2 {
    font-size: 2rem;
  }
  
  .benefits .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .benefits .d-flex .me-3 {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }
  
  .legal-content {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    margin: 0.75rem 0;
  }
  
  .testimonial-card .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    margin-right: 0;
  }
  
  .dropdown.me-3 {
    margin-right: 0.5rem !important;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .testimonial-card .d-flex {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }
  
  .testimonial-card .d-flex img {
    margin-bottom: 1rem;
    margin-right: 0 !important;
  }
}

/* Language Selector */
.dropdown-menu form {
  width: 100%;
}

.language-dropdown .dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
}

/* Multilingual Support */
[lang="de"] .public-page,
[lang="es"] .public-page,
[lang="fr"] .public-page,
[lang="cs"] .public-page,
[lang="sk"] .public-page,
[lang="it"] .public-page,
[lang="nl"] .public-page,
[lang="hu"] .public-page,
[lang="pl"] .public-page,
[lang="hr"] .public-page,
[lang="da"] .public-page,
[lang="fi"] .public-page,
[lang="sv"] .public-page,
[lang="nb"] .public-page,
[lang="ro"] .public-page,
[lang="el"] .public-page,
[lang="pt-pt"] .public-page,
[lang="uk"] .public-page {
  /* Add specific styling for different languages if needed */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* For languages with longer text (German, Finnish, etc.) */
[lang="de"] .btn,
[lang="fi"] .btn,
[lang="nl"] .btn {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* For RTL languages like Arabic (if added in the future) */
[dir="rtl"] .public-page {
  text-align: right;
}
