/* 
 * AIpornGeneratorTH.pw - CSS Styles
 * Theme: Inspired by Thai flag colors
 * Last updated: August 21, 2025
 */

:root {
  /* Thai flag colors */
  --green: #006A4E;
  --red: #EC0F0F;
  --white: #ffffff;
  --dark: #141414;
  --grey-light: #f5f5f5;
  --grey: #e0e0e0;
  --grey-dark: #666666;
  --gradient: linear-gradient(135deg, var(--green), #004a36);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 28px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--green);
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

img, svg {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-primary:hover {
  background: #d00d0d;
  border-color: #d00d0d;
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--dark);
  color: var(--white);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 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(--dark);
}

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

.nav-menu {
  display: flex;
}

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

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

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

.nav-menu a:hover {
  color: var(--green);
}

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

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

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,245,245,0.85) 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--grey-dark);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.warning {
  display: flex;
  align-items: center;
  background: rgba(236, 15, 15, 0.08);
  border-left: 4px solid var(--red);
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

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

.warning span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--red);
}

/* Features Section */
.features {
  background-color: var(--grey-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

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

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(0, 106, 78, 0.08);
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* How to Section */
.how-to {
  background: var(--white);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
}

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

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-logo {
  max-width: 350px;
}

.footer-logo p {
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--grey);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

.footer-column ul li a {
  color: var(--grey);
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: var(--red);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.keywords {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 140px;
    padding-bottom: 70px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .warning {
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 30px;
    max-width: 100%;
    text-align: center;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background: var(--white);
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0 0 30px 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  .step-content {
    text-align: center;
  }
}
