/* 
 * aiueharaporn.site Styles
 * Japanese-inspired teal and gold theme
 */

:root {
  --primary: #008B8B;
  --primary-light: #20B2AA;
  --primary-dark: #006666;
  --accent: #FFC107;
  --accent-dark: #FF8F00;
  --dark: #333333;
  --light: #FFFFFF;
  --light-gray: #F5F5F5;
  --gray: #888888;
  --shadow: 0 4px 15px rgba(0, 139, 139, 0.1);
  --gradient: linear-gradient(135deg, #008B8B 0%, #006666 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -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);
  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%3Cpath d='M30 30C30 28.3431 31.3431 27 33 27C34.6569 27 36 28.3431 36 30C36 31.6569 34.6569 33 33 33C31.3431 33 30 31.6569 30 30Z' fill='%23008B8B' fill-opacity='0.05' /%3E%3C/svg%3E");
}

.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: 2rem;
}

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

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

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;
  border-bottom: 3px solid var(--primary);
}

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);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

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

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

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

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

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

.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(--primary);
  background-image: linear-gradient(rgba(0, 139, 139, 0.9), rgba(0, 139, 139, 0.9)), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23FFC107' fill-opacity='0.2' /%3E%3C/svg%3E");
  color: var(--light);
  padding: 100px 0;
}

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

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

.hero-content h2::after {
  display: none;
}

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

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

.video-preview {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.6);
}

.video-preview-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.play-button {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button svg {
  width: 30px;
  height: 30px;
  fill: var(--light);
}

.play-button:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.cta-button {
  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, 193, 7, 0.2);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 193, 7, 0.3);
  color: var(--dark);
  background: var(--accent-dark);
}

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

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

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

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 139, 139, 0.1);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: var(--primary-light);
}

.category-content {
  padding: 20px;
  text-align: center;
}

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

.category-card:hover h3 {
  color: var(--accent);
}

/* Popular Videos Section */
.popular-videos {
  padding: 100px 0;
  background: var(--light-gray);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 139, 139, 0.1);
}

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

.video-thumbnail::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-thumbnail:hover::after {
  background: var(--accent);
}

.video-details {
  padding: 20px;
}

.video-details h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray);
}

/* CTA Section */
.cta-section {
  background: url("data:image/svg+xml,%3Csvg width='1440' height='400' viewBox='0 0 1440 400' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1440' height='400' fill='%23008B8B' /%3E%3Cpath d='M0 50L1440 150L1440 400L0 400L0 50Z' fill='%23006666' /%3E%3C/svg%3E");
  background-size: cover;
  color: var(--light);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--light);
  margin-bottom: 30px;
}

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

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.8);
}

/* 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);
}

.footer-icon {
  width: 36px;
  height: 36px;
}

.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;
  }
  
  .hero-content {
    text-align: center;
    order: 1;
  }
  
  .hero-content h2 {
    text-align: center;
    font-size: 2.5rem;
  }
  
  .video-preview {
    order: 2;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  
  .header .container {
    position: relative;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: -1;
  }
  
  .nav-menu.active {
    max-height: 300px;
    opacity: 1;
    z-index: 100;
  }
  
  .nav-menu li {
    margin: 10px 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);
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .categories-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
