/* 
 * aigeneratorporn.site Styles
 * Modern purple and amber theme
 */

:root {
  --primary: #7E57C2;
  --primary-light: #B39DDB;
  --primary-dark: #5E35B1;
  --accent: #FFD54F;
  --accent-dark: #FFC107;
  --dark: #333333;
  --light: #FFFFFF;
  --light-gray: #F5F5F5;
  --gray: #888888;
  --shadow: 0 4px 15px rgba(126, 87, 194, 0.15);
  --gradient: linear-gradient(135deg, #7E57C2 0%, #5E35B1 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light-gray);
  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.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

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

/* Header Styles */
header {
  background: var(--light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

.nav-menu li a {
  color: var(--dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

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

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: var(--light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h2 {
  font-size: 3rem;
  color: var(--light);
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.generator-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.generator-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.generate-button {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(255, 213, 79, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 213, 79, 0.4);
  color: var(--dark);
  background: var(--accent-dark);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.feature-card {
  background: var(--light);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin: 1rem 0;
}

/* Generator Section */
.generator {
  padding: 100px 0;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.generator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237E57C2' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.generator .container {
  position: relative;
  z-index: 1;
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 3rem;
}

.generator-card {
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.generator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(126, 87, 194, 0.1);
}

.generator-thumbnail {
  height: 180px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.generator-details {
  padding: 20px;
}

.generator-details h3 {
  margin-bottom: 10px;
}

.generator-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 10px;
}

/* How it Works */
.how-it-works {
  padding: 100px 0;
  background: var(--light);
}

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

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: var(--light-gray);
}

.accordion {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light);
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: var(--light-gray);
}

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

.accordion-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.accordion-icon::before {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
}

.accordion-item.active .accordion-icon::before {
  content: '-';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 20px;
}

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

/* CTA Section */
.cta {
  background: var(--gradient);
  padding: 80px 0;
  color: var(--light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--light);
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta .btn {
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

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

.link-group h4 {
  color: var(--accent);
  margin-bottom: 20px;
}

.link-group ul {
  list-style: none;
}

.link-group ul li {
  margin-bottom: 10px;
}

.link-group ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.link-group ul li a:hover {
  color: var(--accent);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h2 {
    text-align: center;
  }
  
  .generator-preview {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--light);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .features-grid,
  .generator-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links {
    margin-top: 30px;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
