/* ==========================================================================
   GV Capital · Brand Guidelines
   section-rail.css: მცურავი სექციების რელსი ბრენდის ლოგოთი

   დანიშნულება: მკითხველმა იცოდეს სად არის და შეეძლოს ხტომა.
   თავში განთავსებულია GV Capital-ის ლოგო, შუაში დანაყოფების ზოლი,
   ხოლო ბოლოში: მოძრაობის გლობალური პაუზის ღილაკი.
   ========================================================================== */

.gv-rail {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;

  /* ვიწრო რჩება: ყველაზე გრძელი წარწერა („Applications", 10.5px-ზე 74px)
     + 2×7px padding. ზრდა მხოლოდ ვერტიკალზეა. */
  width: 96px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  padding: 40px 7px 7px;
  border-radius: 26px;
  background: rgba(14, 22, 27, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 40px -10px rgba(8, 16, 20, .65),
              0 2px 8px rgba(0, 0, 0, .25);

  max-height: calc(100svh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  opacity: 1;
  pointer-events: auto;
  transition: opacity 260ms cubic-bezier(.2, .7, .2, 1),
              transform 260ms cubic-bezier(.2, .7, .2, 1);
}

.gv-rail::-webkit-scrollbar {
  display: none;
}

/* პირველ სექციაზე (ყდაზე) და ბოლო ფუტერზე საიდბარი არ ჩანს */
html:not(.past-cover) .gv-rail,
html.is-overview .gv-rail,
html.footer-visible .gv-rail {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-28px);
}

/* --- ბრენდის ლოგო რელსის თავში --- */
.gv-rail-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 18 → 6: სწორედ ეს სივრცე გადადის ნავიგაციის ზომაში */
  width: 100%;
  padding: 4px 0 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  line-height: 0;
  transition: color 200ms cubic-bezier(.2, .7, .2, 1),
              transform 200ms cubic-bezier(.2, .7, .2, 1),
              background 200ms ease;
}

.gv-rail-brand:hover {
  color: var(--mint, #B4D3D5);
  background: rgba(255, 255, 255, .05);
  transform: scale(1.04);
}

.gv-rail-brand[aria-current="true"] {
  color: var(--mint, #B4D3D5);
}

.gv-rail-brand:focus-visible {
  outline: 2px solid var(--mint, #B4D3D5);
  outline-offset: 2px;
}

.gv-rail-brand .logo {
  width: 50px;
}

/* --- გამყოფი ხაზები რელსში --- */
.gv-rail-sep {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(228, 238, 240, .14);
  /* ლოგოსა და ნავიგაციას შორის ~3.5-ჯერ მეტი ჰაერია, ვიდრე პუნქტებს
     შორის (16px): ჯამში ~57px. კონტეინერის gap აქაც მოქმედებს, ამიტომ
     დანარჩენს ეს მარჯინები ამატებენ. */
  margin: 10px 0 14px;
}

/* --- ერთი სექცია: სახელი ზემოთ, ხაზი ქვემოთ --- */
.gv-rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 5px 9px;
  text-decoration: none;
  color: rgba(228, 238, 240, .58);
  cursor: pointer;
  line-height: 1.15;
  transition: color 160ms cubic-bezier(.2, .7, .2, 1);
}

/* სექციის ინგლისური სახელი */
.gv-rail-name {
  display: block;
  text-align: center;
  font-family: var(--font-text-latin, Aktiv, -apple-system, sans-serif);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color 160ms ease, font-weight 160ms ease;
}

/* ჰორიზონტალური ხაზი სახელის ქვეშ */
.gv-rail-tick {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: rgba(228, 238, 240, .28);
  margin-top: 10px;
  transition: width 200ms cubic-bezier(.2, .7, .2, 1),
              background 200ms cubic-bezier(.2, .7, .2, 1),
              height 200ms cubic-bezier(.2, .7, .2, 1);
}

/* Hover მდგომარეობა */
.gv-rail-item:hover .gv-rail-name {
  color: #fff;
}

.gv-rail-item:hover .gv-rail-tick {
  width: 28px;
  background: rgba(228, 238, 240, .8);
}

/* აქტიური სექცია (განიერი თეთრი ხაზი და თეთრი ტექსტი) */
.gv-rail-item[aria-current="true"] .gv-rail-name {
  color: #fff;
  font-weight: 600;
}

.gv-rail-item[aria-current="true"] .gv-rail-tick {
  width: 48px;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .25);
}

.gv-rail-item:focus-visible {
  outline: 2px solid var(--mint, #B4D3D5);
  outline-offset: 1px;
  border-radius: 4px;
}

/* --- მოძრაობის კონტროლი რელსის ბოლოში --- */
.gv-rail-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: rgba(228, 238, 240, .7);
  cursor: pointer;
  border-radius: 19px;
  padding: 0 6px;
  font-family: var(--font-text-latin, Aktiv, -apple-system, sans-serif);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color 180ms cubic-bezier(.2, .7, .2, 1),
              background 180ms cubic-bezier(.2, .7, .2, 1),
              border-color 180ms cubic-bezier(.2, .7, .2, 1);
}

.gv-rail-control-icon {
  font-size: 10px;
  line-height: 1;
}

.gv-rail-control:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .2);
}

.gv-rail-control:focus-visible {
  outline: 2px solid var(--mint, #B4D3D5);
  outline-offset: 2px;
}

.gv-rail-control[aria-pressed="true"] {
  color: var(--mint, #B4D3D5);
  border-color: rgba(180, 211, 213, .35);
  background: rgba(180, 211, 213, .08);
}

/* --- მობილური: მცურავი კომპაქტური ბრენდის ღილაკი --- */
.st-mobile-brand {
  display: none;
}

@media (max-width: 900px) {
  .gv-rail { display: none; }
  .st-mobile-brand {
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(22, 35, 42, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    text-decoration: none;
    transition: opacity 220ms cubic-bezier(.2, .7, .2, 1),
                transform 220ms cubic-bezier(.2, .7, .2, 1);
  }
  .st-mobile-brand .logo {
    width: 60px;
  }
  html:not(.past-cover) .st-mobile-brand,
  html.is-overview .st-mobile-brand {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-rail,
  .gv-rail-brand,
  .gv-rail-tick,
  .gv-rail-item,
  .gv-rail-name,
  .gv-rail-control { transition: none; }
}
