/* ==========================================================================
   DM Play Game - Clean Minimal WordPress White Theme
   Ultra Lightweight & Fast with Official Logo Navbar
   ========================================================================== */

:root {
  --wp-blue: #0073aa;
  --wp-blue-hover: #005177;
  --wp-red: #c82333;
  --wp-red-hover: #a71d2a;
  --wp-dark: #1d2327;
  --wp-slate: #1e293b;
  --wp-text: #3c434a;
  --wp-muted: #646970;
  --wp-border: #e2e8f0;
  --wp-bg-light: #f8fafc;
  --wp-green: #008a20;
  --wp-green-hover: #00701a;
  --wp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html {
  font-family: var(--wp-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wp-text);
  background-color: #f8fafc;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

a {
  color: var(--wp-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--wp-blue-hover);
}

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

/* ==========================================================================
   Modern WordPress-Style Navbar with Logo
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--wp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 0;
  gap: 16px;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-left: 2px;
}

.site-logo {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.custom-logo-link:hover .site-logo {
  transform: scale(1.02);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--wp-red);
  text-decoration: none;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--wp-red);
  border-radius: 2px;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Navbar Login Button: Sleek Dark Slate */
.btn-primary {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  border-color: #1e293b;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

/* Navbar Register Button: Vibrant Crimson Red */
.btn-green,
.btn-red {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-green:hover,
.btn-red:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

/* Hero Top CTA Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin: 22px 0 30px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 13px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 6px;
}

.hero-buttons .btn-login {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid #1e293b;
  box-shadow: 0 3px 8px rgba(30, 41, 59, 0.25);
}

.hero-buttons .btn-login:hover {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.hero-buttons .btn-register {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}

.hero-buttons .btn-register:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--wp-border);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-right: 2px;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--wp-red);
}

.menu-toggle:active {
  transform: scale(0.96);
}

/* Content Layout */
.site-main {
  flex: 1;
  padding: 30px 0 50px;
}

.content-area {
  max-width: 860px;
  margin: 0 auto;
}

h1 {
  font-size: 2.2rem;
  color: var(--wp-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.45rem;
  color: var(--wp-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.2rem;
  color: var(--wp-dark);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #2c3338;
}

ul, ol {
  margin: 15px 0 20px 25px;
  color: #2c3338;
}

li {
  margin-bottom: 8px;
}

/* FAQ Box */
.faq-block {
  margin-top: 25px;
  border-top: 1px solid var(--wp-border);
  padding-top: 20px;
}

.faq-entry {
  margin-bottom: 20px;
}

.faq-entry h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--wp-dark);
}

.faq-entry p {
  margin-bottom: 0;
  color: var(--wp-text);
}

/* Breadcrumb */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--wp-muted);
  margin-bottom: 15px;
}

.breadcrumbs a {
  color: var(--wp-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  margin-top: 20px;
  max-width: 600px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--wp-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--wp-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--wp-border);
  padding: 32px 0;
  background-color: #ffffff;
  font-size: 0.92rem;
  color: var(--wp-muted);
  margin-top: auto;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: var(--wp-red);
}

.footer-copyright {
  color: var(--wp-muted);
  font-size: 0.88rem;
}

.footer-copyright a {
  color: var(--wp-muted);
  text-decoration: underline;
}

.footer-copyright a:hover {
  color: var(--wp-red);
}

/* ==========================================================================
   Comprehensive Mobile & Responsive Styles
   ========================================================================== */
@media (max-width: 980px) {
  .site-header .container {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 68px;
    padding: 10px 0;
  }

  .custom-logo-link {
    margin-left: 4px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-right: 4px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--wp-border);
    flex-direction: column;
    padding: 16px 20px 24px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    gap: 16px;
    align-items: stretch;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
    animation: navSlideDown 0.22s ease-out forwards;
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

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

  .nav-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 0.98rem;
    border-radius: 6px;
    color: #1e293b;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background-color: #fef2f2;
    color: var(--wp-red);
  }

  .nav-menu a.active::after {
    display: none;
  }

  .nav-buttons {
    flex-direction: row;
    width: 100%;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--wp-border);
  }

  .nav-buttons .btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 0.96rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
  }

  .site-logo {
    height: 38px;
    max-width: 155px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .site-header .container {
    padding: 0 14px;
  }

  .header-inner {
    min-height: 62px;
  }

  .custom-logo-link {
    margin-left: 6px;
  }

  .menu-toggle {
    margin-right: 6px;
    padding: 7px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .site-logo {
    height: 35px;
    max-width: 140px;
  }

  .site-main {
    padding: 22px 0 40px;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.28;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 26px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 1.1rem;
    margin-top: 18px;
    margin-bottom: 8px;
  }

  p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  ul, ol {
    margin: 12px 0 18px 20px;
    font-size: 0.98rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .nav-buttons .btn {
    width: 100%;
  }

  .hero-buttons {
    margin: 18px 0 24px;
  }

  .hero-buttons .btn {
    padding: 13px 18px;
    font-size: 1rem;
  }

  .faq-block {
    margin-top: 20px;
    padding-top: 16px;
  }

  .faq-entry {
    margin-bottom: 16px;
  }

  .faq-entry h3 {
    font-size: 1.02rem;
  }

  .site-footer {
    padding: 26px 0;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
