/* ============================================================
   facebook-post-counter.css
   FULL CSS

   Current layout:
   - Facebook Post + Characters Until "See More" at top
   - No progress/status bar
   - No Characters / Words metrics
   - Blue number outputs
   - "See More" turns red only after passing the estimate
   - Smaller "remaining" / "past estimate" text
   - Secondary Facebook metrics directly below textarea
   - Textarea can resize much shorter
   - Extra spacing between scrollbar and Clear button
   - Hover/focus info popups for (i)
   - Wider desktop layout with less wasted left space
   - Character Counter recommendation below metric cards
============================================================ */

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


/* ============================================================
   GLOBAL
============================================================ */

html {
  scrollbar-gutter: stable;
}

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;

  background: #ffffff;
}

.footer {
  width: 100%;
}


/* ============================================================
   MAIN PAGE
============================================================ */

.facebook-post-page {
  width: 100%;

  box-sizing: border-box;

  padding-top: 96px;
  padding-bottom: 30px;
}


/* ============================================================
   DESKTOP LAYOUT
============================================================ */

.parent-vowel {
  width: 100%;
  max-width: 1280px;

  margin: 0 auto;

  padding: 0 20px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    300px;

  gap: 28px;

  align-items: start;

  box-sizing: border-box;
}


/* ============================================================
   MAIN COLUMN
============================================================ */

.div3-vowel {
  width: 100%;

  min-width: 0;

  padding: 0;

  box-sizing: border-box;
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
  width: 300px;
  min-width: 300px;

  box-sizing: border-box;
}


/* ============================================================
   TOOL OUTER CONTAINER
============================================================ */

.vc-container {
  width: 100%;

  margin: 0;

  padding: 0;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  box-sizing: border-box;
}


/* ============================================================
   PAGE TITLE
============================================================ */

.vc-title {
  width: 100%;

  margin: 0;

  padding: 0;

  color: #333333;

  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;

  text-align: left;
}


/* ============================================================
   SUBTITLE
============================================================ */

.vc-subtitle {
  width: 100%;
  max-width: 860px;

  margin: 10px 0 18px;

  color: #475569;

  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}


/* ============================================================
   MAIN TOOL CARD
============================================================ */

.vowel-checker {
  width: 100%;
  max-width: 860px;

  margin: 0;

  padding: 20px;

  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 18px 50px rgba(2, 6, 23, 0.08);

  box-sizing: border-box;

  overflow: visible;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.vowel-checker,
.vowel-checker * {
  box-sizing: border-box;
}


/* ============================================================
   TOP METRICS
============================================================ */

.fb-top-metrics {
  width: 100%;

  margin: 0 0 14px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 1fr);

  gap: 10px;

  align-items: stretch;
}


/* ============================================================
   TOP METRIC CARDS
============================================================ */

.fb-primary-metric {
  width: 100%;

  min-width: 0;

  margin: 0;

  padding: 17px 18px;

  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;

  background: #f8fbff;

  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.06);

  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}


/* ============================================================
   FACEBOOK POST CARD EMPHASIS
============================================================ */

#fbPostCard {
  border-color: rgba(37, 99, 235, 0.28);

  box-shadow:
    0 10px 28px rgba(37, 99, 235, 0.08);
}


/* ============================================================
   POST OVER LIMIT
============================================================ */

#fbPostCard.is-over {
  border-color: rgba(220, 38, 38, 0.35);

  background: #fff7f7;

  box-shadow:
    0 10px 28px rgba(220, 38, 38, 0.08);
}


/* ============================================================
   TOP CARD HEADER
============================================================ */

.fb-primary-header {
  width: 100%;

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 8px;
}

.fb-primary-title-row {
  display: flex;

  align-items: center;

  gap: 6px;

  min-width: 0;
}

.fb-primary-title {
  min-width: 0;

  color: #111827;

  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}


/* ============================================================
   TOP CARD NUMBER OUTPUT
============================================================ */

.fb-primary-count {
  margin-top: 7px;

  color: #1a73e8;

  font-family: "Roboto Mono", monospace;

  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;

  overflow-wrap: anywhere;
}

.fb-count-divider {
  color: #94a3b8;

  opacity: 1;

  padding: 0 3px;
}


/* ============================================================
   POST REMAINING TEXT
============================================================ */

.fb-primary-remaining {
  margin-top: 5px;

  color: #475569;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

#fbPostCard.is-over .fb-primary-count,
#fbPostCard.is-over .fb-primary-remaining {
  color: #b91c1c;
}


/* ============================================================
   SEE MORE CARD
============================================================ */

.fb-see-more-metric {
  background: #fafcff;
}

#fbSeeMoreStatus {
  margin-top: 12px;

  line-height: 1.3;
}


/* Large blue number */
.fb-see-more-number {
  color: #1a73e8;

  font-family: "Roboto Mono", monospace;

  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
}


/* Small explanatory text */
.fb-see-more-label {
  margin-left: 6px;

  color: #64748b;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}


/* Past the estimated "See More" point */
.fb-see-more-metric.is-past .fb-see-more-number,
.fb-see-more-metric.is-past .fb-see-more-label {
  color: #b91c1c;
}


/* ============================================================
   TEXTAREA WRAPPER
============================================================ */

.vc-textarea-wrap {
  position: relative;

  width: 100%;

  margin: 0;

  box-sizing: border-box;
}


/* ============================================================
   TEXTAREA
============================================================ */

.vowel-checker .vc-input {
  display: block;

  width: 100%;

  min-height: 85px;
  height: 210px;

  margin: 0;

  padding:
    14px
    14px
    54px;

  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 13px;

  background: #f8fafc;

  color: rgba(2, 6, 23, 0.92);

  outline: none;

  resize: vertical;

  font-family: "Roboto Mono", monospace;

  font-size: 17px;
  line-height: 1.5;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.vowel-checker .vc-input::placeholder {
  color: rgba(30, 41, 59, 0.43);

  font-size: 16px;
}

.vowel-checker .vc-input:focus {
  background: #ffffff;

  border-color: rgba(37, 99, 235, 0.58);

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.14);
}


/* ============================================================
   INLINE COPY / CLEAR
   Extra spacing keeps Clear farther from scrollbar
============================================================ */

.vc-inline-actions {
  position: absolute;

  right: 36px;
  bottom: 10px;

  display: flex;

  gap: 7px;

  align-items: center;

  z-index: 5;
}


/* ============================================================
   INLINE BUTTONS
============================================================ */

.vc-inline-btn {
  min-width: 72px;

  padding: 8px 12px;

  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9px;

  cursor: pointer;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;

  transition:
    transform 140ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.vc-inline-btn:hover {
  transform: translateY(-1px);
}

.vc-inline-btn:active {
  transform: translateY(0);
}

.vc-inline-btn:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.18);
}


/* ============================================================
   COPY BUTTON
============================================================ */

.vc-copy-btn {
  color: #ffffff;

  border-color: rgba(22, 163, 74, 0.3);

  background: rgba(22, 163, 74, 0.9);
}

.vc-copy-btn:hover {
  background: rgba(21, 128, 61, 0.96);
}


/* ============================================================
   CLEAR / UNDO BUTTON
============================================================ */

.vc-clear-btn {
  color: #334155;

  background: rgba(255, 255, 255, 0.92);
}

.vc-clear-btn:hover {
  color: #0f172a;

  background: #ffffff;

  border-color: rgba(15, 23, 42, 0.2);
}

.vc-inline-btn:disabled {
  cursor: default;

  opacity: 0.65;

  transform: none;
}


/* ============================================================
   RESULT WRAPPER
============================================================ */

.vowel-checker .vc-result {
  width: 100%;

  margin: 12px 0 0;

  padding: 0;

  border: none;
  border-radius: 0;

  background: transparent;

  color: inherit;

  box-shadow: none;

  overflow: visible;
}


/* ============================================================
   SECONDARY METRIC GRID
============================================================ */

.fb-secondary-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;
}


/* ============================================================
   SECONDARY CARDS
============================================================ */

.fb-limit-card {
  position: relative;

  min-width: 0;

  padding: 13px 14px;

  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 12px;

  background: #ffffff;

  box-shadow:
    0 6px 18px rgba(2, 6, 23, 0.045);

  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.fb-limit-card:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 22px rgba(2, 6, 23, 0.065);
}


/* ============================================================
   SECONDARY OVER-LIMIT STATE
============================================================ */

.fb-limit-card.is-over {
  border-color: rgba(220, 38, 38, 0.27);

  background: #fff7f7;
}

.fb-limit-card.is-over .fb-limit-count {
  color: #b91c1c;
}


/* ============================================================
   SECONDARY CARD TITLE
============================================================ */

.fb-limit-title-row {
  display: flex;

  align-items: center;

  gap: 6px;

  min-width: 0;
}

.fb-limit-title {
  min-width: 0;

  color: #1e293b;

  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
}


/* ============================================================
   SECONDARY NUMBER OUTPUTS
============================================================ */

.fb-limit-count {
  margin-top: 7px;

  color: #1a73e8;

  font-family: "Roboto Mono", monospace;

  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}


/* ============================================================
   RECOMMENDED LABEL
============================================================ */

.fb-limit-note {
  margin-top: 6px;

  color: #64748b;

  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}


/* ============================================================
   USERNAME VALIDATION MESSAGE
============================================================ */

.fb-limit-message {
  margin-top: 6px;

  color: #b91c1c;

  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
}


/* ============================================================
   INFO ICON
============================================================ */

.vc-info {
  position: relative;

  flex: 0 0 auto;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  border: 1px solid #94a3b8;
  border-radius: 50%;

  color: #64748b;

  background: #ffffff;

  cursor: help;

  font-family: Arial, sans-serif;

  font-size: 11px;
  line-height: 1;
  font-weight: 700;

  user-select: none;

  z-index: 20;
}

.vc-info:hover,
.vc-info:focus {
  color: #1d4ed8;

  border-color: #1d4ed8;

  outline: none;
}


/* ============================================================
   INFO POPUP
============================================================ */

.vc-info::after {
  content: attr(aria-label);

  position: absolute;

  left: 50%;
  bottom: calc(100% + 10px);

  transform:
    translateX(-50%)
    translateY(4px);

  width: 270px;
  max-width: 75vw;

  padding: 10px 11px;

  border-radius: 8px;

  background: #1e293b;
  color: #ffffff;

  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.22);

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;

  text-align: left;
  white-space: normal;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;

  z-index: 9999;
}


/* ============================================================
   TOOLTIP ARROW
============================================================ */

.vc-info::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: calc(100% + 4px);

  transform: translateX(-50%);

  border: 6px solid transparent;
  border-top-color: #1e293b;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 140ms ease,
    visibility 140ms ease;

  z-index: 9999;
}


/* ============================================================
   SHOW TOOLTIP
============================================================ */

.vc-info:hover::after,
.vc-info:focus::after {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

.vc-info:hover::before,
.vc-info:focus::before {
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   CHARACTER COUNTER RECOMMENDATION
============================================================ */

.facebook-more-stats {
  width: 100%;

  margin-top: 14px;

  padding: 14px 16px;

  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 11px;

  background: #f8fbff;

  box-sizing: border-box;
}

.facebook-more-stats p {
  margin: 0;

  color: #334155;

  font-size: 14px;
  line-height: 1.55;
}

.facebook-more-stats a {
  color: #1a73e8;

  font-weight: 700;

  text-decoration: underline;

  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.facebook-more-stats a:hover {
  color: #1558b0;
}


/* ============================================================
   ARTICLE
============================================================ */

.text {
  width: 100%;
  max-width: 860px;

  margin: 0;

  padding: 30px 0 10px;

  box-sizing: border-box;

  overflow-wrap: anywhere;
}


/* ============================================================
   ARTICLE PARAGRAPHS
============================================================ */

.text p {
  margin-top: 0;
  margin-bottom: 20px;

  color: #202124;

  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
}


/* ============================================================
   ARTICLE HEADINGS
============================================================ */

.text h2 {
  margin-top: 34px;
  margin-bottom: 14px;

  color: #202124;

  font-size: 27px;
  line-height: 1.35;
  font-weight: 700;
}

.text h2:first-child {
  margin-top: 0;
}

.text h3 {
  margin-top: 27px;
  margin-bottom: 10px;

  color: #202124;

  font-size: 21px;
  line-height: 1.4;
  font-weight: 650;
}


/* ============================================================
   ARTICLE LINKS
============================================================ */

.text a {
  color: #1a73e8;

  text-decoration: underline;

  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.text a:hover {
  color: #1558b0;
}


/* ============================================================
   LISTS
============================================================ */

.text ul,
.text ol {
  margin: 0 0 22px;

  padding-left: 2.25rem;

  list-style-position: outside;
}

.text ul {
  list-style-type: disc;
}

.text ol {
  list-style-type: decimal;
}

.text li {
  margin-bottom: 10px;

  color: #202124;

  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
}

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


/* ============================================================
   FACEBOOK LIMITS TABLE
============================================================ */

.facebook-limits-table {
  width: 100%;

  margin: 8px 0 17px;

  border-collapse: collapse;

  table-layout: fixed;

  background: #ffffff;

  font-size: 16px;
}

.facebook-limits-table caption {
  margin-bottom: 10px;

  color: #334155;

  text-align: left;

  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.facebook-limits-table th,
.facebook-limits-table td {
  padding: 11px 13px;

  border: 1px solid #d7dce1;

  text-align: left;
  vertical-align: top;

  line-height: 1.5;
}

.facebook-limits-table thead th {
  background: #f1f5f9;

  color: #1e293b;

  font-weight: 700;
}

.facebook-limits-table tbody th {
  width: 48%;

  color: #334155;

  font-weight: 600;
}

.facebook-limits-table tbody td {
  color: #334155;

  font-weight: 400;
}


/* ============================================================
   TABLE NOTE
============================================================ */

.text .facebook-limit-note-text {
  margin-top: 0;

  color: #64748b;

  font-size: 14px;
  line-height: 1.55;
}


/* ============================================================
   LARGE DESKTOP
============================================================ */

@media (min-width: 1200px) {

  .parent-vowel {
    max-width: 1280px;
  }

}


/* ============================================================
   BELOW 1100PX
============================================================ */

@media (max-width: 1100px) {

  .parent-vowel {
    gap: 20px;

    padding-left: 16px;
    padding-right: 16px;
  }

  .fb-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {

  .facebook-post-page {
    padding-top: 86px;
  }

  .parent-vowel {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 20px;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
  }

  .vowel-checker,
  .text,
  .vc-subtitle {
    max-width: 100%;
  }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

  .facebook-post-page {
    padding-top: 82px;
  }

  .parent-vowel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vc-title {
    font-size: 30px;
  }

  .vc-subtitle {
    margin-top: 8px;

    font-size: 16px;
  }

  .vowel-checker {
    padding: 15px;

    border-radius: 14px;
  }

  .fb-top-metrics {
    grid-template-columns: 1fr;
  }

  .fb-primary-metric {
    padding: 15px;

    border-radius: 13px;
  }

  .fb-primary-title {
    font-size: 19px;
  }

  .fb-primary-count {
    font-size: 25px;
  }

  .fb-see-more-number {
    font-size: 23px;
  }

  .fb-see-more-label {
    font-size: 12px;
  }

  .vowel-checker .vc-input {
    min-height: 80px;
    height: 190px;

    padding:
      13px
      13px
      53px;

    font-size: 16px;
  }

  .vc-inline-actions {
    right: 32px;
    bottom: 9px;
  }

  .vc-inline-btn {
    min-width: 67px;

    padding: 8px 10px;
  }

  .fb-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .text {
    padding-top: 26px;
  }

  .text p,
  .text li {
    font-size: 17px;
  }

  .text h2 {
    font-size: 25px;
  }

  .text h3 {
    font-size: 20px;
  }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

  .parent-vowel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .vc-title {
    font-size: 28px;
  }

  .vowel-checker {
    padding: 13px;
  }

  .fb-primary-metric {
    padding: 14px;
  }

  .fb-primary-count {
    font-size: 23px;
  }

  .fb-see-more-number {
    font-size: 22px;
  }

  .fb-secondary-grid {
    grid-template-columns: 1fr;
  }

  .fb-limit-card {
    padding: 12px 13px;
  }

  .facebook-limits-table {
    font-size: 14px;
  }

  .facebook-limits-table th,
  .facebook-limits-table td {
    padding: 9px;
  }

  .vc-info::after {
    width: 230px;
    max-width: 82vw;
  }

}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 360px) {

  .vc-title {
    font-size: 26px;
  }

  .vc-inline-btn {
    min-width: 61px;

    padding-left: 8px;
    padding-right: 8px;
  }

}


/* ============================================================
   MENU BACKGROUND FIX
============================================================ */

#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;
}