/* 
 * nudifyerTH.site - ไฟล์ CSS สำหรับเว็บไซต์ AI ถอดเสื้อผ้าออนไลน์ภาษาไทย
 * ธีม: สีธงชาติไทย (แดง น้ำเงิน ขาว)
 * อัปเดตล่าสุด: 21 สิงหาคม 2025
 */

:root {
  /* สีธงชาติไทย */
  --red: #f00033;
  --blue: #0033a6;
  --white: #ffffff;
  --dark: #222222;
  --grey-light: #f8f8f8;
  --grey: #e0e0e0;
  --grey-dark: #666666;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
}

/* รีเซ็ตและสไตล์พื้นฐาน */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', 'Sarabun', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: var(--blue);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--red);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 70px 0;
}

/* ปุ่ม */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  margin: 10px 5px;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #d60030;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(214, 0, 48, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.1rem;
}

/* ส่วนหัวและการนำทาง */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 12px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
}

.logo svg {
  margin-right: 10px;
}

.logo span {
  color: var(--blue);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-menu a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: var(--transition);
}

/* ส่วนฮีโร่ */
.hero {
  padding-top: 120px;
  background: linear-gradient(135deg, rgba(0, 51, 166, 0.05), rgba(240, 0, 51, 0.05));
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 2.8rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  color: var(--grey-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.buttons {
  margin-bottom: 30px;
}

.warning {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(240, 0, 51, 0.1);
  color: var(--red);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ส่วนคุณสมบัติ */
.features {
  background: var(--grey-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-box h3 {
  color: var(--blue);
  margin-bottom: 15px;
}

/* วิธีใช้งาน */
.how-it-works {
  background: linear-gradient(to bottom, var(--white), var(--grey-light));
  text-align: center;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.step {
  width: 250px;
  text-align: center;
  padding: 20px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--blue);
}

/* คำถามที่พบบ่อย */
.faq {
  background: var(--white);
}

.accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.accordion-item {
  margin-bottom: 15px;
  border: 1px solid var(--grey);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  padding: 18px 20px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active .accordion-content {
  padding: 20px;
  max-height: 200px;
}

.accordion-item.active .icon {
  transform: rotate(45deg);
}

/* ส่วนเรียกร้องให้ดำเนินการ */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 51, 166, 0.9), rgba(240, 0, 51, 0.9));
  color: var(--white);
  padding: 80px 0;
}

.cta h2 {
  color: var(--white);
}

.cta h2:after {
  background: var(--white);
}

.cta .btn-primary {
  background: var(--white);
  color: var(--blue);
  margin-top: 20px;
}

.cta .btn-primary:hover {
  background: var(--grey-light);
}

.disclaimer {
  margin-top: 20px;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ส่วนท้าย */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 30px;
  flex: 1;
  min-width: 300px;
}

.footer-logo p {
  margin-top: 15px;
  opacity: 0.8;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* การตอบสนอง */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }

  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    background: var(--white);
    padding: 40px;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
  }
  
  .nav-menu.active {
    left: 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .step {
    width: 100%;
  }
}
