/* ===== mibird games - Global Styles ===== */
/* Minimalist card-style design */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5;
  color: #555;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.nav {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-brand:hover {
  color: #c0392b;
}

/* Main content */
main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Page header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.page-header p {
  color: #999;
  font-size: 15px;
}

/* Game card grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Game card */
.game-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.game-card-thumb {
  width: 100%;
  height: 180px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.game-card-thumb.minesweeper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card-body {
  padding: 16px 20px 20px;
}

.game-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.game-card-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

.game-card-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f0f0f0;
  font-size: 12px;
  color: #888;
}

.game-card:hover .game-card-tag {
  background: #fdf6f0;
  color: #c0392b;
}

/* Play button on card */
.game-card-play {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  border-radius: 8px;
  background: #2c3e50;
  color: white;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.game-card:hover .game-card-play {
  background: #c0392b;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #ccc;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  color: #bbb;
  font-size: 13px;
  border-top: 1px solid #eee;
  background: white;
}

/* Responsive */
@media (max-width: 600px) {
  main { padding: 24px 16px; }
  .page-header h1 { font-size: 26px; }
  .game-grid { grid-template-columns: 1fr; }
}

/* Utility */
.text-muted { color: #999; }
