/**
 * TradingView Community Hub — Chats (step 1 visual tokens)
 * Source: https://www.tradingview.com/chart/ → right rail → Chats
 * (opens community-hub-dialog, tab = Chats)
 */

@font-face {
  font-family: "EuclidCircularSemibold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/EuclidCircularSemibold-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EuclidCircularSemibold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/EuclidCircularSemibold-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EuclidCircularSemibold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/EuclidCircularSemibold-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "EuclidCircularSemibold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/EuclidCircularSemibold-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "EuclidCircularSemibold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/EuclidCircularSemibold-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  /* Typography — exact TV stack on Community Hub */
  --pl-chat-font: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
  --pl-chat-font-display: "EuclidCircularSemibold", var(--pl-chat-font);

  --pl-chat-fs-panel-title: 14px; /* header "Community" */
  --pl-chat-fs-nav: 16px;
  --pl-chat-fs-empty-title: 18px;
  --pl-chat-fs-empty-body: 16px;
  --pl-chat-fs-btn: 14px;

  /* Surfaces (light hub — as inspected) */
  --pl-chat-bg: #ffffff;
  --pl-chat-bg-muted: #f9f9f9;
  --pl-chat-bg-nav-active: #f2f2f2; /* cold-gray-100 */
  --pl-chat-border: #dbdbdb;
  --pl-chat-divider: #ebebeb;

  /* Text */
  --pl-chat-text: #000000;
  --pl-chat-text-secondary: #787b86;
  --pl-chat-text-muted: #9598a1;

  /* Accents */
  --pl-chat-brand: #2962ff;
  --pl-chat-cta-bg: #222222; /* Log in button fill */
  --pl-chat-cta-fg: #ffffff;
  --pl-chat-danger: #f23645; /* ripe-red-500 */

  /* Cold gray scale (from TV :root) */
  --color-cold-gray-50: #f9f9f9;
  --color-cold-gray-100: #f2f2f2;
  --color-cold-gray-150: #ebebeb;
  --color-cold-gray-200: #dbdbdb;
  --color-cold-gray-250: #c9c9c9;
  --color-cold-gray-300: #b8b8b8;
  --color-cold-gray-400: #9c9c9c;
  --color-cold-gray-450: #8c8c8c;
  --color-cold-gray-500: grey;
  --color-cold-gray-550: #707070;
  --color-cold-gray-600: #636363;
  --color-cold-gray-700: #464646;
  --color-cold-gray-800: #222;
  --color-cold-gray-850: #131313;

  /* Layout */
  --pl-chat-nav-h: 40px;
  --pl-chat-nav-radius: 8px;
  --pl-chat-cta-h: 40px;
  --pl-chat-cta-radius: 8px;
  --pl-chat-icon-28: 28px;
  --pl-chat-empty-illust: 120px;
  --pl-chat-panel-default-width: 50%; /* TV dialog default width on desktop */
}

/* Dark chrome variant for Pinklove chart app (next build step) */
#plChatOverlay,
.pl-chat-theme-dark {
  --pl-chat-bg: #0c0e15;
  --pl-chat-bg-muted: #131722;
  --pl-chat-bg-nav-active: #1e222d;
  --pl-chat-border: #2a2e39;
  --pl-chat-divider: #1e222d;
  --pl-chat-text: #d1d4dc;
  --pl-chat-text-secondary: #9598a1;
  --pl-chat-text-muted: #787b86;
  --pl-chat-cta-bg: #d1d4dc;
  --pl-chat-cta-fg: #131722;
}
