/* ============================================
   git.faur.sh — custom homepage theme
   Uses Gitea CSS variables for theme compat
   ============================================ */

/* --- Make the page fill the viewport --- */

.full.height {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content.home {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Hero section: fills remaining space, vertically centers content --- */

.page-content.home .hero-section {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 2rem;
  overflow: hidden;
}

/* Subtle radial glow - adapts via opacity */
.page-content.home .hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, var(--color-primary-alpha-10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 65% 55%, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.page-content.home .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  width: 100%;
}

/* Logo */
.page-content.home .hero-logo {
  filter: drop-shadow(0 0 32px var(--color-primary-alpha-30));
  transition: filter 0.4s ease, transform 0.4s ease;
  margin-bottom: 1.5rem;
}

.page-content.home .hero-logo:hover {
  filter: drop-shadow(0 0 48px var(--color-primary-alpha-50));
  transform: scale(1.03);
}

/* Title */
.page-content.home .hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
  color: var(--color-primary);
}

/* Subtitle */
.page-content.home .hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light-2);
  font-weight: 400;
  margin: 0 0 2.5rem;
  line-height: 1.5;
}

/* --- CTA buttons --- */

.page-content.home .hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-content.home .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.page-content.home .btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: 0 4px 20px var(--color-primary-alpha-30);
}

.page-content.home .btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-primary-contrast);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--color-primary-alpha-40);
}

.page-content.home .btn-outline {
  border: 1.5px solid var(--color-secondary);
  color: var(--color-text-light-1);
  background: transparent;
}

.page-content.home .btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-alpha-10);
  transform: translateY(-2px);
}

/* --- Features section: pinned to bottom --- */

.page-content.home .features-section {
  flex: 0 0 auto;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--color-secondary-alpha-20);
  background: var(--color-box-body);
}

.page-content.home .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.page-content.home .feature-card {
  background: var(--color-light);
  border: 1px solid var(--color-light-border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.page-content.home .feature-card:hover {
  border-color: var(--color-primary-alpha-40);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--color-shadow);
}

.page-content.home .feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-primary-alpha-10);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.page-content.home .feature-icon-wrap .svg {
  width: 28px;
  height: 28px;
}

.page-content.home .feature-card h3 {
  color: var(--color-text);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.page-content.home .feature-card p {
  color: var(--color-text-light-2);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .page-content.home .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-content.home .hero-section {
    padding: 3rem 1.5rem 2rem;
  }

  .page-content.home .hero-title {
    font-size: 2.2rem;
  }

  .page-content.home .hero-subtitle {
    font-size: 1.05rem;
  }

  .page-content.home .hero-logo {
    width: 100px;
    height: 100px;
  }

  .page-content.home .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-content.home .features-section {
    padding: 2rem 1.5rem 3rem;
  }

  .page-content.home .feature-card {
    padding: 1.5rem 1.25rem;
  }
}
