/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Modern design with professional fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0a0a0a;
  --secondary-color: #6b7280;
  --accent-color: #3b82f6;
  --background: #ffffff;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 40% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 35%),
    linear-gradient(135deg, 
      rgba(99, 102, 241, 0.03) 0%, 
      rgba(139, 92, 246, 0.02) 25%, 
      rgba(59, 130, 246, 0.01) 50%, 
      transparent 75%
    ),
    conic-gradient(from 45deg at 50% 0%, 
      rgba(99, 102, 241, 0.02) 0deg, 
      transparent 60deg, 
      rgba(139, 92, 246, 0.015) 120deg, 
      transparent 180deg
    ),
    #ffffff;
  background-size: 800px 600px, 1000px 800px, 600px 400px, 100% 200px, 100% 150px, 100% 100%;
  background-position: 0% 0%, 100% 0%, 0% 100%, 0% 0%, 0% 0%, 0% 0%;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--primary-color);
  line-height: 1.6;
}

/* Heading fonts - professional Montserrat */
h1, h2, h3, h4, h5, h6,
.logo-link,
.hero-hook {
  font-family: 'Montserrat', 'Inter', sans-serif;
}

/* Heading sizes */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

section {
  margin: 10px 0;
}

/* Futuristic texture overlay animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.02) 25%, rgba(139, 92, 246, 0.015) 50%, rgba(59, 130, 246, 0.01) 75%, transparent 100%),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      rgba(99, 102, 241, 0.005) 1px,
      transparent 2px,
      transparent 20px
    );
  pointer-events: none;
  z-index: 1;
  animation: futuristicScan 8s ease-in-out infinite;
}

@keyframes futuristicScan {
  0%, 100% { 
    opacity: 0.3;
    transform: translateX(-10px);
  }
  50% { 
    opacity: 0.6;
    transform: translateX(10px);
  }
}

/* Hero section */
.hero-section {
  background: transparent;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 6rem;
  color: var(--primary-color);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  flex: 1;
}

.hero-text {
  text-align: left;
}

.hero-hook {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  line-height: 1.2;
}

.hero-mission {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cartoon-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Common layout classes */
.center-container {
  text-align: center;
  padding: 50px 20px;
}

.card {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.info-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: white;
}

.code-display {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 20px 0;
  font-family: monospace;
  background: white;
  padding: 15px;
  border-radius: 4px;
  border: 2px solid #ddd;
}

/* Header and navigation */
.main-header {
  position: static;
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  height: 60px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-family: 'Montserrat', 'Inter', sans-serif;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

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

.account-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.account-link:hover {
  color: var(--primary-color);
}

.sign-in-btn {
  background: var(--primary-color);
  border: none;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sign-in-btn:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
}

/* Main content area */
.main-content {
  padding-top: 0;
  min-height: calc(100vh - 120px);
}

/* Footer */
.main-footer {
  padding: 3rem 2rem;
  background: transparent;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.locale-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.locale-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.15s ease;
}

.locale-link:hover {
  color: var(--secondary-color);
}

.locale-link.active {
  color: var(--primary-color);
  font-weight: 500;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copyright-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.copyright-link:hover {
  color: var(--secondary-color);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--secondary-color);
}

/* Mission section */
.mission-card {
  background: #f8f9fa;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.mission-title {
  color: #007bff;
  margin-top: 0;
}

.mission-text {
  margin-bottom: 15px;
  line-height: 1.6;
}

.mission-solution {
  margin-bottom: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.mission-commitment {
  margin-bottom: 0;
  font-style: italic;
  color: #666;
}

/* WhatsApp integration */
.whatsapp-container {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.whatsapp-button {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin: 10px 0;
}

.qr-image {
  width: 120px;
  height: 120px;
  border: 2px solid #ddd;
  border-radius: 8px;
}

/* Text styles */
.highlight-text {
  background-color: #fef08a;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.text-muted {
  color: #666;
}

.text-small {
  font-size: 12px;
}

.text-medium {
  font-size: 14px;
}

.small-text {
  font-size: 0.9em;
}

.description-text {
  color: #666;
  margin-top: 20px;
}

.help-text {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.qr-help-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.request-id-text {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

/* Lists and containers */
.max-width-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.grid-container {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.request-title {
  margin: 0 0 8px 0;
  color: #333;
}

.request-details {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}

.request-badge {
  background: #e7f3ff;
  color: #0066cc;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Loading and search */
.loading-container {
  display: none;
  height: 30px;
}

.loading-text {
  margin: 20px 0px;
}

.search-results {
  margin-top: 30px;
}

.search-result-item {
  margin-bottom: 10px;
}

/* Buttons */
.create-request-container {
  margin-top: 0;
  padding: 0;
  text-align: left;
}

.create-request-container input[type="submit"],
.create-request-container button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.create-request-container input[type="submit"]:hover,
.create-request-container button:not(:disabled):hover {
  background: #1f1f1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--text-muted) !important;
}

.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.help-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Utility classes */
.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

/* Privacy Policy Page */
.privacy-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
}

.privacy-container {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.privacy-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.privacy-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h2 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.privacy-section h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1.5rem 0 0.75rem 0;
}

.privacy-section p {
  color: var(--secondary-color);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.privacy-section li {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.privacy-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.privacy-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Compact Problem & Solution Section */
.compact-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.problem-solution-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-half {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
}

.compact-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.compact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.compact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid rgba(99, 102, 241, 0.15);
  flex-shrink: 0;
}

.step-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.compact-content {
  flex: 1;
}

.compact-content h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.compact-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-hook {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-mission {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-section {
    padding: 0.75rem 2rem;
  }
  
  .hero-cartoon-image {
    max-width: 350px;
  }
  
  .main-header {
    padding: 1rem 2rem;
  }
  
  .nav-container {
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .logo-link {
    font-size: 1.25rem;
  }
  
  .create-request-container {
    text-align: center;
  }
  
  .create-request-container input[type="submit"],
  .create-request-container button {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }
  
  /* Compact sections mobile */
  .compact-section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .problem-solution-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-half {
    padding: 1.5rem;
  }
  
  .compact-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .compact-list {
    gap: 1rem;
  }
}

/* Medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-section {
    padding: 1rem 3rem;
  }
  
  .main-header {
    padding: 1rem 3rem;
  }
}