* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* 헤더 */
.header {
  text-align: center;
  margin-bottom: 50px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .subtitle {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.header .description {
  color: #888;
  font-size: 1rem;
}

/* 카테고리 */
.categories {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #aaa;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.cat-btn:hover,
.cat-btn.active {
  background: #333;
  color: #fff;
  border-color: #555;
}

/* 카드 그리드 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  display: block;
}

.card:hover {
  background: #1a1a1a;
  border-color: #444;
  transform: translateY(-4px);
}

.tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-right: 50px;
}

.card-desc {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-category {
  color: #666;
  font-size: 0.8rem;
}

/* 푸터 */
.footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #222;
  color: #555;
  font-size: 0.85rem;
}

/* 반응형 */
@media (max-width: 600px) {
  .header h1 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr; }
}
