/**
 * DropX - Стили для главной страницы
 * Стиль Glassmorphism
 */

/* Общий контейнер страницы */
.home-page {
  background-color: var(--bg-primary);
  position: relative;
  color: var(--text-color);
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Фиксы для отображения контента */
.hero, .features, .about, .platform-stats {
  position: relative;
  z-index: 10;
}

.hero-content, .feature-card, .about-content, .stat-card {
  position: relative;
  z-index: 10;
}

/* Улучшение видимости текста */
.hero-title, .section-title, .feature-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 15;
}

.hero-description, .feature-description, .about-content p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 15;
}

/* Фоновые элементы */
.background-elements {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -20;
  pointer-events: none;
}

.background-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.15), transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), 0.1), transparent 60%);
  opacity: 0.5;
}

.background-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  left: -100px;
  background: var(--accent-color);
  opacity: 0.3;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -100px;
  background: var(--accent-color);
  opacity: 0.2;
}

.shape-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: var(--accent-color);
  opacity: 0.1;
}

/* Hero секция */
.hero {
  padding: 4rem 0 2rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

.hero-image-main {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(var(--accent-rgb), 0.2));
  animation: float 6s ease-in-out infinite;
}

/* Секция преимуществ */
.features {
  padding: 3rem 0;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: 2rem;
  position: relative;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Улучшение для светлой темы */
[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

[data-theme="light"] .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.feature-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.15);
  transition: all 0.3s ease;
}

[data-theme="light"] .feature-icon {
  background: rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.1), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.feature-card:hover .feature-icon {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.25);
}

[data-theme="light"] .feature-card:hover .feature-icon {
  box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.15), 0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* О платформе */
.about {
  padding: 2rem 0 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.about-card {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-content {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.about-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Анимации */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .features {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .features-grid {
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .about {
    padding: 3rem 0;
  }
}

/* Утилиты текста */
.text-center {
  text-align: center !important;
}

/* Футер на главной странице */
main.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* Уменьшаем отступы вертикальные в карточках */
.feature-card {
  padding: 1.5rem 1rem;
}

.about-card {
  padding: 1.5rem;
}

/* Уменьшаем размер и отступы заголовка */
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Уменьшаем отступы контента о платформе */
.about-content {
  margin-top: 1rem;
  gap: 0.5rem;
}

.about-cta {
  margin-top: 1rem;
}

/* Уменьшаем размер иконок */
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Полностью убираем отступ до футера */
.relocated-footer {
  margin-top: 0;
}

/* Стили для секции статистики */
.platform-stats {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

/* Обеспечиваем корректное распределение пространства */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glass-shadow-lg);
}

.stat-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.15);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.25);
}

.stat-value {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.hero-visual {
  position: relative;
  width: 400px;
  height: 400px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.4));
  border-radius: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(230, 185, 128, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
              0 1px 2px rgba(230, 185, 128, 0.05);
  z-index: 5;
}

/* Стили для hero-visual в светлой теме */
[data-theme="light"] .hero-visual {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.7));
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 
              0 1px 2px rgba(var(--accent-rgb), 0.1);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(230, 185, 128, 0.1));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .hero-visual::before {
  background: linear-gradient(45deg, transparent, rgba(var(--accent-rgb), 0.05));
}

.hero-visual:hover::before {
  opacity: 1;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  padding: 3rem;
  transform: scale(1.25);
}

.hero-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-color);
  opacity: 0.9;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 15px rgba(230, 185, 128, 0.3));
}

[data-theme="light"] .hero-icon {
  color: var(--accent-color);
  filter: drop-shadow(0 0 15px rgba(var(--accent-rgb), 0.2));
}

.hero-icon:hover {
  transform: scale(1.2) rotate(5deg);
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(230, 185, 128, 0.5));
}

[data-theme="light"] .hero-icon:hover {
  filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.3));
}

/* Анимация появления */
@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

.hero-icon:nth-child(2) {
  animation-delay: 0.7s;
}

.hero-icon:nth-child(3) {
  animation-delay: 1.4s;
}

.hero-icon:nth-child(4) {
  animation-delay: 2.1s;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    width: 320px;
    height: 320px;
  }
  
  .hero-icons {
    gap: 2rem;
    padding: 2rem;
  }
  
  .hero-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 576px) {
  .hero-visual {
    width: 280px;
    height: 280px;
  }
  
  .hero-icons {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .hero-icon {
    width: 40px;
    height: 40px;
  }
}

/* Специальный стиль для заголовка "Почему выбирают DropX" */
.why-choose-title {
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 2.5rem !important;
}

.why-choose-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 120px; /* Увеличиваем ширину линии */
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
  z-index: 2; /* Обеспечиваем приоритет отображения */
} 