/* XeHello - Calling & Group Call Stage Stylesheet */

.xe-call-stage-overlay {
  position: fixed;
  inset: 0;
  background: #0b141a;
  z-index: 10001;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  animation: xeFadeIn 0.25s ease-out;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.xe-call-stage-overlay.pip-mode {
  inset: auto 20px 20px auto;
  width: 320px;
  height: 240px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
}
.xe-call-stage-overlay.pip-mode .xe-call-stage-card {
  padding: 8px;
}
.xe-call-stage-overlay.pip-mode .xe-call-group-title {
  font-size: 14px;
}
.xe-call-stage-overlay.pip-mode .xe-call-controls-bar {
  gap: 8px;
  padding-bottom: 4px;
}
.xe-call-stage-overlay.pip-mode .xe-call-ctl-btn {
  width: 38px;
  height: 38px;
}
.xe-call-stage-overlay.pip-mode .xe-call-ctl-btn svg {
  width: 16px;
  height: 16px;
}

.xe-call-icon-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.xe-call-icon-btn:hover {
  background: rgba(255,255,255,0.2);
}

.xe-call-stage-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

.xe-call-stage-header {
  text-align: center;
  color: #fff;
  margin-top: 10px;
}
.xe-call-group-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.xe-call-timer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.xe-group-video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  overflow-y: auto;
}

.xe-group-call-tile {
  position: relative;
  background: #1f2c34;
  border-radius: 16px;
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.xe-group-call-tile.xe-active-speaker {
  border-color: #25d366;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.5);
  animation: xeSpeakerPulse 1.5s infinite alternate;
}

@keyframes xeSpeakerPulse {
  0% { box-shadow: 0 0 14px rgba(37, 211, 102, 0.4); }
  100% { box-shadow: 0 0 28px rgba(37, 211, 102, 0.8); }
}

.xe-group-call-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xe-group-call-tile.local video {
  transform: scaleX(-1);
}

.xe-tile-name {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.xe-call-controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
}

.xe-call-ctl-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.xe-call-ctl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.xe-call-ctl-btn.active {
  background: #e53935;
}

.xe-call-ctl-btn.xe-end-btn {
  background: #ea0038;
  width: 62px;
  height: 62px;
}
.xe-call-ctl-btn.xe-end-btn:hover {
  background: #c50030;
}
