/*--------------------------------------------------------------
# Εικονικός πομποδέκτης (PTT): γυάλινο σχέδιο
--------------------------------------------------------------*/
.ptt {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99998;
  font-family: "Poppins", "Open Sans", sans-serif;
}

/* Κλειστό κουμπί */
.ptt-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(20, 34, 14, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #9cf05c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(116, 224, 45, 0.18);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.ptt-toggle:hover,
.ptt-toggle:focus {
  background: rgba(36, 60, 22, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(116, 224, 45, 0.4);
  outline: none;
}

.ptt.is-open .ptt-toggle {
  display: none;
}

/* Γυάλινο panel */
.ptt-panel {
  position: relative;
  width: 300px;
  max-width: calc(100vw - 30px);
  box-sizing: border-box;
  padding: 18px 22px 16px;
  border-radius: 30px;
  background: rgba(16, 26, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #f4f8f0;
  text-align: center;
  overflow: hidden;
}

.ptt-panel::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 224, 45, 0.28), rgba(116, 224, 45, 0) 70%);
  pointer-events: none;
}

.ptt-panel > * {
  position: relative;
}

.ptt-panel[hidden] {
  display: none;
}

.ptt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ptt-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ptt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #74e02d;
  box-shadow: 0 0 8px #74e02d;
}

.ptt-close {
  width: 44px;
  height: 44px;
  margin: -10px -12px -10px 0;
  border: 0;
  background: transparent;
  color: #d7dfd0;
  cursor: pointer;
}

.ptt-close:hover,
.ptt-close:focus {
  color: #fff;
}

/* Ποιος μιλάει */
.ptt-display {
  margin-top: 14px;
}

.ptt-caption {
  font-size: 11px;
  color: #b9c8ae;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ptt-who {
  min-height: 42px;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ptt.is-busy .ptt-who {
  color: #9cf05c;
}

.ptt.is-tx .ptt-who {
  color: #ff7a6e;
  font-size: 22px;
}

/* Κυματομορφή / S-meter */
.ptt-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 50px;
  margin-top: 6px;
}

.ptt-meter span {
  width: 6px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.08s;
}

.ptt-meter span:nth-child(1), .ptt-meter span:nth-child(8) { height: 16px; }
.ptt-meter span:nth-child(2), .ptt-meter span:nth-child(7) { height: 28px; }
.ptt-meter span:nth-child(3), .ptt-meter span:nth-child(6) { height: 40px; }
.ptt-meter span:nth-child(4), .ptt-meter span:nth-child(5) { height: 50px; }

.ptt-meter span.on {
  background: #74e02d;
  box-shadow: 0 0 8px rgba(116, 224, 45, 0.6);
}

.ptt.is-tx .ptt-meter span.on {
  background: #ff7a6e;
  box-shadow: 0 0 8px rgba(255, 122, 110, 0.6);
}

/* Callsign */
.ptt-label {
  display: block;
  margin: 12px 0 5px;
  text-align: left;
  font-size: 12px;
  color: #b9c8ae;
}

.ptt-callsign {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ptt-callsign::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ptt-callsign:focus {
  outline: 2px solid #74e02d;
  border-color: #74e02d;
}

/* PTT με δακτύλιο χρόνου εκπομπής (60 δευτ.) */
.ptt-ringwrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 14px auto 0;
}

.ptt-ring {
  position: absolute;
  left: 0;
  top: 0;
}

.ptt-ring-bg,
.ptt-ring-fg {
  fill: none;
  stroke-width: 4;
}

.ptt-ring-bg {
  stroke: rgba(255, 255, 255, 0.18);
}

.ptt-ring-fg {
  stroke: #74e02d;
  stroke-linecap: round;
  stroke-dasharray: 390;
  stroke-dashoffset: 0;
}

.ptt.is-tx .ptt-ring-fg {
  stroke: #ff7a6e;
  animation: ptt-countdown 60s linear forwards;
}

@keyframes ptt-countdown {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 390; }
}

.ptt-btn {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 104px;
  height: 104px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #8be84a, #4a9a18);
  box-shadow: 0 10px 28px rgba(116, 224, 45, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  color: #0c1f03;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.ptt-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ptt-btn:disabled {
  background: #4b5646;
  box-shadow: none;
  color: #9aa592;
  cursor: not-allowed;
}

.ptt.is-tx .ptt-btn {
  background: linear-gradient(160deg, #ff8f84, #d9372b);
  box-shadow: 0 10px 28px rgba(255, 122, 110, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
}

.ptt-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #d7dfd0;
}

.ptt-foot {
  margin-top: 4px;
  font-size: 12px;
  color: #b9c8ae;
}

.ptt-foot small {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #a2b196;
}

.ptt-foot a {
  color: #9cf05c;
}

@media (max-width: 575px) {
  .ptt {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptt.is-tx .ptt-ring-fg {
    animation-duration: 60s;
  }
}
