/* =============================================
   Live Consultation Inquiries — Ticker Section
   File: /static/css/live-inquiry.css
   ============================================= */

/* --- Section Layout --- */
.live-inquiry-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* --- Section Header --- */
.live-inquiry-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.live-inquiry-section .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Live Pulse Animation */
.live-pulse {
  position: relative;
  width: 10px;
  height: 10px;
}

.live-pulse::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #e53e3e;
  border-radius: 50%;
  z-index: 2;
}

.live-pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #e53e3e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 1.8s ease-out infinite;
  z-index: 1;
}

@keyframes pulseRing {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }
  100% {
    width: 30px;
    height: 30px;
    opacity: 0;
  }
}

/* Section Title */
.live-inquiry-section .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Inquiry Count */
.live-inquiry-section .inquiry-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.live-inquiry-section .inquiry-count strong {
  color: #D6B36A;
  font-weight: 700;
  font-size: 1rem;
}

/* --- Table Header --- */
.inquiry-table-header {
  display: grid;
  grid-template-columns: 50px 0.8fr 0.8fr 3.5fr 70px;
  padding: 10px 16px;
  background: rgba(214,179,106,0.08);
  border-bottom: 1px solid rgba(214,179,106,0.15);
  border-radius: 8px 8px 0 0;
}

.inquiry-table-header .th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #D6B36A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Ticker Area --- */
.inquiry-ticker-wrap {
  position: relative;
  height: 192px;
  overflow: hidden;
}

/* Bottom Fade Mask */
.inquiry-ticker-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, #0a0b10, transparent);
  pointer-events: none;
  z-index: 3;
}

.inquiry-ticker {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Ticker Row --- */
.ticker-row {
  display: grid;
  grid-template-columns: 50px 0.8fr 0.8fr 3.5fr 70px;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.ticker-row:hover {
  background: rgba(255,255,255,0.03);
}

/* New Row Highlight */
.ticker-row.is-new {
  background: rgba(214,179,106,0.04);
  border-left: 3px solid #D6B36A;
  padding-left: 13px;
}

.ticker-row.is-new .ticker-name {
  color: #D6B36A;
}

/* --- Column Styles --- */
.ticker-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.ticker-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}

.ticker-country {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.ticker-procedure {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

.ticker-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .live-inquiry-section {
    padding: 50px 30px;
  }
}

/* Mobile: 768px 이하 */
@media (max-width: 768px) {
  .live-inquiry-section {
    padding: 20px 16px 40px;
  }

  .live-inquiry-section .section-title {
    font-size: 0.95rem;
  }

  .live-inquiry-section .inquiry-count {
    font-size: 0.75rem;
  }

  .inquiry-table-header {
    grid-template-columns: 40px 1fr 2.5fr;
    padding: 8px 12px;
  }

  /* Country, Time 헤더 숨김 */
  .inquiry-table-header .th:nth-child(3),
  .inquiry-table-header .th:nth-child(5) {
    display: none;
  }

  .inquiry-ticker-wrap {
    height: 168px;
  }

  .ticker-row {
    grid-template-columns: 40px 1fr 2.5fr;
    height: 56px;
    padding: 0 12px;
  }

  /* Country, Time 컬럼 숨김 */
  .ticker-country,
  .ticker-time {
    display: none;
  }

  .ticker-row.is-new {
    padding-left: 9px;
  }

  .ticker-name {
    font-size: 0.82rem;
  }

  .ticker-procedure {
    font-size: 0.75rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .live-inquiry-section {
    padding: 30px 12px;
  }

  .live-inquiry-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
