/* TALAVISTA TAC proqramı — obyekt adının yanında qızılı tac ikonu və məlumat pəncərəsi (tv-tac.js). */
.tv-tac {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 0 0 6px;
  padding: 0;
  vertical-align: -3px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(145deg, #fff6d8 0%, #f3dd95 100%);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45), 0 3px 8px rgba(138, 109, 18, 0.25);
  color: #8a6d12;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tv-tac svg {
  width: 15px;
  height: 15px;
  fill: #c9a227;
  stroke: #8a6d12;
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.tv-tac svg .tv-tac-base {
  fill: none;
  stroke: #8a6d12;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tv-tac:hover,
.tv-tac[aria-expanded="true"] {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.7), 0 5px 14px rgba(138, 109, 18, 0.32);
}

.tv-tac:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

/* Böyük başlıqda (obyekt səhifəsi) bir az iri */
h1 .tv-tac {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  vertical-align: 2px;
  border-radius: 9px;
}

h1 .tv-tac svg {
  width: 19px;
  height: 19px;
}

/* Mobil: toxunma sahəsi ən azı 32 px (görünən ölçü kiçik qalır) */
@media (pointer: coarse) {
  .tv-tac {
    position: relative;
  }

  .tv-tac::after {
    content: "";
    position: absolute;
    inset: -6px;
  }
}

.tv-tac-tip {
  position: fixed;
  z-index: 10000;
  display: flex;
  gap: 12px;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  padding: 14px 16px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 16px;
  background: linear-gradient(160deg, #1c1033 0%, #2a1652 100%);
  color: #f4eedd;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 18px 44px rgba(28, 16, 51, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: auto;
}

.tv-tac-tip[hidden] {
  display: none;
}

.tv-tac-tip.is-open {
  opacity: 1;
  transform: none;
}

.tv-tac-tip::after {
  content: "";
  position: absolute;
  left: var(--tac-arrow, 50%);
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-right: 1px solid rgba(201, 162, 39, 0.55);
  border-bottom: 1px solid rgba(201, 162, 39, 0.55);
  background: #2a1652;
  transform: rotate(45deg);
}

.tv-tac-tip.is-below::after {
  top: -6px;
  bottom: auto;
  border: 0;
  border-left: 1px solid rgba(201, 162, 39, 0.55);
  border-top: 1px solid rgba(201, 162, 39, 0.55);
  background: #1c1033;
}

.tv-tac-tip-icon {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff6d8 0%, #e3c76a 100%);
}

.tv-tac-tip-icon svg {
  width: 20px;
  height: 20px;
  fill: #c9a227;
  stroke: #8a6d12;
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.tv-tac-tip-icon svg .tv-tac-base {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tv-tac-tip b {
  display: block;
  margin-bottom: 4px;
  color: #e3c76a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.tv-tac-tip p {
  margin: 0;
  color: rgba(244, 238, 221, 0.92);
}

/* Ulduz: 32% komissiya, reytinq 7,5–9 (TAC statusu yox) — tacdan fərqli, sakit bənövşəyi-gümüşü */
.tv-tac--star {
  background: linear-gradient(145deg, #f4f0fb 0%, #e3dbf3 100%);
  box-shadow: 0 0 0 1px rgba(107, 59, 145, 0.35), 0 3px 8px rgba(69, 32, 128, 0.18);
  color: #6b3b91;
}

.tv-tac--star svg {
  fill: #8f6cc4;
  stroke: #4f2a86;
}

.tv-tac--star:hover,
.tv-tac--star[aria-expanded="true"] {
  box-shadow: 0 0 0 1px rgba(107, 59, 145, 0.6), 0 5px 14px rgba(69, 32, 128, 0.28);
}

.tv-tac--star:focus-visible {
  outline-color: #6b3b91;
}

.tv-tac-tip.is-star .tv-tac-tip-icon {
  background: linear-gradient(145deg, #f4f0fb 0%, #c9b3ea 100%);
}

.tv-tac-tip.is-star .tv-tac-tip-icon svg {
  fill: #8f6cc4;
  stroke: #4f2a86;
}

/* "Görünən ol" (TALAVISTA Privilege) — göz ikonu: firuzəyi, tac / ulduzla yan-yana */
.tv-tac--eye {
  background: linear-gradient(145deg, #e8fbf7 0%, #c9f1e8 100%);
  box-shadow: 0 0 0 1px rgba(13, 128, 110, 0.35), 0 3px 8px rgba(13, 110, 96, 0.2);
  color: #0d7a69;
}

.tv-tac--eye svg {
  fill: none;
  stroke: #0b6b5c;
  stroke-width: 2;
}

.tv-tac--eye svg .tv-tac-pupil {
  fill: #11a38c;
  stroke: none;
}

.tv-tac--eye:hover,
.tv-tac--eye[aria-expanded="true"] {
  box-shadow: 0 0 0 1px rgba(13, 128, 110, 0.6), 0 5px 14px rgba(13, 110, 96, 0.3);
}

.tv-tac--eye:focus-visible {
  outline-color: #0d7a69;
}

.tv-tac + .tv-tac {
  margin-left: 4px;
}

.tv-tac-tip.is-eye .tv-tac-tip-icon svg {
  fill: none;
  stroke: #0b6b5c;
  stroke-width: 2;
}

.tv-tac-tip.is-eye .tv-tac-tip-icon svg .tv-tac-pupil {
  fill: #11a38c;
  stroke: none;
}
.tv-tac-tip.is-eye .tv-tac-tip-icon {
  background: linear-gradient(145deg, #e8fbf7 0%, #9fe3d4 100%);
  box-shadow: 0 0 0 1px rgba(13, 128, 110, 0.35);
}
