/* ===== Pixel Border ===== */
.pixel-border {
  border: 4px solid #d35400;
}

/* ===== Retro Card ===== */
.retro-card {
  background: #f9f1e1;
  border: 3px solid #e6dcc6;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.retro-card > h2:first-child {
  margin-top: 0;
}

.retro-card:hover {
  border-color: #d35400;
  box-shadow: 0 0 12px rgba(211, 84, 0, 0.15);
}

/* ===== Blinking Cursor ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink::after {
  content: '\2588';
  animation: blink 1s step-end infinite;
  color: #d35400;
  margin-left: 2px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.2rem;
  color: #d35400;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: #433a2f;
}

/* ===== Navigation Cards Grid ===== */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.nav-card {
  background: #f9f1e1;
  border: 3px solid #e6dcc6;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
}

.nav-card:hover {
  border-color: #d35400;
  box-shadow: 0 0 12px rgba(211, 84, 0, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.nav-card .card-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: #d35400;
  margin-bottom: 0.5rem;
}

.nav-card .card-desc {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #8a7e6b;
}

/* ===== CRT Scanline Overlay ===== */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ===== Section Divider ===== */
.pixel-divider {
  border: none;
  border-top: 4px dashed #e6dcc6;
  margin: 2rem 0;
}

/* ===== CV Section Headers ===== */
.cv-section h2 {
  border-bottom: 3px solid #d35400;
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* ===== Publication Entry ===== */
.pub-entry {
  background: #f9f1e1;
  border: 3px solid #e6dcc6;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pub-entry:hover {
  border-color: #d35400;
  box-shadow: 0 0 12px rgba(211, 84, 0, 0.15);
}

.pub-title {
  margin-bottom: 0.4rem;
}

.pub-title a {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  font-weight: bold;
  color: #433a2f;
  text-decoration: none;
}

.pub-title a:hover {
  color: #d35400;
}

.pub-authors {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #8a7e6b;
  margin-bottom: 0.5rem;
}

.pub-authors strong {
  color: #433a2f;
}

.pub-venue {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pub-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  background: #d35400;
  color: #fef8ec;
  padding: 0.3rem 0.6rem;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* ===== Blog Listing Fixes ===== */
div.quarto-post .metadata,
div.quarto-post .body,
div.quarto-post .thumbnail {
  align-self: start !important;
}

div.quarto-post .thumbnail {
  display: none !important;
}

div.quarto-post h3.listing-title {
  margin-top: 0 !important;
}

div.quarto-post .listing-description p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
