/* ═══════════════════════════════════════
   AuntyHare Studio — Global Stylesheet (cleaned)
═══════════════════════════════════════ */

:root {
  --pink: #f9c6d0;
  --green: #b5ddb5;
  --purple: #c3aee6;
  --yellow: #ffe78a;
  --nav-bg: #f8cdd8;
  --accent: #9edcf3;

  --text: #4f4451;
  --text-strong: #4b3f4c;
  --text-body: #6e5f6a;

  --glass: rgba(180, 210, 235, 0.18);
  --glass-article: rgba(190, 220, 245, 0.22);

  --fs-h1: 3.2rem;
  --fs-h2: 2.4rem;
  --fs-h3: 1.8rem;
  --fs-body: 1.12rem;
  --fs-small: 1.12rem;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('Images/bg.jpeg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/* ── NAV ── */
nav {
  background: var(--nav-bg);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 2px 12px #0003;
}
.nav-logo {
  font-family: Arial, Helvetica, sans-serif;
  color: #5c4a56;
  font-size: 1.4rem;
  padding: 1rem 0;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: #5c4a56;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 1.1rem 0.9rem;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links > li:hover > a { color: #ffffff; }
.nav-links > li > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f9dbe3;
  min-width: 240px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px #0004;
  z-index: 200;
}
.nav-links > li:hover > .dropdown { display: block; }
.dropdown a {
  display: block;
  color: #5c4a56;
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: #9edcf3; color: #ffffff; }
.nav-fb {
  background: #4267b2;
  color: #fff !important;
  border-radius: 20px;
  padding: 0.4rem 1rem !important;
  font-size: 1.05rem !important;
  margin-left: 0.5rem;
  transition: background 0.2s !important;
}
.nav-fb:hover { background: #365899 !important; }

#page-content,
.site-shell-main{
  padding-top: 3.5rem;
}



/* --- 2nd level dropdown for MiNi GAMES --- */
.dropdown .dropdown-item {
  position: relative;
}

.dropdown .dropdown-item > a {
  display: block;
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 700;
  line-height: 1.45;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
}

.dropdown .dropdown-item > a:hover {
  background: #fdf0f6;
}

.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  background: #f9dbe3;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(0,0,0,0.12);
  padding: 0.6rem;
  display: none;
  margin-left: 0.4rem;
  z-index: 1001;
}

.dropdown-item:hover > .sub-dropdown {
  display: block;
}

.sub-dropdown a {
  display: block;
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 700;
  line-height: 1.45;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
}

.sub-dropdown a:hover {
  background: #fd83c0;
}

/* mobile */
@media (max-width: 768px) {
  .sub-dropdown {
    position: static;
    min-width: 0;
    margin-left: 0;
    margin-top: 0.35rem;
    background: #f9dbe3;
    border: 2px dashed #ffffff;
    border-radius: 12px;
    box-shadow: none;
    padding: 0.45rem;
    display: none;
  }

  .dropdown-item.open > .sub-dropdown {
    display: block;
  }
}



/* ── HERO ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h1);
  color: var(--text-strong);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h2);
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 1rem;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-body);
}
.hero-thanks {
  font-weight: 800;
  color: var(--text-strong);
  font-size: var(--fs-body);
}

.hero {
  max-width: 980px;
  margin: 2.5rem auto 0;
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  background: #5db0da;
  border: 2px dashed #ffffff;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
}


/* ── STORE ── */
.store-section {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  background: transparent;
  position: relative;
}
.store-section h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h3);
  color: var(--text-strong);
  margin-bottom: 1.2rem;
}
.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #9edcf3;
  color: #2ea6d6;
  border: 2px dashed #ffffff;
  box-shadow: 0 6px 18px rgba(120, 180, 210, 0.22);
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-small);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.store-section {
  max-width: 980px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 1rem 2rem 2rem;
  background: #5db0da;
  position: relative;
  border: 2px dashed #ffffff;
  border-top: none;
  border-radius: 0 0 20px 20px;
}
.store-badge:hover { background: #8bd3ee; transform: translateY(-1px); }

/* ── SECTION TAG ── */
.section-tag {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  padding: 0.4rem 2rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
}
.tag-ranking { background: var(--yellow); color: #7a5c00; }
.tag-cozy    { background: var(--green);  color: #2d5a2d; }
.tag-special { background: var(--purple); color: #3d2275; }
.tag-fury    { background: #ffcdd2;       color: #b71c1c; }

/* ── SECTION WRAPPER ── */
.games-section {
  padding: 3.5rem 2rem;
  position: relative;
}
.section-header { text-align: center; }

/* ── GRIDS ── */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── GAME ENTRY ── */
.game-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.game-entry img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 24px #0003;
  margin-bottom: 1rem;
  object-fit: contain;
  background: rgba(255,255,255,0.12);
}
.game-entry h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h2);
  color: var(--text-strong);
  margin-bottom: 0.2rem;
}
.game-entry h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.game-entry h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h4);
  color: var(--text);
  margin-bottom: 0.6rem;
}
.game-entry p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 0.3rem;
}

/* ── ARTICLE BLOCK ── */
.article-block {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 2.5rem;
  border: none;
  box-shadow: none;
}
.article-block h2,
.article-block h3,
.article-block h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-strong);
}
.article-block h2 {
  font-size: var(--fs-h1);
  text-align: center;
  margin-bottom: 1rem;
}
.article-block h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.8rem;
}
.article-block h4 {
  font-size: var(--fs-h4);
  margin: 0.8rem 0 0.3rem;
}
.article-block p {
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 0.7rem;
}
.article-block hr {
  display: none;
}
.article-block .footnote {
  font-size: var(--fs-small);
  color: var(--text-body);
  opacity: 0.7;
}

/* MatchMind */
.matchmind-shell {
  max-width: 860px;
  margin: 2.25rem auto 0;
}
.matchmind-block {
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}
.matchmind-shell .matchmind-cover,
.article-block img.matchmind-cover,
.matchmind-block .matchmind-cover {
  display: block;
  width: min(100%, 720px);
  max-width: 100%;
  margin: 0 auto 1rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  object-fit: cover;
}
.matchmind-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #4b3f4c;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.matchmind-text {
  text-align: left;
  max-width: 100%;
}
.matchmind-block .btn-green {
  margin-top: 1.1rem;
}

/* ── BUTTONS ── */
.btn-main,
.btn-special,
.btn-green,
.btn-fury,
.btn-submit,
.privacy-link a {
  display: inline-block;
  margin-top: 1rem;
  background: #9edcf3;
  color: #2ea6d6;
  text-decoration: none;
  font-weight: 800;
  font-size: var(--fs-small);
  padding: 0.65rem 2rem;
  border-radius: 50px;
  border: 2px dashed #ffffff;
  box-shadow: 0 6px 18px rgba(120, 180, 210, 0.22);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-submit {
  align-self: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.btn-main:hover,
.btn-special:hover,
.btn-green:hover,
.btn-fury:hover,
.btn-submit:hover,
.privacy-link a:hover {
  background: #8bd3ee;
  transform: translateY(-1px);
}

/* ── SUGGESTIONS ── */
.suggestions {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  text-align: center;
  margin-bottom: 2.5rem;
}
.suggestions h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h1);
  color: var(--text-strong);
  margin-bottom: 1rem;
  text-align: center;
}
.suggestions > p {
  color: #7a4a5a;
  text-align: center;
  margin-bottom: 1.5rem;
}
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-wrap label {
  text-align: left;
  font-weight: 700;
  color: #5c4a56;
  margin-bottom: -0.4rem;
}
.form-wrap input,
.form-wrap textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-body);
  background: rgba(255,255,255,0.6);
  color: #4b3f4c;
  outline: none;
  transition: border 0.2s;
}
.form-wrap input::placeholder,
.form-wrap textarea::placeholder {
  color: #8a7180;
}
.form-wrap input:focus,
.form-wrap textarea:focus {
  border-color: rgba(255,255,255,1);
}
.form-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── FOOTER ── */
footer {
  background: var(--nav-bg);
  color: var(--text-body);
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  font-size: var(--fs-small);
}
.footer-cols {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.footer-col { text-align: center; }
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h3);
  color: #5c4a56;
  margin-bottom: 0;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}
.footer-social a img {
  height: 32px;
  border-radius: 8px;
  transition: transform 0.2s;
}
.footer-social a:hover img { transform: scale(1.1); }
.footer-copy {
  color: #5c4a56;
  opacity: 0.7;
}
footer a {
  color: #5c4a56;
  text-decoration: none;
}

/* ── GAME PAGES ── */
.game-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.game-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.info-box,
.credits-box {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 2rem;
  border: none;
  box-shadow: none;
}
.info-box h3,
.credits-box h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-h3);
  color: var(--text-strong);
  margin-bottom: 1rem;
}
.info-box p,
.info-box ul li {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}
.info-box ul {
  list-style: none;
  padding: 0;
}
.credits-box p,
.credits-box li {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--text-body);
}
.credits-box ul {
  padding-left: 1.2rem;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.screenshot-card {
  background: rgba(255,255,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  border: none;
  text-align: center;
  box-shadow: none;
}
.screenshot-card .img-placeholder {
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(255,255,255,0.08);
}
.screenshot-card p {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text);
  padding: 0.7rem 0.8rem;
}
.privacy-link {
  text-align: center;
  margin: 2rem 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-small);
  margin-bottom: 1.5rem;
}
.back-link:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-toggle {
  display: none;
  background: #9edcf3;
  color: #d86c97;
  border: 2px dashed #ffffff;
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.8rem 1.2rem;
  }

  .nav-logo {
    order: 1;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .nav-links {
    order: 3;
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 0;
    background: #f8d7e4;
    border: 2px dashed #ffffff;
    border-radius: 16px;
    padding: 0.6rem 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: auto;
    margin-top: 0.4rem;
    border-radius: 12px;
    box-shadow: none;
  }

  /* ปิดระบบ hover ของ desktop บนมือถือ */
  .nav-links > li:hover > .dropdown {
    display: none;
  }

  /* ใช้ open จาก JS เท่านั้น */
  .nav-links > li.open > .dropdown,
  .nav-links > li.open:hover > .dropdown {
    display: block;
  }

  .footer-cols {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
  }

  .matchmind-shell .matchmind-cover,
  .article-block img.matchmind-cover,
  .matchmind-block .matchmind-cover {
    width: 100%;
    margin-bottom: 0.8rem;
  }
}



/* ── ARTICLE / CARD BOXES FOR READABILITY ── */
.grid-2col,
.grid-3col {
  align-items: stretch;
}

.grid-2col > .game-entry,
.grid-3col > .game-entry {
  height: 100%;
}

.game-entry {
  background: rgba(255, 232, 244, 0.94);
  border: 2px dashed rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 1.4rem 1.2rem 1.5rem;
  box-shadow: 0 8px 22px rgba(120, 80, 100, 0.10);
  justify-content: flex-start;
  align-self: stretch;
}

.game-entry img {
  background: transparent;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.game-entry p {
  width: 100%;
}

.game-entry .btn-main,
.game-entry .btn-special,
.game-entry .btn-green,
.game-entry .btn-fury {
  margin-top: auto;
}

.article-block,
.suggestions {
  background: rgba(255, 232, 244, 0.94) !important;
  border: 2px dashed rgba(255,255,255,0.95) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(120, 80, 100, 0.10) !important;
  padding: 1.8rem 1.6rem !important;
}

.suggestions {
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.suggestions .form-wrap {
  max-width: 100%;
}

.article-block hr {
  border-top: 1px dashed rgba(255,255,255,0.95);
}

@media (max-width: 600px) {
  .game-entry,
  .article-block,
  .suggestions {
    padding: 1.2rem 1rem !important;
  }
}

.footer-title {
  font-size: 1.2rem !important;
}

.footer-copy,
.footer-social a,
footer p,
footer a {
  font-size: 0.9rem !important;
}

.hero h1,
.hero h2,
.section-tag,
.game-entry h2,
.game-entry h3,
.game-entry h4,
.article-block h2,
.article-block h3,
.article-block h4,
.matchmind-title,
.info-box h3,
.credits-box h3,
.suggestions h2 {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
}