﻿/* ========================= */
/* Default Light Mode Styles */
/* ========================= */

/* ฟอนต์และพื้นหลังทั่วไป */
body {
  padding-top: 100px;
  /* เผื่อ Notification Bar + Navbar */
  font-family: 'Noto Sans Thai', sans-serif;
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  color: #111;
  overflow-x: hidden;
}

/* Notification Bar */
#notificationBar {
  height: 40px;
  background: linear-gradient(190deg, #000, #f6c177, #f6c177, #000);
  font-size: 0.95rem;
  transition: opacity 0.5s ease, top 0.5s ease;
}

/* กลาสมอร์ฟิซึม */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navbar */
nav.navbar {
  background-color: transparent;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.75rem;
  color: #ffcc00 !important;
}

.nav-link {
  color: #555 !important;
  margin-left: 1rem;
}

/* ปุ่มใน Navbar */
.navbar .btn-gold {
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  margin-left: 1rem;
  white-space: nowrap;
  background: #f5a623;
  color: #111;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  transition: box-shadow 0.3s ease;
}

.navbar .btn-gold:hover {
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

/* Responsive: ปุ่มในเมนูมือถือ */
@media (max-width: 991.98px) {
  .navbar .btn-gold {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
  }
}

/* Hero Section */
.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  text-shadow: 20px 20px 20px #f5a623;
  padding-top: 20vh;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ปุ่มทอง */
.btn-gold {
  background: #f5a623;
  color: #111;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: none;
}

/* Section */
.section {
  padding: 4rem 0;
}

.bg-dark {
  background-color: #1c1c1c !important;
}

/* Card */
.card-glass {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-body,
.card.text-white {
  color: #111;
}

.card .small {
  font-size: 0.95rem;
  opacity: 0.95;
}

.card h5 {
  font-size: 1.2rem;
}

/* Glass Content */
.glass-content {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  padding: 1rem;
  color: #fc3d03;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.25);
}

/* Timeline */
.timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 2rem;
  border-left: 3px solid #f5a623;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 1rem 1.5rem 1rem 2rem;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.1);
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 1.2rem;
  width: 16px;
  height: 16px;
  background-color: #f5a623;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.6);
}

.timeline-date {
  font-weight: bold;
  color: #f5a623;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-date::before {
  content: "🕓";
  font-size: 0.85rem;
}

.timeline-content h5 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .timeline {
    border-left: none;
    padding-left: 0;
  }

  .timeline-item {
    padding: 1rem;
    border-left: 4px solid #f5a623;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-date::before {
    content: "📅";
  }
}

/* Cookie Consent */
.cookie-consent {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
  background: #f8f8f8;
  padding: 2rem 0;
  color: #555;
  text-align: center;
}

footer a {
  color: #f5a623;
  margin: 0 0.5rem;
  text-decoration: none;
}

/* Utility */
.text-warning {
  color: #f5a623 !important;
}

.btn-outline-warning {
  border-color: #f5a623;
  color: #f5a623;
}

.btn-outline-warning:hover {
  background-color: #f5a623;
  color: #111;
}

/* Navbar เลื่อนขึ้นเมื่อ Notification หาย */
#mainNavbar {
  position: fixed;
  top: 40px;
  width: 100%;
  z-index: 1040;
  transition: top 0.5s ease;
}

/* ========================= */
/* Dark Mode Overrides */
/* ========================= */
body.dark-mode {
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
  color: #f0f0f0;
}

body.dark-mode .glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar-brand {
  color: #ffcc00 !important;
}

body.dark-mode .nav-link {
  color: #ddd !important;
}

body.dark-mode .btn-gold {
  background: #f5a623;
  color: #111;
}

body.dark-mode .card-body {
  color: #f0f0f0;
}

body.dark-mode .glass-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
}

body.dark-mode footer {
  background: #111;
  color: #999;
}

/* ========================= */
/* Additional Custom Features */
/* ========================= */

/* Particles container */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
}

/* 3D Model Viewer container */
#3dmodel {
  width: 100%;
  height: 400px;
  background: #000;
}

/* Dark Mode styles for additional features */
body.dark-mode .navbar,
body.dark-mode .modal-content,
body.dark-mode .card,
body.dark-mode .glass {
  background-color: #1e1e1e;
}

body.dark-mode a,
body.dark-mode .nav-link {
  color: #ffc107;
}

body.dark-mode .btn-gold {
  background-color: #ffc107;
  color: #000;
}

/* Style for dark/light toggle button */
#themeToggle {
  cursor: pointer;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: inherit;
  margin-left: 1rem;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #f5a623;
  width: 0%;
  z-index: 1055;
  transition: width 0.25s ease-out;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: #f5a623;
  color: #111;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1055;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
  transition: opacity 0.3s ease;
}

.btn-fantasy {
  position: relative;
  display: inline-block;
  padding: 1.5rem 3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e1a5e, #6c00d0);
  /* ม่วงน้ำเงินแฟนตาซี */
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(114, 0, 255, 0.5), 0 0 5px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.3s ease;
}

.btn-fantasy:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 25px rgba(150, 0, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.3) inset;
}

.btn-fantasy .btn-icon {
  font-size: 1.6rem;
  display: block;
  animation: iconPulse 1.5s infinite;
  color: #ffe600;
  /* ทองนวล */
}

.btn-fantasy .btn-text {
  display: block;
  margin-top: 6px;
}

.btn-fantasy .btn-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #eeeeee;
  opacity: 0.85;
}

.btn-fantasy .btn-glow {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: shineRotate 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes shineRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.pulse-download {
  animation: pulseScale 0.5s ease-in-out;
  color: #ffe600;
  text-shadow: 0 0 5px #ffc107, 0 0 12px #ffdd44;
}

@keyframes pulseScale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

.list-group-item {
  transition: background 0.3s ease;
}
.list-group-item:hover {
  background: rgba(255, 193, 7, 0.1);
}

.page-link {
  border-radius: 50px !important;
  margin: 0 3px;
  color: #ffc107 !important;
}

.page-item.active .page-link {
  background-color: #ffc107 !important;
  color: #000 !important;
  font-weight: bold;
}

.page-item.disabled .page-link {
  opacity: 0.4;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 193, 7, 0.2);
}

.btn-group .btn.active {
  background-color: #ffc107;
  color: #111;
  font-weight: bold;
}

.bg-danger {
  background-color: #dc3545 !important;
}
.bg-info {
  background-color: #0dcaf0 !important;
}

.class-path-warrior {
  color: #f6c177; /* ทองนวล */
}

.class-path-magician {
  color: #66d9ef; /* ฟ้าอ่อน */
}

.class-path-archer {
  color: #8ae9c1; /* เขียวมิ้น */
}

.class-path-thief {
  color: #c792ea; /* ม่วงอ่อน */
}

#game-area {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffc107;
  border-radius: 1rem;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
  backdrop-filter: blur(6px);
}

#monster {
  position: absolute;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#monster.hit {
  transform: scale(1.3) rotate(10deg);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

#stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: bold;
  color: #ffc107;
  margin-top: 1rem;
  flex-wrap: wrap;
}

#stats div {
  margin: 0.5rem 1rem;
  font-size: 1.1rem;
}

/* ชื่อผู้เล่น input */
.fancy-input {
  max-width: 300px;
  margin: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffc107;
  backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 0.75rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.15);
}

.fancy-input::placeholder {
  color: #ccc;
  font-weight: normal;
}

/* Leaderboard */
.leaderboard-list {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.1);
  max-width: 400px;
}

.leaderboard-list .list-group-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-list .list-group-item:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  #game-area {
    height: 300px;
  }

  #monster {
    width: 50px;
    height: 50px;
  }

  #stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ========================= */
/* Additional Custom Features */
/* ========================= */

/* Custom Cursor */
#custom-cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  border: 2px solid #f5a623;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background 0.2s;
  mix-blend-mode: difference;
  z-index: 1100;
}

/* Particles.js Container */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Back to Top Button: show state */
#back-to-top.show {
  display: block;
  opacity: 0.8;
}

/* Driver & Support Section */
.driver .section-title {
  font-size: 1.75rem;
  color: var(--color-primary);
  font-weight: 700;
}

.driver-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.driver-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.driver-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.driver-item img {
  width: 60px;
  height: auto;
}

.driver-item .btn-outline-warning {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 30px;
  transition: background 0.3s, color 0.3s;
}

.driver-item .btn-outline-warning:hover {
  background: var(--color-warning);
  color: #111;
}

.driver-notes {
  list-style: disc inside;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .driver-grid {
    gap: 1rem;
  }
  .driver-item {
    width: 100%;
  }
  .driver-notes {
    font-size: 0.9rem;
  }
}

/*!
 * WPBakery Page Builder v6.0.0 (https://wpbakery.com)
 * Copyright 2011-2019 Michael M, WPBakery
 * License: Commercial. More details: http://go.wpbakery.com/licensing
 */
 
.vc_row:after,
.vc_row:before{content:" ";display:table}
.vc_row:after{clear:both}
@media (max-width:767px){
	.vc_hidden-xs{display:none!important}}
	@media (min-width:768px) and (max-width:991px){
		.vc_hidden-sm{display:none!important}}
		@media (min-width:992px) and (max-width:1199px){
			.vc_hidden-md{display:none!important}}
			@media (min-width:1200px){
				.vc_hidden-lg{display:none!important}
				}
