/* Public/User layout */
.app-header {
  background: white; border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.header-brand a { font-size: 18px; font-weight: 700; color: var(--gray-900); text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--gray-600); font-size: 14px; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); text-decoration: none; }
.nav-preview { background: var(--primary); color: white !important; padding: 6px 14px; border-radius: 20px; font-weight: 600; }
.nav-preview:hover { background: var(--primary-hover); color: white !important; }
.user-greeting { font-size: 14px; color: var(--gray-500); }

.main-content { max-width: 1000px; margin: 0 auto; padding: 24px; min-height: calc(100vh - 120px); }
.app-footer { text-align: center; padding: 16px; color: var(--gray-400); font-size: 12px; border-top: 1px solid var(--gray-200); }

/* Auth pages - ロボスタディオン風 */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 120px); }
.auth-card {
  background: white; border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 153, 204, 0.15);
  padding: 40px; width: 100%; max-width: 420px;
  border-top: 4px solid var(--primary);
}
.auth-card h2 {
  margin-bottom: 24px; text-align: center; color: var(--primary);
  font-size: 22px; letter-spacing: 1px;
}
.auth-card .site-logo {
  text-align: center; margin-bottom: 20px; font-size: 28px; font-weight: 900;
  color: var(--primary); letter-spacing: 2px;
}
.auth-card .site-logo .star { color: #00ccff; }
.auth-links { margin-top: 16px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.auth-links a { font-size: 13px; color: var(--gray-500); }

/* Content pages */
.content-container { max-width: 800px; margin: 0 auto; }
.content-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.terms-content h3 { margin: 20px 0 8px; color: var(--gray-800); }
.terms-content ul { padding-left: 20px; }
.terms-content li { margin-bottom: 6px; }

/* User dashboard */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dashboard-header h2 { font-size: 22px; }

/* Notification bell */
.notification-bell { position: relative; cursor: pointer; }
.notification-bell .bell-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: white; border-radius: 10px;
  min-width: 18px; height: 18px; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Upload preview */
.preview-container {
  width: 180px; aspect-ratio: 9/16; background: var(--gray-900); border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.preview-container img, .preview-container video { width: 100%; height: 100%; object-fit: contain; }

/* Responsive */
@media (max-width: 640px) {
  .main-content { padding: 16px; }
  .auth-card { padding: 24px; margin: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
