/* Landing Page Styles */

html {
  height: 100%;
}

.landing-body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Landing Header */
.landing-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.landing-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.logo-image {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2rem;
}

.landing-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.language-switcher {
  display: flex;
  align-items: center;
}

/* Desktop language switcher - hidden on mobile */
.language-switcher-desktop {
  display: flex;
}

/* Mobile language switcher - hidden on desktop */
.language-switcher-mobile {
  display: none;
}

.locale-form {
  margin: 0;
}

.locale-select {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

/* Mobile locale select - larger emoji */
.locale-select-mobile {
  font-size: 1.5rem;
  padding: 4px 8px;
  min-width: 50px;
  text-align: center;
}

.locale-select:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.locale-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #764ba2;
}

/* Telegram-style button for authenticated users */
.landing-body .btn-telegram-login {
  background: #0088cc;
  color: white;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.landing-body .btn-telegram-login:hover {
  background: #0077b5;
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
  transform: translateY(-2px);
}

.landing-body .btn-telegram-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.landing-body .btn-telegram-logout {
  background: transparent;
  color: #667eea;
  border: 1.5px solid #667eea;
  padding: 9px 23px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.landing-body .btn-telegram-logout:hover {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.landing-body .btn-telegram-logout:active {
  transform: translateY(0);
}

/* Landing Footer */
.landing-footer {
  background: #2d3748;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  opacity: 0.9;
}

.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 300;
}

.telegram-login-btn {
  background: white;
  color: #667eea;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telegram-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.telegram-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.landing-body .btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.landing-body .btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.landing-body .btn-primary {
  background: white;
  color: #667eea;
}

.landing-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.landing-body .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.landing-body .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 80px 20px;
  background: #f8f9fa;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2d3748;
}

.feature-description {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 20px;
  background: white;
}

.how-it-works-container {
  max-width: 1200px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2d3748;
}

.step-description {
  color: #4a5568;
  line-height: 1.7;
}

/* Examples Section */
.examples {
  padding: 80px 20px;
  background: white;
}

.examples-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.6;
}

/* Examples section specific styles */
.examples .section-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.8rem;
}

.examples .section-subtitle {
  font-size: 1.3rem;
  color: #2d3748;
  font-weight: 500;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.example-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.example-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.example-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.example-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.example-card:hover .example-image {
  transform: scale(1.05);
}

.example-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.example-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.example-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.example-description {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  font-weight: 400;
}

.example-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.example-link:hover {
  color: #764ba2;
  gap: 12px;
}

.link-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.example-link:hover .link-arrow {
  transform: translateX(4px);
}

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

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cta-section .telegram-login-btn {
  background: white;
  color: #667eea;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-section .telegram-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cta-section .telegram-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .examples .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  .examples .section-subtitle {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .examples-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .example-image-wrapper {
    height: 180px;
  }

  .example-content {
    padding: 25px 20px;
  }

  .example-icon {
    font-size: 2.5rem;
  }

  .example-title {
    font-size: 1.3rem;
  }

  .example-description {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }

  .landing-logo {
    font-size: 1.2rem;
  }

  .logo-image {
    height: 32px;
  }

  /* Hide desktop language switcher, show mobile version */
  .language-switcher-desktop {
    display: none;
  }

  .language-switcher-mobile {
    display: flex;
  }

  /* Hide 'Get Started' button on mobile, keep only 'Login' */
  .landing-actions .btn-get-started {
    display: none !important;
  }

  /* Tablet styles for Telegram login button */
  .landing-body .btn-telegram-login {
    padding: 9px 20px;
    font-size: 0.9rem;
  }

  .cta-section .telegram-login-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .cta-button-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .examples .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .examples .section-subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .examples {
    padding: 60px 15px;
  }

  .examples-grid {
    gap: 20px;
  }

  .example-image-wrapper {
    height: 160px;
  }

  .example-content {
    padding: 20px 15px;
  }

  .example-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .example-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .example-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .example-link {
    font-size: 0.95rem;
  }

  .landing-logo {
    font-size: 0.9rem;
  }

  .logo-image {
    height: 24px;
  }

  .logo-icon {
    font-size: 1.2rem;
  }

  .landing-actions {
    gap: 5px;
  }

  .btn-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .landing-nav {
    padding: 0 15px;
  }

  /* Mobile styles for Telegram login button */
  .landing-body .btn-telegram-login {
    padding: 5px 10px;
    font-size: 0.7rem;
    gap: 3px;
  }

  .cta-section .telegram-login-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 300px;
  }

  .cta-button-group {
    gap: 15px;
  }

  /* Hide text in Telegram widget on very small screens */
  .landing-header script[data-telegram-login] {
    max-width: 100%;
  }
}