/* ============================================
   글-Bridge 공통 스타일시트
   모든 페이지에서 공유하는 CSS
   ============================================ */

/* === 기본 리셋 & 레이아웃 === */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Pretendard, Apple SD Gothic Neo, Noto Sans KR, sans-serif;
  line-height: 1.65;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding: 48px 24px;
}

/* === 헤더 & 네비게이션 === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #6b7280;
  font-weight: 600;
}

.nav-links a:hover {
  color: #111827;
}

.logo-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* === 인증 UI === */
.auth-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn, .logout-btn {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.login-btn:hover, .logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.user-info {
  color: #4c1d95;
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.logged-in {
  background: rgba(139, 92, 246, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
}

/* === 세션 타이머 === */
.session-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(139, 92, 246, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4c1d95;
  margin-right: 4px;
}

.session-timer.warning {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timer-icon {
  font-size: 14px;
}

