/* 글로벌 티커 스타일 */
.global-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  color: #495057;
  z-index: 1000;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ticker-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: fit-content;
  width: 100%;
}

.ticker-link {
  color: #495057;
  text-decoration: none;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  transition: all 0.2s ease;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-link:hover {
  color: #212529;
  background-color: rgba(0, 0, 0, 0.05);
}

.ticker-link.active {
  font-weight: bold;
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
}

.ticker-separator {
  color: #6c757d;
  margin: 0 4px;
  font-size: 12px;
  flex-shrink: 0;
}

/* 티커가 있을 때 메인 콘텐츠 여백 조정 */
body.has-ticker {
  padding-top: 30px;
}

body.has-ticker .container {
  margin-top: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .global-ticker {
    overflow-x: auto;
  }
  
  .ticker-links {
    padding: 0 12px;
  }
  
  .ticker-link {
    padding: 0 8px;
    font-size: 12px;
    min-width: 44px; /* 모바일 터치 타겟 최소 크기 */
    text-align: center;
  }
  
  .ticker-separator {
    margin: 0 2px;
  }
}

/* 스크롤바 스타일링 (webkit 브라우저) */
.global-ticker::-webkit-scrollbar {
  height: 2px;
}

.global-ticker::-webkit-scrollbar-track {
  background: #e9ecef;
}

.global-ticker::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 1px;
}

.global-ticker::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}

/* iframe에서 사용될 때의 스타일 */
.ticker-iframe-mode {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.ticker-iframe-mode body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}