/**
 * Homepage Styles - No-IP.pl Modern SaaS Layout
 * Hero Section, Trust Bar, Benefits, Downloads, Fat Footer
 * Mobile-first approach
 */

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  color: var(--color-text-inverse);
  padding: var(--section-padding-y-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero-heading {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}

.hero-subtext {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.trust-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  flex-shrink: 0;
}

/* === BENEFITS SECTION === */
.benefits {
  padding: var(--section-padding-y) 0;
  background: var(--color-bg-secondary);
}

.benefits-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  color: var(--color-text);
  margin-bottom: var(--space-12);
  letter-spacing: -0.02em;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.benefit-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.benefit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}

.benefit-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.benefit-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* === DOWNLOADS SECTION === */
.downloads {
  padding: var(--section-padding-y) 0;
  background: var(--color-bg);
}

.downloads-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

.section-subtext {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: calc(var(--space-4) * -1);
  margin-bottom: var(--space-10);
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.download-tile {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.download-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.download-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.download-name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

/* === FAT FOOTER === */
.fat-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--section-padding-y) 0 var(--space-8);
}

.fat-footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-2);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-text-inverse);
}

.footer-col p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-support-link {
  color: #f472b6;
  text-decoration: none;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-support-link:hover {
  color: #ec4899;
}

/* === LOGGED-IN USER HOMEPAGE === */
.user-welcome {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  margin-bottom: var(--space-8);
}

.user-welcome h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.user-welcome p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  min-width: 200px;
  justify-content: center;
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* === RESPONSIVE: TABLET (768px+) === */
@media (min-width: 768px) {
  .hero-heading {
    font-size: var(--text-5xl);
  }

  .hero-subtext {
    font-size: var(--text-xl);
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .trust-bar-inner {
    gap: var(--space-10);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-actions {
    flex-direction: row;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .quick-actions {
    flex-direction: row;
  }
}

/* === RESPONSIVE: DESKTOP (1024px+) === */
@media (min-width: 1024px) {
  .hero {
    padding: var(--space-32) 0 var(--section-padding-y-lg);
  }

  .hero-heading {
    font-size: var(--text-6xl);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* === RESPONSIVE: SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
  .hero-heading {
    font-size: var(--text-2xl);
  }

  .hero-subtext {
    font-size: var(--text-base);
  }

  .trust-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .benefit-card {
    padding: var(--space-6);
  }

  .download-tile {
    padding: var(--space-6);
  }
}
