/* ==========================================
   NeedLike – Custom Styles
   ========================================== */

/* Fonts & Base */
* { scroll-behavior: smooth; }

/* Navbar */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(11, 31, 59, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Hero */
.hero-bg {
  position: relative;
}

/* Mobile: รูป + เบลอ ผ่าน ::before */
.hero-bg::before {
  content: '';
  inset: 0;
  position: absolute;
  background:
    url('../images/media-hero.png') 90% center/ cover no-repeat;
  filter: blur(3px);
  transform: scale(1.05); /* ป้องกันขอบขาวจากการเบลอ */
  z-index: 0;
}

/* Mobile: gradient ทับบน ::before */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,31,59,0.72) 0%, rgba(13,38,70,0.55) 50%, rgba(15,45,82,0.40) 100%);
  z-index: 1;

}

/* Desktop: ยกเลิก pseudo-element แล้วใช้ background ตรงๆ */
@media (min-width: 768px) {
  .hero-bg::before,
  .hero-bg::after {
    display: none;
  }

  .hero-bg {
    background:
      linear-gradient(135deg, rgba(11,31,59,0.72) 0%, rgba(13,38,70,0.55) 50%, rgba(15,45,82,0.40) 100%),
      url('../images/media-hero.png') center center / cover no-repeat;
  }
}

/* content ข้างในต้องอยู่เหนือ pseudo-element */
.hero-bg > * {
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.logo-img {
  height: 44px;
  width:auto;
  display:block;
  filter:drop-shadow(0 0 6px rgba(212, 175, 55, 0.3));
}

/* Gold Button */
.btn-gold {
  background: linear-gradient(135deg, #D4AF37, #E8C94B);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #E8C94B, #D4AF37);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-gold:hover::after {
  left: 100%;
}
.shadow-gold {
  box-shadow: 0 8px 25px rgba(212,175,55,0.35);
}

/* Platform Floats */
.platform-float {
  animation: float 4s ease-in-out infinite;
}
.platform-1 { top: 10%; left: 20%; animation-delay: 0s; }
.platform-2 { top: 5%; right: 10%; animation-delay: 0.8s; }
.platform-3 { top: 45%; left: 5%; animation-delay: 1.2s; }
.platform-4 { bottom: 20%; right: 15%; animation-delay: 0.4s; }
.platform-5 { bottom: 10%; left: 30%; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Ticker */
.ticker-wrap { overflow: hidden; }
.ticker-content {
  animation: ticker 60s linear infinite;
  display: inline-flex;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Tags */
.tag {
  background: #f0f4ff;
  color: #0B1F3B;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

/* Service Cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}

/* Pricing Cards */
.pricing-card {
  transition: transform 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
}

/* Feature Cards */
.feature-card {
  background: rgba(255,255,255,0.03);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
  background: rgba(212,175,55,0.05);
  transform: translateY(-3px);
}

/* Steps */
.step-card { transition: transform 0.3s ease; }
.step-card:hover { transform: translateY(-5px); }

/* FAQ */
.faq-item { transition: box-shadow 0.2s ease; }
.faq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.faq-answer { animation: slideDown 0.3s ease; }
.faq-icon.open { transform: rotate(180deg); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonials */
.testimonial-card { transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); }

/* CTA Section */
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .platform-float { display: none; }
}

/* Floating WA pulse */
.fixed.bottom-6.right-6::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(34,197,94,0.4);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Page Hero for inner pages */
.page-hero {
  background: linear-gradient(135deg, #0B1F3B 0%, #0d2646 100%);
  padding: 120px 0 80px;
}

/* Blog card */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 3px; }
