/*
 Theme Name:   Monelms Dark
 Theme URI:    http://monelms.local
 Description:  Independent dark theme — vocal training course site
 Author:       Monelms
 Version:      2.0.0
 Text Domain:  monelms-dark
*/

/* ===== Dark Theme Root Variables (color.md) ===== */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-card: #1E1E1E;
  --bg-card-hover: #2A2A2A;
  --border-color: #333333;
  --text-primary: #E0E0E0;
  --text-secondary: #888888;
  --text-dim: #555555;
  --accent: #47D4CA;
  --accent-hover: #3BAA9F;
  --accent-active: #2A7A73;
  --accent-bg: rgba(71, 212, 202, 0.10);
  --accent-border: rgba(71, 212, 202, 0.25);
  --accent-urgent: #D94A5A;
  --accent-urgent-hover: #B03A48;
  --accent-urgent-bg: rgba(217, 74, 90, 0.10);
  --font-main: 'Outfit', sans-serif;
  --content-width: 1200px;
  --radius: 8px;
}

/* ===== Global Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===== Header ===== */
.mn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mn-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}

.mn-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.mn-header__logo:hover {
  color: var(--text-primary);
}

.mn-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mn-header__menu {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.mn-header__menu li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}

.mn-header__menu li a:hover,
.mn-header__menu li.current-menu-item a {
  color: var(--text-primary);
}

.mn-header__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  background-color: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s;
}

.mn-header__btn:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.mn-header__badge {
  background-color: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger toggle — hidden on desktop */
.mn-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.mn-header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.2s;
}

/* ===== Content ===== */
.mn-content {
  min-height: calc(100vh - 64px - 80px);
}

/* Hide entry-header on custom pages */
.entry-header {
  display: none;
}

/* ===== Legal Pages ===== */
.legal-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.legal-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content .legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  color: var(--text-secondary);
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.mn-footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.mn-footer__links {
  margin-bottom: 0.75rem;
}

.mn-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s;
}

.mn-footer__links a:hover {
  color: var(--accent);
}

.mn-footer__links span {
  color: var(--text-dim);
}

/* ===== Canvas pages — hide header/footer ===== */
body.monelms-canvas .mn-header,
body.monelms-canvas .mn-footer {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .mn-header__menu li a {
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .mn-header__toggle {
    display: flex;
  }

  .mn-header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
  }

  .mn-header__nav--open {
    display: block;
  }

  .mn-header__menu {
    flex-direction: column;
    gap: 0;
  }

  .mn-header__menu li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .mn-header__btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

