/*
 * Main stylesheet for hentaipornai.site
 * Features modern design with full mobile responsiveness
 */

:root {
  --primary-color: #ff2b67;
  --secondary-color: #ff9248;
  --dark-color: #1a1a2e;
  --light-color: #ffffff;
  --gray-color: #f0f0f0;
  --text-color: #333333;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fafafa;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

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

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 4rem 0;
}

/* Header styles */
header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
}

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

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

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

.logo span {
  font-weight: 700;
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 1.5rem;
}

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

.nav-menu a:hover {
  opacity: 0.8;
}

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

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

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--light-color);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

.menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q 25 0 50 50 T 100 50 Q 75 100 50 50 T 0 50' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  background-size: 150px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.cta-wrapper {
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--dark-color);
  color: var(--light-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Videos Section */
.videos {
  background-color: var(--light-color);
}

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

.video-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.thumbnail-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.video-card h3 {
  padding: 1rem 1rem 0.5rem;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  color: #777;
}

.rating {
  color: var(--primary-color);
  font-weight: 600;
}

.view-more {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-view-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-view-more:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* Categories Section */
.categories {
  background-color: var(--gray-color);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.category-card span {
  font-weight: 600;
  color: var(--dark-color);
}

/* Featured Section */
.featured {
  background: linear-gradient(135deg, #f6f6f6, #ffffff);
}

.featured-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.featured-text {
  flex: 1;
}

.featured-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.featured-list {
  margin: 1.5rem 0;
}

.featured-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.featured-list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.featured-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.featured-svg {
  width: 100%;
  max-width: 400px;
}

/* Popular Section */
.popular {
  background-color: var(--light-color);
}

.popular-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-card {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.popular-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.popular-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.popular-content {
  flex: 1;
}

.popular-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.85rem;
}

.popular-rating {
  color: var(--primary-color);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.cta-content p {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0 1rem;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2rem;
}

.footer-svg {
  margin-bottom: 1rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  bottom: -8px;
  left: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

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

.footer-col a:hover {
  color: var(--light-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Animations */
.in-view {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .featured-content {
    flex-direction: column;
  }
  
  .featured-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 99;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 1.5rem 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 2rem;
    margin-right: 0;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .video-grid, .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}
