/* ========================================
   Yogurts Corner - Shared Stylesheet
   ======================================== */

body {
  margin: 0;
  padding: 0;
  background-color: #fdf2f8;
  background-image: radial-gradient(circle, rgba(216,180,254,0.15) 1px, transparent 1px);
  background-size: 12px 12px;
  font-family: Trebuchet MS, Verdana, Geneva, sans-serif;
  color: #5b4a6a;
  min-height: 100vh;
}

/* Page container */
.page {
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 30px;
}

/* ---- Banner ---- */
.banner {
  background: linear-gradient(135deg, #fbcfe8, #e9d5ff, #bae6fd, #a7f3d0);
  padding: 18px 20px 14px;
  text-align: center;
  border-bottom: 3px dotted #e9a8d2;
  position: relative;
}

.banner h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  color: #7c3aed;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.7);
}

.banner .mascot {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 2px dashed #d8b4fe;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  line-height: 50px;
  font-size: 10px;
  color: #a78bfa;
  vertical-align: middle;
  margin-right: 10px;
}

.banner .tagline {
  font-size: 12px;
  color: #a78bfa;
  font-style: italic;
  margin-top: 4px;
}

/* ---- Navigation ---- */
.nav {
  background: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px 15px;
  border-bottom: 2px dashed #e9d5ff;
}

.nav a {
  color: #7c3aed;
  text-decoration: none;
  margin: 0 8px;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav a:hover {
  background: #fbcfe8;
  color: #6d28d9;
}

.nav a.active {
  background: #e9d5ff;
  font-weight: bold;
}

.nav .sep {
  color: #d8b4fe;
  font-size: 11px;
}

.nav .back-btn {
  display: block;
  font-size: 12px;
  color: #a78bfa;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dotted #e9d5ff;
}

/* ---- Content area ---- */
.content {
  background: rgba(255,255,255,0.65);
  margin: 20px 15px;
  padding: 25px 30px;
  border-radius: 16px;
  border: 2px dashed #e9d5ff;
}

.content h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #7c3aed;
  text-align: center;
  margin-top: 0;
  margin-bottom: 16px;
}

.content p {
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* ---- Dividers ---- */
.divider {
  text-align: center;
  font-size: 14px;
  color: #d8b4fe;
  margin: 20px 0;
  letter-spacing: 6px;
}

/* ---- News entries ---- */
.news-entry {
  margin-bottom: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.news-entry .date {
  font-weight: bold;
  color: #a855f7;
  font-family: Georgia, serif;
  font-style: italic;
}

.news-entry p {
  margin: 4px 0 0;
}

/* ---- Cards grid (characters, gallery, etc.) ---- */
.card-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.card {
  background: rgba(255,255,255,0.7);
  border: 2px dashed #fbcfe8;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  width: 150px;
}

.card .placeholder {
  width: 120px;
  height: 140px;
  border: 2px dashed #bae6fd;
  border-radius: 10px;
  background: rgba(186,230,253,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 11px;
  margin: 0 auto 8px;
}

.card .name {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #7c3aed;
  font-weight: bold;
  margin-bottom: 4px;
}

.card .bio {
  font-size: 11px;
  color: #8b7a9e;
  line-height: 1.5;
}

/* ---- Gallery grid ---- */
.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.gallery-grid .thumb {
  width: 140px;
  height: 105px;
  border: 2px dashed #a7f3d0;
  border-radius: 10px;
  background: rgba(167,243,208,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
  font-size: 11px;
}

/* ---- Wallpaper items ---- */
.wallpaper-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  justify-content: center;
}

.wallpaper-item .preview {
  width: 180px;
  height: 110px;
  border: 2px dashed #fde68a;
  border-radius: 10px;
  background: rgba(253,230,138,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 11px;
}

.wallpaper-item .info {
  font-size: 12px;
  color: #7c3aed;
}

.wallpaper-item .info .res {
  font-size: 11px;
  color: #a78bfa;
}

.download-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 14px;
  background: #e9d5ff;
  color: #6d28d9;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid #d8b4fe;
}

.download-btn:hover {
  background: #d8b4fe;
}

/* ---- Shop button ---- */
.shop-link {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #fbcfe8, #e9d5ff);
  color: #6d28d9;
  font-family: Georgia, serif;
  font-size: 18px;
  border-radius: 20px;
  text-decoration: none;
  border: 2px solid #d8b4fe;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(168,85,247,0.25);
}

/* ---- Fun section boxes ---- */
.fun-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fun-box {
  background: rgba(255,255,255,0.6);
  border: 2px dashed #fde68a;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  width: 180px;
}

.fun-box h3 {
  font-family: Georgia, serif;
  color: #a855f7;
  font-size: 15px;
  margin: 0 0 8px;
}

.fun-box p {
  font-size: 12px;
  color: #8b7a9e;
  line-height: 1.6;
  margin: 0;
}

/* ---- Comic reader ---- */
.comic-reader {
  text-align: center;
}

.comic-reader img {
  max-width: 100%;
  border-radius: 10px;
  border: 2px solid #e9d5ff;
}

.comic-title {
  font-family: Georgia, serif;
  font-size: 16px;
  color: #a855f7;
  margin-bottom: 4px;
}

.comic-page-num {
  font-size: 12px;
  color: #a78bfa;
  margin-bottom: 14px;
}

.comic-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.comic-nav button {
  background: #e9d5ff;
  color: #6d28d9;
  border: 2px solid #d8b4fe;
  border-radius: 12px;
  padding: 6px 16px;
  font-family: Trebuchet MS, Verdana, sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.comic-nav button:hover {
  background: #d8b4fe;
  transform: scale(1.05);
}

.comic-nav button:disabled {
  background: #f3e8ff;
  color: #c4b5d4;
  border-color: #e9d5ff;
  cursor: default;
  transform: none;
}

.comic-select {
  margin-bottom: 20px;
  text-align: center;
}

.comic-select button {
  background: rgba(255,255,255,0.7);
  border: 2px dashed #fbcfe8;
  border-radius: 14px;
  padding: 12px 18px;
  margin: 6px;
  font-family: Georgia, serif;
  font-size: 14px;
  color: #7c3aed;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.comic-select button:hover,
.comic-select button.active {
  background: #e9d5ff;
  transform: scale(1.03);
}

/* ---- Comic thumbnails ---- */
.comic-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9d5ff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
}

.comic-thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.comic-thumb-active {
  opacity: 1;
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168,85,247,0.3);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 16px 20px 20px;
  font-size: 11px;
  color: #b8a0cc;
  border-top: 2px dotted #e9d5ff;
  margin-top: 10px;
}

.footer .deco {
  letter-spacing: 8px;
  color: #d8b4fe;
  margin-bottom: 6px;
}
