/* ============================================
   RAPPO.DEV HOMEPAGE
   ============================================ */

.hero-section {
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
}

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

.hero-title {
  font-size: 5rem;
  color: var(--primary-color);
  letter-spacing: 4px;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #999;
  margin-top: 0.75rem;
}

.featured-section {
  padding: 0 2rem 5rem;
}

.section-container {
  max-width: 560px;
  margin: 0 auto;
}

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-card {
  position: relative;
  background: var(--secondary-color);
  border: 1px solid rgba(255, 136, 0, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.featured-card:hover,
.featured-card:focus-within {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.featured-card-title {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.featured-card-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Stretched link: the whole card follows the title link */
.featured-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.featured-card:hover .featured-card-link,
.featured-card:focus-within .featured-card-link {
  color: var(--primary-color);
}

.featured-card-description {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.35rem;
  line-height: 1.55;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.featured-card-host {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.3px;
}

/* Sits above the stretched link so it stays separately clickable */
.card-badge {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid rgba(255, 136, 0, 0.4);
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Invisible padding so the badge is a finger-friendly 44px tap target
   without changing how big it looks */
.card-badge::before {
  content: "";
  position: absolute;
  inset: -11px -8px;
}

.card-badge:hover {
  background: rgba(255, 136, 0, 0.12);
  border-color: var(--primary-color);
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 3rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .featured-card {
    padding: 1.25rem;
  }
}
