/* ============================================================
   RailsLog — Shared Base Styles
   Loaded first; page-specific overrides in component CSS
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #2f4356 !important;
  min-height: 100vh;
}

body {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
  background-color: #f0f2f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #2f4356;
  z-index: -1;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(135deg, #1b2a38 0%, #2f4356 50%, #1b2a38 100%);
  color: #fff;
  padding: 8px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-content h1 {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.main-content {
  flex: 1;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.yellowbar {
  height: 2px;
  background: linear-gradient(90deg, #f0c040, #e8a020, #f0c040);
  margin: 6px 0;
  border-radius: 2px;
}

.affiliation-icon-container {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}

.affiliation-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.nation-flag {
  width: 22px;
  height: 15px;
  margin-right: 6px;
  vertical-align: middle;
}

.nation-container {
  display: inline-flex;
  align-items: center;
}

.footer-telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-telegram-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.back-link {
  display: inline-block;
  color: #2f4356;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 15px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #4a6a8a;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
}

.empty-state p {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 15px;
}

.error-container {
  text-align: center;
  padding: 60px 20px;
}

.error-container h2 {
  color: #1f3040;
  font-family: 'Noto Serif SC', serif;
  margin-bottom: 10px;
}

.error-container p {
  color: #6c757d;
  margin-bottom: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2f4356;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

footer {
  background: #1b2a38;
  color: #8899aa;
  text-align: center;
  padding: 8px;
  margin-top: 0;
  font-size: 0.78rem;
}

.footer-content a {
  color: #f0c040;
  text-decoration: none;
}
