/*
Theme Name: ThaiGameGuide Dark
Theme URI: https://thaigameguide.com/
Author: Gametoon
Author URI: https://thaigameguide.com/
Description: ThaiGameGuide (SD Gundam G Generation ETERNAL).
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: thai-gameguide-dark
*/

/* === YouTube Grid === */
.yt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px;
  margin: 40px 0;
}

/* === Card === */
.yt-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(15,18,25,0.95), rgba(5,8,12,0.95));
  border: 1px solid rgba(0, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  width: 280px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.yt-card:hover {
  border-color: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
  transform: translateY(-4px);
}

/* === Thumbnail === */
.yt-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.yt-card:hover img {
  opacity: 0.9;
}

/* === Title === */
.yt-title {
  display: block;
  padding: 12px 14px;
  color: #b8e8ff;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: color 0.3s ease;
}

.yt-card:hover .yt-title {
  color: #00d8ff;
}


/*.yt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.yt-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: #111;
}

.yt-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.yt-title {
  display: block;
  padding: 8px 10px;
  font: 14px / 1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}*/

/* Responsive */

/*
@media (min-width: 640px) {
  .yt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 920px) {
  .yt-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans Thai", "Prompt", sans-serif;
  background-color: #0a0a0d;
  color: #e5e5e5;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; border-radius: 10px; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* Header */
.site-header {
  background: #11131a;
  border-bottom: 1px solid #222;
  padding: 20px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.6rem; font-weight: bold; color: #fff; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
.main-nav a {
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s;
}
.main-nav a:hover { color: #00bfff; }

/* Hero */
.hero {
  background: url("images/sdgd.jpg") center/cover no-repeat;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.65);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content { text-align: center; color: #fff; }
.hero-content h1 { font-size: 2.8rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 25px; color: #ccc; }
.btn-primary {
  background: #00bfff;
  color: #000;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-primary:hover { background: #00a4d4; }

/* Sections */
.section { padding: 60px 0; }
.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: #00bfff;
}

/* Showcase */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.card {
  background: #151821;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #00bfff33;
}
.card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
}

.card img {
      height: auto;
}

/* Quick Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.link-card {
  background: #1a1d26;
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  font-weight: bold;
  border: 1px solid #222;
  transition: background 0.3s, color 0.3s;
}
.link-card:hover {
  background: #00bfff;
  color: #000;
}

/* Recent Posts with Thumbnail */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.post-item {
  display: flex;
  gap: 20px;
  background: #151821;
  border-radius: 10px;
  padding: 15px;
  transition: background 0.3s;
}
.post-item:hover { background: #1c202c; }
.post-item img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.post-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #fff;
}
.post-info p {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.post-info span {
  font-size: 0.85rem;
  color: #888;
}

.showcase-more {
  text-align: center;
  margin-top: 30px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #00bfff;
  border: 2px solid #00bfff;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #00bfff;
  color: #000;
  transform: translateY(-2px);
}

/* -----------------------------
   Single Post Page
----------------------------- */
article {
    padding-top: 25px;
}

.single-post {
 /* padding: 80px 0;
  max-width: 800px;*/
}
.post-header {
  text-align: center;
  margin-bottom: 40px;
}
.post-header h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}
.post-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 25px;
}
.post-header img {
  display: block;
  width: 100%;
  max-width: 900px;       /* จำกัดไม่ให้เต็มจอเกินไป */
  height: auto;
  margin: 2rem auto;      /* จัดกลาง + เว้นช่องหายใจ */
  border-radius: 12px;    /* มุมโค้งนุ่ม */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* เงาละเอียด */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-header img:hover {
  transform: scale(1.02); /* ขยายเบา ๆ เวลา hover */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

/* Section content (ข้อมูลหลัก, สเตตัส, วิดีโอ ฯลฯ) */
.post-section {
  margin-bottom: 50px;
}

/*.post-section h2 {
  font-size: 1.4rem;
  color: #00bfff;
  margin-bottom: 15px;
}*/


.post-section h2 {
  font-family: "Poppins", "Prompt", sans-serif;
  font-weight: 600;
  font-size: 1.6em;
  color: #cce8ff; /* ฟ้าอ่อนหรูบนพื้นดำ */
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 1.8em 0 1em;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

/* เส้นขีดล่าง gradient ฟ้า-ทอง */
.post-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #00bfff, #d4af37);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* เพิ่ม animation เล็กน้อยเมื่อ hover */
.post-section h2:hover::after {
  width: 100%;
}


.post-section p {
margin: 2rem auto 3rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #00bfff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.05);
}

/* ตารางค่าสเตตัส */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #151821;
  border-radius: 10px;
  overflow: hidden;
}
.status-table th, .status-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #222;
}
.status-table th {
  color: #00bfff;
  text-align: left;
  width: 40%;
}
.status-table td {
  color: #e5e5e5;
}

/* ส่วนวิดีโอ */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Related Posts */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.related-card {
  background: #1a1d26;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #00bfff33;
}
.related-card img {
  width: 100%;
  /*height: 110px;*/
  object-fit: cover;
}
.related-card span {
  display: block;
  padding: 10px;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
}

/* ส่วนคอมเมนต์ */
.comment-section {
  background: #151821;
  padding: 25px;
  border-radius: 10px;
}
.comment-section textarea {
  width: 100%;
  background: #1a1d26;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  resize: none;
}
.comment-section button {
  display: inline-block;
  border: none;
  cursor: pointer;
}

/* -----------------------------
   Floating Menu (เมนูด้านขวา)
----------------------------- */
.floating-menu {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 15px;
  z-index: 1000;
}
.floating-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-menu a {
  color: #00bfff;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.floating-menu a:hover {
  color: #fff;
}

/* Responsive Hide Floating Menu */
@media (max-width: 900px) {
  .floating-menu { display: none; }
}


/* Footer */
.custom-footer {
  background: #050607;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  font-family: "Poppins", "Prompt", sans-serif;
  text-align: center;
}

/* เส้น gradient ด้านบน */
.custom-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00bfff, #d4af37, transparent);
  opacity: 0.4;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* แก้ให้ ul แสดงแนวนอน */
.custom-footer .menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-footer .menu li {
  display: inline-block;
}

.custom-footer .menu a {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.custom-footer .menu a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ลิขสิทธิ์ */
.footer-copy p {
  color: #9ba8c3;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

.footer-copy span,
.footer-copy p span {
  color: #6f7c94;
}

/* === YouTube Embed Style === */
.yt-video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
  width: 100%;
  max-width: 960px;
}

.yt-video-caption {
  text-align: center;
  margin-top: 14px;
}

.yt-video-caption h3 {
  color: #00d4ff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin: 0;
}

/* Frame container */
.yt-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(20, 20, 25, 0.9), rgba(0, 0, 0, 0.9));
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15), inset 0 0 8px rgba(0, 255, 255, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.yt-video-frame:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  transform: translateY(-3px);
}

.yt-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 15px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .post-item { flex-direction: column; align-items: center; text-align: center; }
  .post-item img { width: 100%; height: auto; }
    .yt-video-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }
  .yt-video-frame {
    border-radius: 10px;
  }
}