/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
body {
  background-color: #0a0a0a;
  color: #f4f4f4;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #000000;
  border-bottom: 2px solid #ff2a2a;
  padding: 15px 0 20px 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 40px;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-shrink: 0;
}

.logo img {
  height: 4.5rem;
  width: 4.5rem;
  object-fit: contain;
}

.logo-wordmark {
  font-family: 'Stardos Stencil', cursive;
  font-size: 2.6rem;
  display: flex;
  flex-direction: column;
  line-height: 0.85;
}

.brand-mod { color: #ff2a2a; padding-left: 0.8em; }
.brand-base { color: #ffffff; }

/* Middle Section & Tagline */
.nav-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
  gap: 10px;
}

.tagline-text {
  color: #cccccc;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Primary Navigation Menu */
.primary-nav {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  flex-shrink: 0;
}

.primary-nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.nav-guide { color: #ff2a2a; }
.nav-dict { color: #ffffff; }
.nav-calc { color: #00cc44; }
.nav-discord { color: #5865F2; }

.primary-nav img, 
.primary-nav svg {
  height: 25px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
  background: transparent;
}

.nav-small-text { font-size: 1rem; }
.nav-large-text { font-size: 1.5rem; }

/* Expanding Search Bar & Mobile Actions */
.mobile-actions-wrapper {
  flex-shrink: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.expandable-search {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.expandable-search input {
  width: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-family: 'Oswald', sans-serif;
  border-radius: 8px 0 0 8px;
  transition: width 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.expandable-search.open input {
  width: 300px;
  padding: 0 20px;
  opacity: 1;
  visibility: visible;
}

.expandable-search button {
  padding: 12px 20px;
  background: #ff2a2a;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-radius 0.4s ease;
}

.expandable-search.open button {
  border-radius: 0 8px 8px 0;
}

.mobile-menu-toggle {
  display: none; 
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  font-family: 'Permanent Marker', cursive;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero .lead {
  color: #cccccc;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions .btn {
  background: #ff2a2a;
  color: #ffffff;
  padding: 15px 40px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-weight: bold;
  letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #000000;
  border-top: 1px solid #1a1a1a;
  padding: 60px 20px 30px;
  color: #666666;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-logo {
  font-family: 'Stardos Stencil', cursive;
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.footer-logo img {
  height: 3.06rem;
  width: 3.06rem;
  object-fit: contain;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  align-items: flex-start;
}

.footer-desc {
  margin: 0;
  color: #aaaaaa;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 250px;
}

.footer-col h4 {
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: sans-serif;
}

.footer-col ul a {
  color: #aaaaaa;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.social-links a {
  color: #ffffff;
  background: #1a1a1a;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
}

.copyright {
  border-top: 1px solid #1a1a1a;
  padding-top: 20px;
  text-align: center;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #555555;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
   
/* Laptops/Medium Screens */
@media (max-width: 1550px) {
  .nav-wrap { gap: 20px; padding: 0 20px; }
  .primary-nav { gap: 20px; }
  .expandable-search.open input { width: 200px; } 
}

/* Tablets */
@media (max-width: 1150px) {
  .nav-wrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .primary-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .mobile-actions-wrapper { width: 100%; justify-content: center; }
}

/* Mobile Phones (Smart Grid & Hamburger) */
@media (max-width: 768px) {
  .nav-wrap {
    flex-direction: row;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    gap: 0;
  }
  .logo { order: 1; margin-bottom: 0; flex: 0 1 auto; }
  
  .mobile-actions-wrapper { 
    order: 2; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 0; 
    width: auto; 
  }

  .mobile-menu-toggle {
    display: flex;
    background: #ff2a2a;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    height: 46px; 
    width: 46px;
  }

  .nav-middle { 
    display: none; 
    order: 3; 
    width: 100%; 
    margin-top: 20px; 
    gap: 15px; 
  }

  .nav-middle.mobile-open { display: flex; }
  
  .primary-nav { 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px; 
  }
  
  .primary-nav img, 
  .primary-nav svg { height: 22px; width: 22px; margin-bottom: 4px; }
  
  .nav-small-text { font-size: 0.85rem; }
  .nav-large-text { font-size: 1.3rem; }
  
  .logo-wordmark { font-size: 2.2rem; }
  .logo img { height: 3.5rem; width: 3.5rem; }
  
  .tagline-text { 
    font-size: 1rem; 
    white-space: normal; 
    line-height: 1.3; 
    text-align: center;
  }
  
  .expandable-search.open input { width: 140px; padding: 0 10px; font-size: 1rem; height: 46px; }
  .expandable-search button { padding: 10px 12px; height: 46px; }
  
  /* Stack footer items on mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-logo-text { align-items: center; }
  .footer-desc { margin: 0 auto; }
  .social-links { align-items: center; }
  /* Hide skip link visually, but keep it for screen readers */
.skip-link {
  position: absolute;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
}/* ==========================================================================
   DICTIONARY PAGE STYLES
   ========================================================================== */
.dictionary-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.dictionary-header h1 {
  font-family: 'Permanent Marker', cursive;
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Local Search Bar */
.dict-search-wrapper {
  max-width: 600px;
  margin: 0 auto 30px;
}

.dict-search-wrapper input {
  width: 100%;
  padding: 15px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 2px solid #333;
  background: #141414;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.dict-search-wrapper input:focus {
  border-color: #ff2a2a;
}

/* A-Z Jump Menu */
.a-z-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto 50px;
}

.a-z-menu a {
  color: #ffffff;
  background: #1a1a1a;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.a-z-menu a:hover {
  background: #ff2a2a;
  color: #ffffff;
}

/* Dictionary Content Container */
.dictionary-content {
  max-width: 750px; /* Reduced from 900px to pull the block tightly into the center */
  margin: 0 auto; /* Centers the entire block on your screen */
  padding: 0 20px 80px;
  text-align: left; /* Ensures the text forms a straight vertical starting line */
}

.dict-section {
  margin-bottom: 50px;
}

.dict-section h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.5rem;
  color: #ff2a2a;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.term-card {
  background: #141414;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #333;
  transition: border-color 0.2s ease;
}

.term-card:hover {
  border-left-color: #ff2a2a;
}

.term-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.term-card p {
  color: #aaaaaa;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.term-card a {
  color: #ff2a2a;
  text-decoration: none;
  font-weight: bold;
}

.term-card a:hover {
  text-decoration: underline;
}