/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Pink Theme Colors */
  --primary-pink: #c2185b;
  --dark-pink: #8b0e3d;
  --darker-pink: #5a0a28;
  --light-pink: #e91e63;
  --accent-pink: #ff4081;
  --bg-dark: #1a0a12;
  --bg-darker: #0f0509;
  --text-light: #f5f5f5;
  --text-gray: #cccccc;
  --border-pink: rgba(194, 24, 91, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--darker-pink) 0%, var(--dark-pink) 100%);
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(194, 24, 91, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-pink);
}

h1{
  text-align: center;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  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;
}

.header-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-pink);
  transition: width 0.3s ease;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-pink);
}

.header-nav a:hover::after {
  width: 80%;
}

.header-nav.hidden {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
}

h1 {
  color: var(--accent-pink);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  color: var(--light-pink);
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h3 {
  color: var(--primary-pink);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

/* Banner Styles */
.banner-container {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(194, 24, 91, 0.4);
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-side {
  float: right;
  width: 400px;
  margin: 2rem 0 2rem 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(194, 24, 91, 0.4);
}

.banner-side img {
  width: 100%;
  height: auto;
  display: block;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-darker);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(194, 24, 91, 0.2);
}

thead {
  background: linear-gradient(135deg, var(--dark-pink) 0%, var(--primary-pink) 100%);
}

th {
  padding: 1rem;
  text-align: left;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 2px solid var(--border-pink);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-pink);
  color: var(--text-gray);
}

tbody tr:hover {
  background: rgba(194, 24, 91, 0.1);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Definition List Styles */
dl {
  margin: 2rem 0;
}

dt {
  color: var(--accent-pink);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  padding: 1rem;
  background: var(--bg-darker);
  border-radius: 8px;
  border: 1px solid var(--border-pink);
  transition: all 0.3s ease;
  position: relative;
  padding-right: 3rem;
}

dt::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

dt.active::after {
  transform: translateY(-50%) rotate(45deg);
}

dt:hover {
  background: rgba(194, 24, 91, 0.1);
  border-color: var(--accent-pink);
}

dd {
  color: var(--text-gray);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

dd.active {
  max-height: 500px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 1rem 1rem;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--darker-pink) 0%, var(--dark-pink) 100%);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 2px solid var(--border-pink);
  box-shadow: 0 -4px 20px rgba(194, 24, 91, 0.3);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.footer-logo a{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-pink);
}

.footer-nav.hidden {
  display: none;
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-pink);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* 404 Page Styles */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 64, 129, 0.5);
}

.error-404 p {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.error-404 a {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(194, 24, 91, 0.4);
}

.error-404 a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.6);
}

/* Responsive Design */

/* PC - min 1025px (default styles above) */

/* Laptop - max 1024px */
@media screen and (max-width: 1024px) {
  main {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .banner-side {
    width: 350px;
    margin-left: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* Tablet - max 768px */
@media screen and (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .header-nav {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    display: none;
  }

  .header-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .banner-side {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .footer-container {
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .error-404 h1 {
    font-size: 4rem;
  }

  .error-404 p {
    font-size: 1.25rem;
  }
}

/* Mobile L - max 425px */
@media screen and (max-width: 425px) {
  header {
    padding: 0.75rem;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .header-logo img {
    height: 40px;
  }

  main {
    padding: 0.75rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  ul, ol {
    margin-left: 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-logo img {
    height: 50px;
  }

  .error-404 {
    padding: 2rem 1rem;
  }

  .error-404 h1 {
    font-size: 3rem;
  }

  .error-404 p {
    font-size: 1rem;
  }

  .error-404 a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Mobile M - max 375px */
@media screen and (max-width: 375px) {
  .header-logo {
    font-size: 1rem;
  }

  .header-logo img {
    height: 35px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .scroll-to-top {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  h3 {
    font-size: 1rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem 0.4rem;
  }

  .error-404 h1 {
    font-size: 2.5rem;
  }
}

/* Mobile S - max 320px */
@media screen and (max-width: 320px) {
  header {
    padding: 0.5rem;
  }

  .header-logo img {
    height: 30px;
  }

  main {
    padding: 0.5rem;
  }

  .scroll-to-top {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.95rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.4rem 0.3rem;
  }

  .error-404 h1 {
    font-size: 2rem;
  }

  .error-404 p {
    font-size: 0.9rem;
  }

  .error-404 a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(194, 24, 91, 0.5);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(194, 24, 91, 0.7);
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top::before {
  content: '↑';
}

/* Clear floats */
section::after {
  content: "";
  display: table;
  clear: both;
}

