/* MyPlatform - Modern UI Styles */
/* Primary Color: #f2e6c4 */

:root {
  /* Modern Color Palette - Blue Primary with Complementary Accents */
  --primary-color: #2563eb;      /* blue-600 - vibrant primary blue */
  --primary-dark: #1d4ed8;       /* blue-700 - darker blue for hover states */
  --primary-light: #93c5fd;      /* blue-300 - light blue for gradients */
  --secondary-color: #0ea5e9;    /* sky-500 - complementary blue accent */
  --accent-color: #3b82f6;       /* blue-500 - bright blue accent */

  --text-primary: #1f2937;       /* gray-800 */
  --text-secondary: #4b5563;     /* gray-600 */
  --text-muted: #9ca3af;         /* gray-400 */

  --background-color: #ffffff;
  --background-light: #f8fafc;   /* slate-50 - very light blue-gray */
  --background-dark: #e2e8f0;    /* slate-200 - light blue-gray */

  --border-color: #cbd5e1;       /* slate-300 */
  --border-light: #e2e8f0;       /* slate-200 */

  --success-color: #10b981;      /* emerald-500 */
  --warning-color: #f59e0b;      /* amber-500 */
  --error-color: #ef4444;        /* red-500 */
  --info-color: #3b82f6;         /* blue-500 */

  /* Modern shadows with better depth */
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Modern border radius */
  --border-radius: 0.5rem;       /* 8px */
  --border-radius-small: 0.25rem;/* 4px */
  --border-radius-large: 0.75rem;/* 12px */
  --border-radius-xl: 1rem;      /* 16px */

  /* Modern typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-display: "Playfair Display", Georgia, serif;
  --font-family-mono: "JetBrains Mono", "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New",
    monospace;

  /* Animation and transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.2s ease-out;
  --transition-slow: 0.3s ease-out;
}

/* Import modern fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  color: white;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.875rem;
  margin: 0;
  font-weight: 700;
  color: white;
  font-family: var(--font-family-display);
}

.logo .tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.main-nav a:hover::before {
  left: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 0.5rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  font-family: var(--font-family);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-light);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-light);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-light);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: all var(--transition-normal);
  background-color: var(--background-color);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.alert:hover::before {
  transform: translateX(100%);
}

.alert-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-left-color: var(--success-color);
}

.alert-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #991b1b;
  border-left-color: var(--error-color);
}

.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
  color: #92400e;
  border-left-color: var(--warning-color);
}

.alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-left-color: var(--info-color);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.badge:hover {
  transform: scale(1.05);
}

.badge-verified {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-verified-small {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  box-shadow: var(--shadow-light);
}

.badge-opinion {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-topic {
  background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-post {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-document {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-image {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-video {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-link {
  background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-other {
  background: linear-gradient(135deg, var(--text-secondary) 0%, #374151 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-role-admin {
  background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-role-moderator {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

.badge-role-user {
  background: linear-gradient(135deg, var(--text-secondary) 0%, #374151 100%);
  color: white;
  box-shadow: var(--shadow-light);
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--background-color) 100%);
  border-radius: var(--border-radius-large);
}

.page-header h1 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

/* Content Controls */
.content-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-form input {
  min-width: 300px;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.sort-controls,
.filter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-group select {
  padding: 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
}

/* Topic Cards */
.topics-list {
  display: grid;
  gap: 1.5rem;
}

.topic-card,
.post-card {
  background: var(--background-color);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.topic-card::before,
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.topic-card:hover::before,
.post-card:hover::before {
  opacity: 1;
}

.topic-card:hover,
.post-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.topic-card.verified,
.post-card.verified {
  border-color: var(--success-color);
  background: linear-gradient(135deg, var(--background-color) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.topic-card.verified::before,
.post-card.verified::before {
  background: var(--success-color);
  opacity: 1;
}

.topic-header h3 {
  margin-bottom: 0.5rem;
}

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

.topic-header h3 a:hover {
  color: var(--secondary-color);
}

.topic-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.topic-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.topic-stats {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Posts */
.posts-section {
  margin-top: 3rem;
}

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

.reply-form {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-large);
  margin-bottom: 2rem;
}

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

.post-item {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
}

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

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.like-btn:hover {
  background-color: var(--primary-light);
  color: var(--secondary-color);
  text-decoration: none;
}

.like-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.post-replies {
  margin-top: 1.5rem;
  padding-left: 2rem;
  border-left: 3px solid var(--primary-light);
}

.reply-item {
  background: var(--background-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.reply-content {
  color: var(--text-primary);
  line-height: 1.6;
}

/* Evidence */
.evidence-stats {
  background: var(--primary-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-large);
  margin-bottom: 2rem;
}

.stats-summary {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

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

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

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.evidence-card {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.evidence-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

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

.evidence-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.evidence-context {
  margin-bottom: 1rem;
}

.context-link a {
  color: var(--secondary-color);
  font-weight: 500;
}

.evidence-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.evidence-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* New styles for topic and post evidence display */
.topic-evidence {
  background: var(--primary-light);
  border-radius: var(--border-radius-large);
  padding: 1.5rem;
  margin-top: 2rem;
}

.topic-evidence h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topic-evidence h3::before {
  content: "📋";
  font-size: 1.2rem;
}

.post-evidence {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid var(--primary-color);
}

.post-evidence h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.evidence-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.evidence-info {
  flex: 1;
}

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

.evidence-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.evidence-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-small);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.evidence-type.badge-document {
  background: #e3f2fd;
  color: #1976d2;
}

.evidence-type.badge-image {
  background: #f3e5f5;
  color: #7b1fa2;
}

.evidence-type.badge-video {
  background: #fff3e0;
  color: #f57c00;
}

.evidence-type.badge-link {
  background: #e8f5e8;
  color: #388e3c;
}

.evidence-type.badge-other {
  background: #fafafa;
  color: #616161;
}

.evidence-preview {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
}

.evidence-preview strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.evidence-preview .evidence-list {
  gap: 0.5rem;
}

.evidence-preview .evidence-item {
  padding: 0.5rem;
  font-size: 0.875rem;
}

.evidence-more {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
}

/* Verified content page styles */
.verified-content {
  max-width: 1200px;
  margin: 0 auto;
}

.verified-content .section {
  margin-bottom: 3rem;
}

.verified-content .section h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.topic-card.verified {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-color);
}

.topic-card .topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.topic-card h3 {
  margin: 0;
  flex: 1;
}

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

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

.verification-summary {
  background: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.verification-summary strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.post-card.verified {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

.post-card .post-topic {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.post-card .post-topic a {
  color: var(--secondary-color);
  text-decoration: none;
}

.verification-notes {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
  border-left: 3px solid var(--primary-color);
}

.verification-notes strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

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

.page-info {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.empty-state p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Login Prompt */
.login-prompt {
  text-align: center;
  padding: 2rem;
  background: var(--background-light);
  border-radius: var(--border-radius-large);
  margin: 2rem 0;
}

.login-prompt p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.login-prompt a {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--background-dark);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .content-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form input {
    min-width: auto;
    width: 100%;
  }

  .topic-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

  .stats-summary {
    gap: 1rem;
  }

  /* Mobile styles for new evidence components */
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .evidence-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .evidence-actions {
    align-self: stretch;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem 0;
  }

  .page-header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
  }

  .topic-card,
  .post-item,
  .evidence-card {
    padding: 1rem;
  }

  .reply-form {
    padding: 1rem;
  }

  /* Mobile styles for topic and post cards */
  .topic-card.verified,
  .post-card.verified {
    padding: 1rem;
  }

  .topic-card .topic-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 320px) {
  .evidence-actions {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
    --background-color: #1f2937;
    --background-light: #111827;
    --background-dark: #374151;
    --border-color: #374151;
    --border-light: #4b5563;
  }

  .site-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }

  .card {
    background: var(--background-color);
    border-color: var(--border-color);
  }

  .form-control {
    background-color: var(--background-color);
    border-color: var(--border-color);
    color: var(--text-primary);
  }
}

/* Authentication Pages */
.auth-page {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-card {
  background: var(--background-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-family-display);
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.auth-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all var(--transition-normal);
  background-color: var(--background-color);
  color: var(--text-primary);
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  transform: translateY(-1px);
}

.auth-form .form-control::placeholder {
  color: var(--text-muted);
}

.auth-form small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.auth-form .btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.auth-footer p {
  color: var(--text-secondary);
  margin: 0;
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Verification Success/Error Pages */
.verification-page {
  background: var(--background-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.verification-card {
  background: var(--background-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-medium);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.verification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.verification-icon.success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
}

.verification-icon.error {
  background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
  color: white;
}

.verification-card h1 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.verification-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Password Reset Form */
.password-reset-form {
  background: var(--background-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-medium);
  padding: 2rem;
  margin-top: 2rem;
}

.password-reset-form h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

/* Responsive Auth Pages */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.75rem;
  }

  .verification-card {
    padding: 2rem 1.5rem;
  }

  .verification-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
