/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Yogurt-Purple Color Palette */
  --yogurt-purple-primary: #8B5FBF;
  --yogurt-purple-secondary: #A78BFA;
  --yogurt-purple-light: #C4B5FD;
  --yogurt-purple-lighter: #DDD6FE;
  --yogurt-purple-dark: #6D28D9;
  --yogurt-purple-darker: #5B21B6;
  --yogurt-cream: #F3E8FF;
  --yogurt-white: #FAF5FF;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--yogurt-white) 0%, var(--yogurt-cream) 50%, var(--yogurt-purple-lighter) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--yogurt-purple-primary) 0%, var(--yogurt-purple-secondary) 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(139, 95, 191, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.header-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 80%;
}


/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--yogurt-purple-darker) 0%, var(--yogurt-purple-dark) 100%);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.footer-nav a:hover {
  color: var(--yogurt-purple-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--yogurt-purple-light);
  font-size: 0.9rem;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Breadcrumbs Styles */
.breadcrumbs {
  margin-bottom: 2rem;
  padding: 0;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.breadcrumbs-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  color: var(--yogurt-purple-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.breadcrumbs-link {
  color: var(--yogurt-purple-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.breadcrumbs-link:hover {
  color: var(--yogurt-purple-dark);
  background-color: var(--yogurt-cream);
  text-decoration: underline;
}

.breadcrumbs-current {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

section {
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(139, 95, 191, 0.12), 
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.8), 
    transparent);
}

section:hover {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 40px rgba(139, 95, 191, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
}

section h1 {
  color: var(--yogurt-purple-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

section h2 {
  color: var(--yogurt-purple-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  line-height: 1.3;
}

section p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

section ul, section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

section li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Banner Images */
.banner-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(139, 95, 191, 0.15);
  display: block;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(139, 95, 191, 0.1);
}

table thead {
  background: linear-gradient(135deg, var(--yogurt-purple-primary) 0%, var(--yogurt-purple-secondary) 100%);
  color: var(--white);
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--yogurt-purple-lighter);
}

table tbody tr:hover {
  background-color: var(--yogurt-cream);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* Definition List Styles */
dl {
  margin: 2rem 0;
}

dt {
  font-weight: 600;
  color: var(--yogurt-purple-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* FAQ Accordion Styles */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--yogurt-purple-lighter);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
}

.faq-question {
  font-weight: 600;
  color: var(--yogurt-purple-dark);
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  font-size: 1.2rem;
}

.faq-question:hover {
  background-color: var(--yogurt-cream);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--yogurt-purple-primary);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 1.5rem 1rem 1.5rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--yogurt-purple-primary) 0%, var(--yogurt-purple-secondary) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(139, 95, 191, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.scroll-to-top.with-banner {
  bottom: 170px;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 95, 191, 0.6);
}

.scroll-to-top.visible {
  display: flex;
}

/* Bottom Banner Bar */
.bottom-banner-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--yogurt-purple-primary) 0%, var(--yogurt-purple-secondary) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 -2px 10px rgba(139, 95, 191, 0.3);
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 70px;
}

.bottom-banner-bar.visible {
  display: flex;
}

.bottom-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.bottom-banner-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.bottom-banner-button {
  background-color: var(--white);
  color: var(--yogurt-purple-primary);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.bottom-banner-button:hover {
  background-color: var(--yogurt-cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Play Button Styles */
.play-button {
  background: linear-gradient(135deg, var(--white) 0%, var(--yogurt-cream) 100%);
  color: var(--yogurt-purple-primary);
  border: 2px solid var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.play-button:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Demo Game Container */
.demo-game-container {
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(139, 95, 191, 0.15);
  background-color: var(--white);
  position: relative;
}

.demo-game-iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Demo Overlay */
.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.95) 0%, rgba(167, 139, 250, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

.demo-overlay.hidden {
  display: none;
}

.demo-overlay-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: 300px;
  padding: 0 2rem;
}

.demo-overlay-button {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.demo-overlay-button-play {
  background: linear-gradient(135deg, var(--white) 0%, var(--yogurt-cream) 100%);
  color: var(--yogurt-purple-primary);
  border: 2px solid var(--white);
}

.demo-overlay-button-play:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.demo-overlay-button-demo {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.demo-overlay-button-demo:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 404 Page Styles */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404 > div:first-child {
  font-size: 6rem;
  color: var(--yogurt-purple-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1;
}

.error-404 p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.error-404 p:last-of-type {
  margin-top: 2rem;
}

/* Responsive Design */

/* PC - min 1025px */
@media (min-width: 1025px) {
  .header-container {
    flex-direction: row;
  }
  
  .header-nav {
    display: flex;
  }
  
}

/* Laptop - max 1024px */
@media (max-width: 1024px) {
  header {
    padding: 1rem 1.5rem;
  }
  
  .header-container {
    gap: 1.5rem;
  }
  
  .header-nav {
    gap: 1.5rem;
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
  
  main {
    padding: 1.5rem;
  }
  
  section h1 {
    font-size: 2.2rem;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 1.5rem;
  }
  
  .breadcrumbs {
    margin-bottom: 1.5rem;
  }
  
  .breadcrumbs-list {
    font-size: 0.9rem;
  }
}

/* Tablet - max 768px */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .header-logo img {
    height: 40px;
  }
  
  .menu-toggle {
    display: block;
    order: 2;
  }
  
  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
    order: 3;
  }
  
  .header-nav.active {
    display: flex;
  }
  
  .header-nav a {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-nav {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  main {
    padding: 1rem;
  }
  
  section h1 {
    font-size: 2rem;
  }
  
  section h2 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .breadcrumbs {
    margin-bottom: 1.25rem;
  }
  
  .breadcrumbs-list {
    font-size: 0.85rem;
    gap: 0.4rem;
  }
  
  .breadcrumbs-item:not(:last-child)::after {
    margin: 0 0.4rem;
    font-size: 1.1rem;
  }
  
  section p, section li {
    font-size: 1rem;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  table th, table td {
    padding: 0.75rem;
  }
  
  .error-404 h1 {
    font-size: 4rem;
  }
  
  .error-404 p {
    font-size: 1.2rem;
  }
}

/* Mobile L - max 425px */
@media (max-width: 425px) {
  header {
    padding: 0.75rem;
  }
  
  .header-logo img {
    height: 35px;
  }
  
  .footer-logo img {
    height: 40px;
  }
  
  footer {
    padding: 2rem 1rem 1rem;
  }
  
  main {
    padding: 0.75rem;
  }
  
  section h1 {
    font-size: 1.75rem;
  }
  
  section h2 {
    font-size: 1.4rem;
  }
  
  section {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .breadcrumbs {
    margin-bottom: 1rem;
  }
  
  .breadcrumbs-list {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .breadcrumbs-item:not(:last-child)::after {
    margin: 0 0.3rem;
    font-size: 1rem;
  }
  
  .breadcrumbs-link,
  .breadcrumbs-current {
    padding: 0.2rem 0.4rem;
  }
  
  section p, section li {
    font-size: 0.95rem;
  }
  
  section ul, section ol {
    margin-left: 1.5rem;
  }
  
  table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }
  
  table th, table td {
    padding: 0.5rem;
    white-space: nowrap;
  }
  
  .error-404 {
    padding: 3rem 1rem;
  }
  
  .error-404 h1 {
    font-size: 3rem;
  }
  
  .error-404 p {
    font-size: 1rem;
  }
}

/* Mobile M - max 375px */
@media (max-width: 375px) {
  .header-logo img {
    height: 30px;
  }
  
  .footer-logo img {
    height: 35px;
  }
  
  section h1 {
    font-size: 1.5rem;
  }
  
  section h2 {
    font-size: 1.3rem;
  }
  
  section {
    padding: 0.9rem;
    border-radius: 8px;
  }
  
  section p, section li {
    font-size: 0.9rem;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  .error-404 h1 {
    font-size: 2.5rem;
  }
}

/* Mobile S - max 320px */
@media (max-width: 320px) {
  header {
    padding: 0.5rem;
  }
  
  .header-logo img {
    height: 28px;
  }
  
  footer {
    padding: 1.5rem 0.75rem 0.75rem;
  }
  
  .footer-logo img {
    height: 30px;
  }
  
  main {
    padding: 0.5rem;
  }
  
  section h1 {
    font-size: 1.3rem;
  }
  
  section h2 {
    font-size: 1.2rem;
  }
  
  section {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  section p, section li {
    font-size: 0.85rem;
  }
  
  section ul, section ol {
    margin-left: 1.2rem;
  }
  
  table {
    font-size: 0.75rem;
  }
  
  table th, table td {
    padding: 0.4rem;
  }
  
  .error-404 h1 {
    font-size: 2rem;
  }
  
  .error-404 p {
    font-size: 0.9rem;
  }
  
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 15px;
    font-size: 1.3rem;
  }
  
  .scroll-to-top.with-banner {
    bottom: 160px;
  }
  
  .bottom-banner-bar {
    padding: 0.75rem 1rem;
  }
  
  .bottom-banner-text {
    font-size: 0.9rem;
  }
  
  .bottom-banner-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .demo-overlay-buttons {
    max-width: 160px;
    padding: 0 0.5rem;
  }
  
  .demo-overlay-button {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Demo Game Responsive Styles */
/* PC - 16:9 aspect ratio */
@media (min-width: 1025px) {
  .demo-game-container {
    aspect-ratio: 16 / 9;
  }
  
  .demo-game-iframe {
    height: 100%;
  }
}

/* Tablet - 4:3 aspect ratio */
@media (max-width: 1024px) and (min-width: 769px) {
  .demo-game-container {
    aspect-ratio: 4 / 3;
  }
  
  .demo-game-iframe {
    height: 100%;
  }
}

/* Mobile - 9:16 aspect ratio */
@media (max-width: 768px) {
  .demo-game-container {
    aspect-ratio: 9 / 16;
  }
  
  .demo-game-iframe {
    height: 100%;
  }
  
  .demo-overlay-buttons {
    max-width: 250px;
    padding: 0 1.5rem;
  }
  
  .demo-overlay-button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* Scroll to Top Button Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 15px;
    font-size: 1.3rem;
  }
  
  .scroll-to-top.with-banner {
    bottom: 160px;
  }
}

@media (max-width: 425px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 85px;
    right: 10px;
    font-size: 1.2rem;
  }
  
  .scroll-to-top.with-banner {
    bottom: 150px;
  }
  
  .bottom-banner-bar {
    padding: 0.75rem 1rem;
    flex-direction: column;
  }
  
  .bottom-banner-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .bottom-banner-text {
    font-size: 1rem;
  }
  
  .bottom-banner-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }
  
  .demo-overlay-buttons {
    max-width: 200px;
    padding: 0 1rem;
  }
  
  .demo-overlay-button {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 375px) {
  .scroll-to-top {
    width: 38px;
    height: 38px;
    bottom: 80px;
    right: 8px;
    font-size: 1.1rem;
  }
  
  .scroll-to-top.with-banner {
    bottom: 145px;
  }
  
  .bottom-banner-text {
    font-size: 0.95rem;
  }
  
  .bottom-banner-button {
    padding: 0.65rem 1.6rem;
    font-size: 0.9rem;
  }
  
  .demo-overlay-buttons {
    max-width: 180px;
    padding: 0 0.75rem;
  }
  
  .demo-overlay-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Header Play Button */
.header-play-button {
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .header-play-button {
    display: none;
  }
}

/* Footer Play Button */
.footer-play-button {
  margin-top: 1rem;
  width: 150px;
}

