/* SessionForge.io - Enhanced Design System */

:root {
  /* Primary Colors - Vibrant Purple */
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --primary-darker: #6d28d9;

  /* Accent Colors for Visual Interest */
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  /* Semantic Colors */
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Background Layers */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --bg-hover: #293548;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Borders */
  --border: #334155;
  --border-light: #475569;

  /* Shadows for Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.5), 0 3px 7px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6), 0 4px 10px -2px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px -4px rgba(0, 0, 0, 0.7), 0 10px 20px -3px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  --gradient-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);

  /* Animation Timing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ====================
   KEYFRAME ANIMATIONS
   ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ====================
   NAVIGATION
   ==================== */

.navbar {
  background: var(--bg-darker);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.admin-link {
  color: var(--error) !important;
  font-weight: 600;
}

.admin-link:hover {
  color: #fca5a5 !important;
}

.user-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

/* Animated hamburger to X */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
}

/* ====================
   HERO SECTION
   ==================== */

.hero {
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  animation: slideInFromBottom 0.8s ease-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
  letter-spacing: -0.02em;
  animation: scaleIn 0.6s ease-out 0.2s both;
}

.lead {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  position: relative;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  position: relative;
}

.feature-card {
  background: var(--bg-card);
  background-image: var(--gradient-card);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out calc(0.6s + var(--delay, 0s)) both;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: left 0.6s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card:nth-child(1) { --delay: 0s; }
.feature-card:nth-child(2) { --delay: 0.1s; }
.feature-card:nth-child(3) { --delay: 0.2s; }
.feature-card:nth-child(4) { --delay: 0.3s; }

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.cta {
  margin-top: 4rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.8s both;
}

/* ====================
   BUTTONS (Enhanced with Micro-interactions)
   ==================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow), 0 0 0 rgba(139, 92, 246, 0.3);
  transition: all var(--transition-base), box-shadow var(--transition-slow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.625rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

/* Auth Pages */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.auth-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 450px;
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ====================
   STANDARDIZED FORM STYLES
   ==================== */

/* Form Containers */
.auth-form,
.standard-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group small {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Standard Inputs - Text, Email, Password, Date, Time, Number, URL, Tel */
.form-input,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="search"] {
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), var(--shadow-md);
  transform: translateY(-1px);
}

.form-input:disabled,
.form-group input:disabled {
  background: var(--bg-darker);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Textareas */
.form-textarea,
.form-group textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), var(--shadow-md);
  transform: translateY(-1px);
}

/* Select Dropdowns */
.form-select,
.form-group select {
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.3s;
}

.form-select:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), var(--shadow-md);
  transform: translateY(-1px);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-actions button,
.form-actions .btn {
  flex-shrink: 0;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* OAuth Buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: white;
  color: #1f2937;
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn-oauth:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.btn-google {
  background: white;
}

.btn-apple {
  background: #000;
  color: white;
  border-color: #000;
}

.btn-apple:hover {
  background: #1a1a1a;
  color: white;
}

.oauth-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: #6ee7b7;
}

/* Dashboard */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.dashboard-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.empty-state {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.profile-details {
  display: grid;
  gap: 0.75rem;
}

.profile-details dt {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.profile-details dd {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-admin {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.badge-mod {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.badge-user {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.quick-actions {
  margin-top: 3rem;
}

.quick-actions h2 {
  margin-bottom: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Settings Page */
.settings-form-card {
  display: flex;
  flex-direction: column;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

/* Settings forms now use standard form styles defined above */

.feature-card .profile-details {
  text-align: left;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
  color: var(--text-secondary);
}

.version {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Admin Panel Styles */
.admin-search {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.search-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-select {
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.users-table-container {
  background: var(--bg-card);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 2rem 0;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead {
  background: var(--bg-darker);
}

.users-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.users-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.users-table tbody tr:hover {
  background: var(--bg-darker);
}

.users-table tbody tr:last-child td {
  border-bottom: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-small.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
}

.btn-small.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.status-suspended {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* User Detail Page */
.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item strong {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.info-item span {
  color: var(--text-primary);
  font-size: 1rem;
}

.info-message {
  color: var(--text-secondary);
  font-style: italic;
  margin: 1rem 0;
}

/* Admin Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

/* Admin forms now use standard form styles defined above */

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Moderation History */
.moderation-history {
  margin: 3rem 0;
}

.moderation-history h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Moderation Logs Page */
.link-primary {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.link-primary:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.action-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.action-suspend {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.action-activate {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.action-role_change {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.action-delete {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.ip-address {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.log-info {
  text-align: center;
  margin: 2rem 0;
}

.log-info .info-message {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Board & Post Styles */
.post-detail {
  max-width: 900px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
}

.breadcrumb {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.breadcrumb:hover {
  color: var(--primary);
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
}

.post-title-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-meta-bar {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-author {
  color: var(--text-primary);
}

.badge-edited {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.post-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.post-actions .btn,
.post-actions button,
.post-actions .inline-form {
  margin: 0;
}

.post-actions .btn {
  white-space: nowrap;
}

/* Replies Section */
.replies-section {
  margin-top: 2rem;
}

.replies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.replies-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-controls label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg-darker);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

.sort-select:hover {
  border-color: var(--primary);
}

.reply-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.reply-form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Reply forms now use standard form styles defined above */

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.3s;
  margin-bottom: 1rem;
}

.reply-card:hover {
  border-color: var(--primary);
}

.reply-card.deleted {
  opacity: 0.6;
  background: var(--bg-darker);
}

/* Nested reply styling - VERY OBVIOUS threading like Reddit */
.reply-card[data-reply-depth="0"] {
  margin-left: 0;
  background: var(--bg-card);
}

/* Nested replies get THICK colored border + background shift */
.reply-card[data-reply-depth="1"] {
  border: 1px solid var(--border) !important;
  border-left: 6px solid var(--primary) !important;
  background: rgba(139, 92, 246, 0.05) !important;
  padding-left: 1.25rem;
}

.reply-card[data-reply-depth="2"] {
  border: 1px solid var(--border) !important;
  border-left: 6px solid var(--accent) !important;
  background: rgba(56, 189, 248, 0.05) !important;
  padding-left: 1.25rem;
}

.reply-card[data-reply-depth="3"] {
  border: 1px solid var(--border) !important;
  border-left: 6px solid var(--success) !important;
  background: rgba(34, 197, 94, 0.05) !important;
  padding-left: 1.25rem;
}

/* Adjust nested reply spacing */
.reply-card[data-reply-depth]:not([data-reply-depth="0"]) {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 1rem;
}

/* Hover effect to highlight the thread */
.reply-card[data-reply-depth]:not([data-reply-depth="0"]):hover {
  border-left-width: 8px !important;
  transform: translateX(3px);
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Thread indicator for nested replies */
.thread-indicator {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 0.25rem;
  display: inline-block;
  font-weight: 500;
}

.thread-icon {
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.25rem;
}

.reply-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.reply-author {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.reply-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.reply-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.reply-content.deleted {
  color: var(--text-secondary);
  font-style: italic;
}

.reply-actions {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  align-items: center;
}

.reply-actions .btn-link,
.reply-actions button,
.reply-actions .inline-form {
  margin: 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.btn-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.text-danger {
  color: var(--error) !important;
}

.text-danger:hover {
  color: #dc2626 !important;
}

.auth-prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.auth-prompt-card a {
  color: var(--primary);
  text-decoration: none;
}

.auth-prompt-card a:hover {
  text-decoration: underline;
}

.empty-state-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Board List */
.boards-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.board-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.board-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.board-card-header h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.board-card-header h3 a:hover {
  color: var(--primary);
}

.board-description {
  color: var(--text-secondary);
  margin: 1rem 0;
  line-height: 1.6;
}

.board-card-meta {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.board-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Posts List on Board */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.post-card:hover {
  border-color: var(--primary);
}

.post-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-card-header h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-card-header h3 a:hover {
  color: var(--primary);
}

.post-meta-inline {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.meta-author {
  color: var(--text-primary);
}

.meta-date {
  color: var(--text-secondary);
}

.post-preview {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1rem 0;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-stats {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  /* Phase 4: Typography Optimization */
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero .lead {
    font-size: 1rem;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  .navbar .container {
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 60px; /* Height of navbar */
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: max-height 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border 0.3s ease-in-out;
  }

  .nav-links.active {
    max-height: 500px; /* Enough for all links */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
  }

  .nav-links a,
  .nav-links .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    border-radius: 0;
    display: block;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child,
  .nav-links .btn:last-child {
    border-bottom: none;
  }

  .user-email {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
  }

  /* Touch Targets - Minimum 44x44px for accessibility */
  .btn,
  a.btn,
  button {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1rem;
  }

  /* Form Inputs - Prevent iOS auto-zoom and ensure touch-friendly */
  input,
  textarea,
  select,
  .form-input,
  .form-textarea,
  .form-select {
    min-height: 44px;
    font-size: 16px !important; /* Prevents zoom on iOS when < 16px */
  }

  /* Spacing for Action Buttons */
  .card-actions,
  .list-item-actions,
  .form-actions {
    gap: 0.75rem;
  }

  /* Increase clickable area for links */
  .breadcrumbs a {
    padding: 0.5rem 0;
  }

  .cta {
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .filter-select {
    width: 100%;
  }

  /* Responsive Tables */
  .users-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative;
  }

  .users-table {
    min-width: 600px; /* Prevent table from squishing */
    font-size: 0.875rem; /* Slightly smaller text on mobile */
  }

  .users-table th,
  .users-table td {
    padding: 0.75rem 0.5rem; /* Reduce horizontal padding */
  }

  /* Scroll indicator hint */
  .users-table-container::after {
    content: '← Swipe to see more →';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: var(--bg-darker);
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    display: block;
  }

  .user-info-grid {
    grid-template-columns: 1fr;
  }

  .post-content-card {
    padding: 1.25rem;
  }

  .post-title-section h1 {
    font-size: 1.5rem;
  }

  .reply-card {
    padding: 1rem;
  }

  .post-meta-bar,
  .board-card-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Utility Classes */
.inline-form {
  display: inline;
}

.margin-top {
  margin-top: 1rem;
}

.flag-count-highlight {
  font-weight: bold;
  color: #e53e3e;
}

.flag-count-normal {
  font-weight: bold;
  color: #666;
}

.flag-list {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.flag-meta {
  color: #666;
  font-size: 0.9em;
}

/* Flagged Posts Specific Styles */
.badge-pending {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.badge-resolved {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-dismissed {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

/* Game Status Badges */
.badge-open {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-full {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.badge-started {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.badge-on_pause {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.badge-system {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

/* RSVP and Status Badges */
.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-maybe {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.badge-muted {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.badge-attending {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-not_attending {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Session Management Styles */
.sessions-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.session-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s;
}

.session-card:hover {
  border-color: var(--primary);
}

.session-card.past {
  opacity: 0.7;
  background: var(--bg-darker);
}

.session-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.session-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.session-card h3 a:hover {
  color: var(--primary);
}

.session-card p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.session-card p strong {
  color: var(--text-primary);
}

/* Session Detail Page */
.session-details {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.detail-group {
  margin-bottom: 1rem;
}

.detail-group:last-child {
  margin-bottom: 0;
}

.detail-group strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.detail-group p {
  margin: 0;
  color: var(--text-secondary);
}

/* RSVP Summary */
.rsvp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.rsvp-stat {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px solid;
}

.rsvp-stat.attending {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.rsvp-stat.maybe {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.rsvp-stat.not-attending {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.rsvp-stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.rsvp-stat span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* User RSVP Card */
.user-rsvp {
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
}

.user-rsvp p {
  margin: 0.5rem 0;
  color: var(--text-primary);
}

/* RSVP Form */
.rsvp-form {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

/* RSVP Lists */
.rsvp-list {
  margin: 1.5rem 0;
}

.rsvp-list h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.rsvp-list ul {
  list-style: none;
  padding: 0;
}

.rsvp-list li {
  background: var(--bg-card);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.rsvp-list li strong {
  color: var(--text-primary);
}

.rsvp-list li small {
  color: var(--text-secondary);
}

/* Game Show Page Specific */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.game-title-section {
  flex: 1;
}

.game-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.game-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.game-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.player-list {
  list-style: none;
  padding: 0;
}

.player-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-darker);
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.player-info {
  color: var(--text-primary);
}

.player-info .username {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.player-actions {
  display: flex;
  gap: 0.5rem;
}

.slots-available {
  color: var(--success);
  font-weight: 500;
  margin-top: 1rem;
}

.slots-full {
  color: var(--error);
  font-weight: 500;
  margin-top: 1rem;
}

.board-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.board-post-item {
  padding: 0.75rem;
  background: var(--bg-darker);
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.board-post-item a {
  color: var(--text-primary);
  text-decoration: none;
}

.board-post-item a:hover {
  color: var(--primary);
}

.post-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Button Variants */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ====================
   UNIFIED UX COMPONENTS
   Added: 2025-10-17 for UX consistency
   ==================== */

/* Spacing System */
:root {
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Page Wrapper - Unified container for all pages */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* Page Header Component - Consistent header for all pages */
.page-header {
  margin-bottom: var(--space-2xl);
}

.page-header-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.page-header-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Breadcrumb Navigation */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs-separator {
  color: var(--border);
}

.breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ====================
   UNIFIED CARD SYSTEM (Enhanced)
   ==================== */

.card {
  background: var(--bg-card);
  background-image: linear-gradient(145deg, rgba(139, 92, 246, 0.03) 0%, rgba(236, 72, 153, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: var(--space-lg);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.15);
}

.card-hover:hover::after {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.card-title a:hover {
  color: var(--primary);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.card-body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.card-meta {
  display: flex;
  gap: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* Card Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Unified Empty State */
.empty-state-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-xl) 0;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state-message {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.empty-state-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-darker) 25%, var(--bg-card) 50%, var(--bg-darker) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.25rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  min-width: 300px;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
  z-index: 1000;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--error);
}

.toast-info {
  border-left: 4px solid var(--primary);
}

/* Section Dividers */
.section {
  margin: var(--space-2xl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* List Styles */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
}

.list-item:hover {
  border-color: var(--primary);
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.list-item-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.list-item-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-indicator.available {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-indicator.joined {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
}

.status-indicator.full {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Standardized Button Sizes (deprecate .btn-small, use .btn-sm) */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* .btn-sm already defined above */

/* Responsive Grid Utilities */
@media (max-width: 768px) {
  .page-header-title {
    font-size: 1.75rem;
  }

  .page-header-subtitle {
    font-size: 0.95rem;
  }

  .card-title {
    font-size: 1.125rem;
  }

  /* Breadcrumb Optimization */
  .breadcrumbs {
    font-size: 0.875rem;
    flex-wrap: wrap;
  }

  .breadcrumbs a {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Content Padding */
  .page-wrapper {
    padding: var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }

  .card-body {
    padding: 0;
  }

  /* Phase 5: Form Polish */
  textarea,
  .form-textarea {
    min-height: 100px;
    max-height: 300px;
  }

  /* Custom select dropdown arrow */
  select,
  .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f1f5f9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    bottom: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
    min-width: auto;
  }
}

/* ====================
   BOARDS UX ENHANCEMENTS
   Phase 1: Core Readability
   Added: 2025-10-17
   ==================== */

/* Board Index - Enhanced Cards */
.boards-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.board-card-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.board-card-enhanced:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.board-card-main {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  align-items: flex-start;
}

.board-icon-large {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.board-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.board-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.board-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.board-title a:hover {
  color: var(--primary);
}

.board-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.board-last-post {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.last-post-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.last-post-title {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.last-post-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.last-post-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.last-post-meta strong {
  color: var(--text-primary);
  font-weight: 500;
}

.board-stats {
  display: flex;
  gap: 2rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  align-items: center;
  flex-shrink: 0;
}

.stat-item {
  text-align: center;
  min-width: 60px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Responsive adjustments for boards */
@media (max-width: 768px) {
  .board-card-enhanced {
    flex-direction: column;
    gap: 1rem;
  }

  .board-card-main {
    flex-direction: column;
    gap: 0.75rem;
  }

  .board-icon-large {
    font-size: 2rem;
  }

  .board-title {
    font-size: 1.25rem;
  }

  .board-stats {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1rem;
    justify-content: space-around;
    gap: 1rem;
  }

  .board-last-post {
    font-size: 0.8rem;
  }
}

/* Topic List (Board Show View) */
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.topic-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.25rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.topic-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topic-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.topic-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topic-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.topic-title a:hover {
  color: var(--primary);
}

.activity-indicator {
  font-size: 1rem;
  line-height: 1;
}

.topic-meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.topic-author,
.topic-latest-reply {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.topic-author strong,
.topic-latest-reply strong {
  color: var(--text-primary);
  font-weight: 500;
}

.topic-stats {
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.topic-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 50px;
}

.topic-stats .stat-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.topic-stats .stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

/* Pagination improvements */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive adjustments for topics */
@media (max-width: 768px) {
  .topic-card {
    flex-direction: column;
    gap: 1rem;
  }

  .topic-title {
    font-size: 1.125rem;
  }

  .topic-stats {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1rem;
    justify-content: center;
  }

  .pagination {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-secondary);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Post Detail View */
.post-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-original {
  padding: 2rem;
}

.post-author-info,
.reply-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-avatar.small {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.author-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.author-name strong {
  color: var(--text-primary);
  font-size: 1.125rem;
}

.author-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-timestamp,
.reply-timestamp {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

/* Role Badges */
.badge-role-admin {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.badge-role-mod {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.badge-role-referee {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Post Title */
.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
}

/* Post Content */
.post-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.post-content p, .reply-content p, .journal-content p, .card-body p {
  margin-bottom: 1rem;
}

/* Markdown content spacing */
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6,
.reply-content h1, .reply-content h2, .reply-content h3,
.reply-content h4, .reply-content h5, .reply-content h6,
.journal-content h1, .journal-content h2, .journal-content h3,
.journal-content h4, .journal-content h5, .journal-content h6,
.card-body h1, .card-body h2, .card-body h3,
.card-body h4, .card-body h5, .card-body h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.post-content h1:first-child, .post-content h2:first-child, .post-content h3:first-child,
.reply-content h1:first-child, .reply-content h2:first-child, .reply-content h3:first-child,
.journal-content h1:first-child, .journal-content h2:first-child, .journal-content h3:first-child,
.card-body h1:first-child, .card-body h2:first-child, .card-body h3:first-child {
  margin-top: 0;
}

.post-content ul, .post-content ol,
.reply-content ul, .reply-content ol,
.journal-content ul, .journal-content ol,
.card-body ul, .card-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li, .reply-content li, .journal-content li, .card-body li {
  margin-bottom: 0.5rem;
}

.post-content hr, .reply-content hr, .journal-content hr, .card-body hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.post-content blockquote, .reply-content blockquote, .journal-content blockquote, .card-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
  color: var(--text-secondary);
}

.post-content pre, .reply-content pre, .journal-content pre, .card-body pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow-x: auto;
}

.post-content code, .reply-content code, .journal-content code, .card-body code {
  padding: 0.2rem 0.4rem;
  background: var(--bg-secondary);
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.post-content pre code, .reply-content pre code, .journal-content pre code, .card-body pre code {
  padding: 0;
  background: none;
}

.post-content table, .reply-content table, .journal-content table, .card-body table {
  margin: 1.5rem 0;
  border-collapse: collapse;
  width: 100%;
}

.post-content table th, .post-content table td,
.reply-content table th, .reply-content table td,
.journal-content table th, .journal-content table td,
.card-body table th, .card-body table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.post-content table th, .reply-content table th, .journal-content table th, .card-body table th {
  background: var(--bg-secondary);
  font-weight: 600;
}

/* Replies Section */
.replies-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.replies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.replies-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.sort-select {
  padding: 0.375rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
}

.reply-card.deleted {
  opacity: 0.6;
}

.reply-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.reply-content.deleted {
  font-style: italic;
  color: var(--text-secondary);
}

.reply-form-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.reply-form-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* Responsive adjustments for post detail */
@media (max-width: 768px) {
  .post-original {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-author-info,
  .reply-author-info {
    flex-wrap: wrap;
  }

  .post-timestamp,
  .reply-timestamp {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .breadcrumb-nav {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .breadcrumb-current {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ====================
   CHARACTER & JOURNAL STYLES
   Phase 5: Character Journals
   Added: 2025-10-17
   ==================== */

/* Character-specific styles */
.character-avatar {
  margin-bottom: var(--space-md);
}

.character-avatar img {
  max-width: 200px;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.badge-level {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* Journal List Styles */
.journals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journal-entry {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: var(--space-md);
  transition: border-color 0.3s, transform 0.2s;
}

.journal-entry:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.journal-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.journal-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.journal-title a:hover {
  color: var(--primary);
}

.journal-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.journal-preview {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.journal-content {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.05rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Journal visibility badges */
.badge-public {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-game_only {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.badge-referee_only {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

/* Card header flex for title + actions */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Text utilities */
.text-muted {
  color: var(--text-secondary);
  font-style: italic;
}

/* Responsive adjustments for journals */
@media (max-width: 768px) {
  .journal-entry {
    padding: var(--space-sm);
  }

  .journal-title {
    font-size: 1rem;
  }

  .card-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====================
   BOARDS UX ENHANCEMENTS
   Phase 9.2: Quick Wins
   Added: 2025-11-17
   ==================== */

/* Small button variant */
.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Topic preview in listing */
.topic-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(139, 92, 246, 0.05);
  border-left: 2px solid var(--primary);
  border-radius: 0.25rem;
}

/* Inline quick reply form */
.inline-reply-form {
  display: none; /* Hidden by default */
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 0.375rem;
  border: 1px dashed var(--primary);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-reply-form textarea {
  margin-bottom: 0.5rem;
}

.inline-reply-form .form-actions {
  gap: 0.5rem;
}

/* Floating Navigation Buttons */
.floating-nav-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.float-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: 2px solid rgba(139, 92, 246, 0.3);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.float-btn:hover {
  background: #7c3aed;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.float-btn:active {
  transform: scale(0.95);
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
  .floating-nav-buttons {
    bottom: 1rem;
    right: 1rem;
  }

  .float-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  /* Make sort controls wrap better */
  .sort-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
