/* Dark Theme Styles */
:root {
  --primary-green: #4ade80;
  --dark-bg: #0a0a0a;
  --dark-card: #1a1a1a;
  --dark-border: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  overflow-x: hidden;
}

.dark-theme {
  background: var(--dark-bg);
  color: var(--text-primary);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--dark-bg);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-btn {
  background: none;
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  padding: 0.5rem 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.language-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.language-option:hover,
.language-option.active {
  background: var(--primary-green);
  color: var(--dark-bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--dark-bg);
}

.btn-primary:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--dark-border);
}

.btn-outline:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #111111 100%);
  margin-top: 80px;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  padding: 4rem 0;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  text-align: left;
  max-width: 600px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.play-icon {
  font-size: 0.8rem;
}

/* Slide Content */
.slide-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.slide-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-green);
  line-height: 1.2;
}

.slide-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Copyright Notice */
.copyright-notice {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  text-align: left;
}

.copyright-notice em {
  color: var(--primary-green);
  font-style: italic;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 1rem;
}

.copyright-notice p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Text */
.about-text {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Premium Content */
.premium-content {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--dark-card);
  border-radius: 8px;
  text-align: center;
}

.premium-content h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.premium-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* CTA Content */
.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-warning {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
}

.carousel-btn {
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: var(--primary-green);
  color: var(--dark-bg);
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-green);
}

/* Preview Section */
.preview-section {
  padding: 6rem 0;
  background: var(--dark-bg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary-green);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
}

.video-card {
  background: var(--dark-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-player-wrapper {
  position: relative;
  background: #000;
}

.video-player {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.video-info p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Login Page Styles */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.login-card {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.login-header .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--dark-bg);
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* Error Message */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

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

/* Telegram Login Section */
.telegram-login-section {
  margin-bottom: 2rem;
}

.telegram-info {
  text-align: center;
  margin-bottom: 2rem;
}

.telegram-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.telegram-info h3 {
  color: var(--primary-green);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.telegram-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.telegram-widget-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  min-height: 50px;
}

/* Benefits List */
.login-benefits {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

.login-benefits h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.benefit-icon {
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1rem;
}

/* Language Switcher in Login */
.login-language {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.login-language .language-switcher {
  position: relative;
}

.login-language .language-btn {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-language .language-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.login-language .language-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  margin-top: 0.5rem;
}

.login-language .language-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.login-language .language-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.login-language .language-option:hover,
.login-language .language-option.active {
  background: var(--primary-green);
  color: var(--dark-bg);
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Background Animation */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -100px;
  animation-delay: -7s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .carousel-nav {
    padding: 0 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .login-container {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

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

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

  .bg-circle {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel-indicators {
    bottom: 1rem;
  }

  .login-card {
    padding: 1.5rem 1rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-header .logo {
    font-size: 1.25rem;
  }

  .login-header .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* Telegram Widget Styling */
iframe[src*="oauth.telegram.org"] {
  border-radius: 8px !important;
  border: 1px solid var(--dark-border) !important;
  background: var(--dark-card) !important;
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .btn,
  .video-card,
  .bg-circle {
    transition: none;
    animation: none;
  }
}
