:root {
  --bg-dark: #101216;
  --bg-card: #181b20;
  --bg-card-hover: #22272e;
  --accent: #0078f2; /* Epic style blue, or use #66c0f4 for Steam style */
  --text-main: #f5f5f5;
  --text-muted: #9e9e9e;
  --tag-bg: #2a2e35;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text-main);
}

/* Featured Project Hero Section */
.featured-hero {
  position: relative;
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.hero-media {
  background-color: #000;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: repeating-linear-gradient(45deg, #1a1d22, #1a1d22 12px, #171a1e 12px, #171a1e 24px);
}

.thumb-large {
  font-size: 1rem;
}

.hero-info {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--tag-bg);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 4rem;
  font-size: 0.75rem;
}

.muted-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Catalog Grid */
.section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
}

.card-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #222;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-hero {
    grid-template-columns: 1fr;
  }
  .hero-info {
    padding: 1.5rem;
  }
}
