/* Variables */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #fce4ec;
  --secondary: #9c27b0;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --white: #ffffff;
  --gray: rgba(255, 255, 255, 0.7);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--darker);
  color: var(--white);
  overflow-x: hidden;
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 30px;
}

.lang-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--gray);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  background: var(--gradient);
  color: var(--white);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(233, 30, 99, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(156, 39, 176, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(233, 30, 99, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon {
  font-size: 2.5rem;
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(233, 30, 99, 0.3);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Features */
.features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--gray);
}

.feature-icon {
  font-size: 1.25rem;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  background: var(--gradient);
  color: var(--white);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(233, 30, 99, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(233, 30, 99, 0.5);
}

.cta-button .arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(5px);
}

.hint {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--gray);
}

/* Floating Hearts */
.hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  color: var(--primary);
  opacity: 0.1;
  font-size: 2rem;
  animation: float 15s infinite ease-in-out;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 1.5rem; }
.heart:nth-child(2) { left: 30%; animation-delay: 3s; font-size: 2rem; }
.heart:nth-child(3) { left: 50%; animation-delay: 6s; font-size: 1rem; }
.heart:nth-child(4) { left: 70%; animation-delay: 9s; font-size: 2.5rem; }
.heart:nth-child(5) { left: 90%; animation-delay: 12s; font-size: 1.5rem; }

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Content Sections */
.content-section {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-items: center;
}

.content-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
  border-color: var(--primary);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 1.5rem;
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tag {
  background: rgba(233, 30, 99, 0.2);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

.cta-button-small {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.cta-button-small:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(233, 30, 99, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  color: var(--gray);
  padding: 40px;
}

/* SixAds Banner */
.sixads-section {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  background: linear-gradient(to bottom, transparent, var(--darker));
}

.sixads-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--gray);
}

.sixads-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.banner-section {
  flex: 1 1 calc(33.33% - 20px);
  max-width: 300px;
}

.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.banner-img:hover {
  transform: scale(1.02);
}

.sixads-link {
  display: block;
  text-align: center;
  margin-top: 8px;
}

.sixads-link a {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sixads-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

/* Footer */
footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--darker);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

.footer-links .divider {
  color: rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.copyright a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .banner-section {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .banner-section {
    flex: 1 1 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .features {
    flex-direction: column;
    gap: 16px;
  }

  .feature {
    justify-content: center;
  }

  .lang-switcher {
    top: 16px;
    right: 16px;
  }

  .cta-button {
    padding: 16px 36px;
    font-size: 1rem;
  }
}
