:root {
  --pink: #ff6b9d;
  --orange: #ff9a56;
  --yellow: #ffd93d;
  --blue: #4fc3f7;
  --green: #6bcb77;
  --purple: #a66dd4;
  --ink: #2d2d3a;
  --paper: #fffaf3;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: 'Baloo 2', cursive;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

/* Main */
main {
  padding: 40px 20px 60px;
}

/* Hero (home page) */
.hero {
  text-align: center;
  padding: 20px 0 40px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 6px;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
}

.copyright-note {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* Card grid, used on home / art / tech */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 6px solid var(--blue);
}

.card:nth-child(3n+1) { border-top-color: var(--pink); }
.card:nth-child(3n+2) { border-top-color: var(--green); }
.card:nth-child(3n+3) { border-top-color: var(--purple); }

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

.card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  color: #666;
}

.card .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

/* Gallery thumbnails */
.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.card.gallery {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.card.gallery img,
.lightbox-img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.card.gallery img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #f3ede1;
  display: block;
  transition: transform 0.2s ease;
}

.card.gallery:hover img { transform: scale(1.05); }

.card.gallery h3 {
  margin: 0;
  padding: 8px 10px 3px;
  font-size: 0.9rem;
}

.card.gallery .prize {
  margin: 0;
  padding: 0 10px 10px;
  color: #b8860b;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 25, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 14px;
  max-width: 520px;
}

.lightbox-title {
  font-family: 'Baloo 2', cursive;
  margin: 0 0 4px;
}

.lightbox-prize {
  color: var(--yellow);
  font-weight: 800;
  margin: 0 0 4px;
}

.lightbox-info {
  color: #ddd;
  margin: 0;
  font-size: 0.95rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Blog list */
.post-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.post-list li {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.post-list a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.post-list a:hover { text-decoration: underline; }

.post-list .date {
  display: block;
  color: #888;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Single post */
.back-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
}

.post-date {
  color: #888;
  margin-top: 0;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}
