/* facebook.css
   FULL CSS
   - Matches your phoneme-counter layout/style
   - Updates:
     ✅ Adds top-metrics container styling (Post + See more above textarea)
     ✅ Result container background is light gray
     ✅ Textarea is bigger (min-height 260px)
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");

/* Prevent page width "jump" when scrollbar appears/disappears */
html {
  scrollbar-gutter: stable;
}

/* Footer full width */
.footer {
  width: 100%;
}

/* Base styles */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

/* Layout grid */
.parent-vowel {
  display: grid;
  grid-template-columns: 1fr 8fr 1fr 300px;
  grid-template-rows: 1fr;
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}

.div1-vowel {
  grid-area: 1 / 1 / 2 / 2;
}
.div2-vowel {
  grid-area: 1 / 3 / 2 / 4;
}

.div3-vowel {
  grid-area: 1 / 2 / 2 / 3;
  padding: 0 12px;
  box-sizing: border-box;
}

.sidebar {
  grid-area: 1 / 4 / 2 / 5;
}

.text {
  padding: 18px 16px;
  box-sizing: border-box;
  overflow-wrap: anywhere;

  /* align content width with checker box */
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.parent-vowel p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}

.parent-vowel p a {
  color: #1a73e8;
}

.parent-vowel h2,
.parent-vowel h3 {
  margin-bottom: 20px;
}

/* ==========================================================
   ✅ LIST FIXES (spacing + same font as paragraphs + INDENT)
========================================================== */
.text ul,
.text ol {
  list-style-position: outside;
  padding-left: 3rem;
  margin: 0 0 20px;
  margin-left: 0;
}

.text ul {
  list-style: disc;
}

.text ol {
  list-style: decimal;
}

.text li {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 10px;
}

.text li:last-child {
  margin-bottom: 0;
}

/* Constrain main column on large screens */
@media (min-width: 1200px) {
  .div3-vowel {
    max-width: 900px;
  }
}

/* 1200px: 2 columns (content + sidebar) */
@media (max-width: 1200px) {
  .parent-vowel {
    grid-template-columns: 1fr 300px;
    grid-template-rows: 1fr;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
  }

  .div1-vowel,
  .div2-vowel {
    display: none;
  }

  .div3-vowel {
    grid-area: 1 / 1 / 2 / 2;
    padding: 0 12px;
  }

  .sidebar {
    grid-area: 1 / 2 / 2 / 3;
  }
}

/* 992px: stack */
@media (max-width: 992px) {
  .parent-vowel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0;
    grid-row-gap: 0;
  }

  .div3-vowel {
    grid-area: 1 / 1 / 2 / 2;
    padding: 0 12px;
  }

  .sidebar {
    grid-area: auto;
  }
}

/* ----------------------------------------------------------
   Checker wrapper
---------------------------------------------------------- */
.vc-container {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.vc-title {
  font-size: 32px;
  color: #333;
  margin: 0;
  text-align: center;
  padding: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .vc-container {
    padding: 15px;
  }
  .vc-title {
    font-size: 30px;
  }
}

@media (max-width: 400px) {
  .vc-container {
    padding: 10px;
  }
  .text {
    padding: 16px 14px;
  }
}

/* ----------------------------------------------------------
   Tool card
---------------------------------------------------------- */
.vowel-checker {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;

  width: 620px;
  max-width: 100%;
  margin: 0 auto;

  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.1);

  box-sizing: border-box;
  overflow-x: clip;
  contain: layout paint;
}

/* Ensure all children don’t exceed the card */
.vowel-checker,
.vowel-checker * {
  box-sizing: border-box;
  max-width: 100%;
}

/* ✅ Top metrics area (Post + See more above textarea) */
.vowel-checker .vc-top-metrics {
  margin-bottom: 12px;
}

/* Input/textarea */
.vowel-checker .vc-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.35;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(248, 250, 252, 1);
  color: rgba(2, 6, 23, 0.9);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;

  resize: vertical;

  /* Bigger textbox */
  min-height: 260px;
}

.vowel-checker .vc-input::placeholder {
  color: rgba(30, 41, 59, 0.45);
  font-size: 18px;
}

.vowel-checker .vc-input:focus {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

/* Buttons row */
.vowel-checker .vc-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  width: 100%;
}

.vowel-checker .vc-actions .vc-btn {
  margin-top: 0;
  flex: 1;
}

/* Button (primary) */
.vowel-checker .vc-btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;

  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);

  transition: transform 160ms ease, filter 180ms ease, box-shadow 200ms ease;
  transform: scale(1);
}

.vowel-checker .vc-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.07) saturate(1.08);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.26);
}

.vowel-checker .vc-btn:active {
  transform: scale(0.99);
  filter: brightness(1.02);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.vowel-checker .vc-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22),
    0 18px 40px rgba(37, 99, 235, 0.26);
}

/* Secondary Clear button */
.vowel-checker .vc-btn.vc-btn-secondary {
  background: rgba(2, 6, 23, 0.08);
  color: rgba(2, 6, 23, 0.9);
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.vowel-checker .vc-btn.vc-btn-secondary:hover {
  transform: scale(1.03);
  filter: brightness(1.02);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.1);
}

.vowel-checker .vc-btn.vc-btn-secondary:active {
  transform: scale(0.99);
}

/* Result box (light gray container) */
.vowel-checker .vc-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(241, 245, 249, 1);
  color: rgba(2, 6, 23, 0.9);

  font-size: 18px;
  line-height: 1.6;

  width: 100%;
  min-width: 0;

  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: clip;
}

.vowel-checker .vc-result div {
  min-width: 0;
  max-width: 100%;
}

/* Optional hint */
.vowel-checker .vc-hint {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(30, 41, 59, 0.72);
}

/* Breakpoint */
@media (max-width: 640px) {
  .vowel-checker {
    padding: 16px;
    border-radius: 14px;
    width: 100%;
  }
}

/* Menu background fix (put LAST so it wins) */
#header .list-link,
#menu .list-link {
  background: transparent !important;
}

#menu.activated .list-link {
  background: transparent !important;
}

#header .list-link:hover,
#menu .list-link:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  border-radius: 8px;
}