/* -------------------------------------------------------
   EDEX UIРINSPIRED COLOR SCHEME & FONTS
------------------------------------------------------- */
:root {
  --color-r: 170;
  --color-g: 207;
  --color-b: 209;
  --color-foreground: #060606;
  --color-background: #ffffff;
  --color-black: #ffffff;
  --color-light-black: #ffffff;
  --color-grey: #a7b0b9;

  --font-main: 'United Sans Medium', sans-serif;
  --font-main-light: 'United Sans Light', sans-serif;
  --font-terminal: 'Fira Mono', monospace;

  --selection-bg: rgba(170, 207, 209, 0.3);
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-terminal);
  overflow-x: hidden;
  user-select: none;
  cursor: default;
}
::selection {
  background: var(--selection-bg);
}

/* -------------------------------------------------------
   HEADER BAR
------------------------------------------------------- */
header {
  width: 100%;
  padding: 1rem 0;
  /*border-bottom: 1px solid var(--color-grey);*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-left,
.header-right {
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.header-left {
  font-weight: bold;
}
.header-right span {
  gap: 1rem; /* Space between icons */
  margin-left: 1rem;
  margin-right: 1rem;
}

/* -------------------------------------------------------
   MAIN LAYOUT: 3 columns (terminal / center blocks / charts)
------------------------------------------------------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1rem;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ------------------
   LEFT PANEL (Terminal Log)
------------------ */
.panel {
  border: none;
  background-color: var(--color-light-black);
  padding: 0.5rem;
  position: relative;
}
.panel-title {
  font-family: var(--font-main);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid var(--color-grey); */
  padding-bottom: 0.5rem;
}

.panel-title-term {
  font-family: var(--font-main);
  text-transform: uppercase;
}

.panel-title-term-left {
  /* background: url("button48.png") no-repeat top left; */
  padding-top: 15px;   
  padding-left: 15px;  
  margin-bottom: 1rem;
}

.terminal-log {
  font-family: var(--font-terminal);
  font-size: 0.85rem;
  height: 400px;
  overflow-y: auto;
  line-height: 1.4;
  padding-right: 0.5rem;
}
.terminal-line {
  white-space: pre;
  margin-bottom: 0.2rem;
}
/* Optional scrollbar styling */
.terminal-log::-webkit-scrollbar {
  width: 6px;
}
.terminal-log::-webkit-scrollbar-thumb {
  background-color: var(--color-grey);
}

/* ------------------
   CENTER PANEL (Expandable Blocks)
------------------ */
.plain-block {
  border: 1px solid var(--color-foreground);
  background-color: var(--color-light-black);
  padding: 1rem;
  margin-bottom: 1rem;
}

.plain-block-header {
  display: block;
  font-family: var(--font-main);
  font-size: 1.2rem;
  text-transform: uppercase;
  background-color: var(--color-dark);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid var(--color-foreground); */
  /* Remove pointer effect */
  cursor: default;
}
.plain-block ul {
  margin-left: 1.5rem; /* Adds left spacing */
  padding-left: 1rem;  /* Ensures consistent spacing */
}
.plain-block li {
  margin-bottom: 0.5rem; /* Adds spacing between list items */
  line-height: 1.5;      /* Improves readability */
}

.m-block {
  border: none;
  background-color: var(--color-light-black);
  padding: 1rem;
  margin-bottom: 1rem;
}
.m-block-header {
  display: block;
  font-family: var(--font-main);
  font-size: 1.2rem;
  text-transform: uppercase;
  background-color: var(--color-dark);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid var(--color-foreground); */
  /* Remove pointer effect */
  cursor: default;
}
.m-block ul {
  margin-left: 1.5rem; /* Adds left spacing */
  padding-left: 1rem;  /* Ensures consistent spacing */
}
.m-block li {
  margin-bottom: 0.5rem; /* Adds spacing between list items */
  line-height: 1.5;      /* Improves readability */
}
.m-block p {
  margin-left: 1.5rem;   /* Adds left spacing */
  padding-left: 1rem;    /* Ensures consistent spacing */
}

/* Optional line effect on headings */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
  margin-bottom: 1.5rem;
}
.section-menu {
  background-image: url('button.png');
  background-repeat: no-repeat;
  background-position: center; 
  position: relative;
  height: 122px;
  text-align: center;
  line-height: 8rem;
  cursor: pointer;
}
/* .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-foreground);
} */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.block {
  border: 1px solid var(--color-foreground);
  background-color: var(--color-light-black);
  position: relative;
}
.block-header {
  cursor: pointer;
  padding: 0.5rem 1rem;
  /* border-bottom: 1px solid var(--color-grey); */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.block-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.block-toggle {
  font-size: 1.2rem;
  user-select: none;
}
.block-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1rem;
}
.block-content.open {
  padding-bottom: 1rem;
}
.block-content-inner {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.block-content.expanded {
  max-height: 2000px;
}
.block-content.expanded .block-content-inner {
  opacity: 1;
}

/* Sub-blocks for lists etc. */
.sub-block {
  border: 1px dashed var(--color-grey);
  margin: 0.5rem 0;
  padding: 0.3rem 0.5rem;
}
.sub-block-header {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-block-toggle {
  font-size: 1rem;
  user-select: none;
}
.sub-block-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-bottom: 0.5rem;
}
.sub-block-content.expanded {
  max-height: 500px;
}
.sub-block-content p,
.sub-block-content ul {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ------------------
   TOKENOMICS PIE (Charts)
------------------ */
.terminal-block {
  border: none;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  font-family: 'Fira Mono', monospace;
  color: #060606;
}
.terminal-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ------------------
   RIGHT PANEL (Charts)
------------------ */
.chart-panel {
  border: none;
  background-color: var(--color-light-black);
  padding: 0.5rem;
  position: relative;
}
.chart-title {
  font-family: var(--font-main);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-grey);
  padding-bottom: 0.5rem;
}
.chart-title-right {
  /* background: url("button49.png") no-repeat top right; */
  padding-top: 15px;   /* отступ вниз, равный высоте фона или больше */
  padding-right: 15px; /* небольшой отступ вправо */
  margin-bottom: 1rem;
  text-align: right;
  font-weight: normal;
}
/* Each sub-chart gets its own subtitle above the canvas */
.chart-subtitle {
  font-family: var(--font-main);
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0.3rem 0;
  text-align: center;
}
.chart-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chart-wrapper {
  width: 100%;
  height: 240px;
  position: relative;
}
canvas {
  background-color: var(--color-black);
  display: block;
  margin: 0 auto;
  border: none;
  width: 100%;
  height: 100%;
}

/* ------------------
   RIPPLE CLICK EFFECT
------------------ */
.ripple {
  position: fixed;
  border: 2px solid var(--color-foreground);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  animation: ripple-animation 0.7s ease-out forwards;
}
@keyframes ripple-animation {
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--color-grey);
  margin-top: 1rem;
}

footer p {
  font-weight: normal;
}

/* ------------------------
   ROADMAP TABLE / BLOCKS
------------------------ */
.roadmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.roadmap-block {
  border: none;
  padding: 1rem;
}
.roadmap-block h3 {
  margin-bottom: 0.5rem;
}

/* ------------------------
   BLINKING / TEXT
------------------------ */	
.blinking-cursor {
  font-weight: bold;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* The TELADI logo: a circular container with a repeating radial-gradient dotted pattern */
/* Dotted text effect using background-clip */
.teladi-text {
  font-size: 100px;
  font-family: monospace;
  font-weight: bold;
  color: transparent;
  margin-left: 1.5rem; /* Adds left spacing */
  /* Create a dotted pattern with a repeating radial gradient */
  background: radial-gradient(circle, #060606 40%, transparent 25%);
  background-size: 5px 5px;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Common dotted style */
.dotted {
  font-family: monospace;
  background: radial-gradient(circle, #060606 40%, transparent 25%);
  color: transparent;
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
}

/* X icon style */
.icon-x {
  font-size: 35px;
  font-weight: bold;
}
@font-face {
  font-family: 'Symbola';
  src: url('/fonts/Symbola.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* TG icon style */	
.icon-t {
  font-family: 'Symbola'; 
  font-size: 35px;
  font-weight: bold;
}

/* styles.css */
/* CSS for the terminal container */
#aiTerminal {
  width: 100%;            /* Fluid width С adjust if needed */
  height: 300px;          /* Fixed height */
  border: none;           /* Optional border for visibility */
  box-sizing: border-box; /* Include padding in the width calculation */
  padding: 10px;          /* Remove padding to let xterm calculate columns properly */
  margin: 20px 0;         /* Vertical margin so content below isnХt overlapped */
  overflow: hidden;       /* Hide any overflow */
}

/* Remove xterm.js built-in scroll bar */
.xterm-viewport {
  overflow-y: hidden !important; /* Disable vertical scrolling */
  scrollbar-width: none;         /* For Firefox */
}
.xterm-viewport::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, Edge */
}
