/* ===== Public Page Styles ===== */

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 2rem 2rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #6b7a94;
  font-weight: 400;
  position: relative;
}

/* Public Main */
.public-page main {
  padding: 2rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Projects List — stacked vertically */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Public Card — horizontal rectangle */
.pub-card {
  display: flex;
  flex-direction: row;
  border-radius: 16px;
  border: 2px solid;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 0;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Card Image (left side) */
.pub-card-image-wrap {
  flex-shrink: 0;
  width: 220px;
  overflow: hidden;
}

.pub-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Body (right side) */
.pub-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.pub-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pub-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pub-card-name:hover {
  color: #93bbff;
}

.pub-arrow {
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pub-card-name:hover .pub-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Type Badge */
.pub-type-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  flex-shrink: 0;
}

.pub-type-badge.website {
  background: rgba(59, 130, 246, 0.15);
  color: #6babff;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.pub-type-badge.python {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

/* Description */
.pub-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.25rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .public-page main {
    padding: 1.25rem 1.25rem 3rem;
  }

  /* Stack image on top on mobile */
  .pub-card {
    flex-direction: column;
  }

  .pub-card-image-wrap {
    width: 100%;
    max-height: 180px;
  }

  .pub-card-body {
    padding: 1rem 1.25rem 1.25rem;
  }
}
