/* ============================================
   Nothing But Chuck - Modern CSS
   ============================================ */

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1a1a2e;
  --accent: #f4a261;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text: #e0e0e0;
  --text-muted: #8888a0;
  --text-bright: #ffffff;
  --success: #2ecc71;
  --border: #2a2a45;
  --vote-bg: #141428;
  --vote-up: #2ecc71;
  --vote-down: #e74c3c;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  padding-top: 120px;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 991px) {
  body {
    padding-top: 110px;
  }
}

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

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

/* ============================================
   Navbar
   ============================================ */
.navbar {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  z-index: 9999;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-bright) !important;
  letter-spacing: 1px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  background: linear-gradient(135deg, var(--text-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(224, 224, 224, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--text-bright) !important;
  background: rgba(255, 255, 255, 0.08);
}

.navbar .nav-link.active {
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary) !important;
}

/* Navbar Search */
.navbar-search {
  flex: 0 1 240px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  padding: 0.4rem 1rem 0.4rem 2.1rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Search page input */
.search-input-lg {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 1rem;
}

.search-input-lg:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2) !important;
  outline: none;
}

@media (max-width: 991px) {
  .navbar-search {
    flex: 1 1 100%;
    margin: 0.5rem 0;
  }
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-bright) !important;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), #a0101a);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
  color: var(--text-bright) !important;
}

/* ============================================
   Hero Bar (fact counter)
   ============================================ */
.hero-bar {
  background: linear-gradient(135deg, var(--secondary), #16213e);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  position: fixed;
  top: 65px;
  width: 100%;
  z-index: 9998;
}

@media (max-width: 991px) {
  .hero-bar {
    top: 56px;
  }
}

.hero-bar .counter {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-bar .counter i {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
  animation: heroGlow 2s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { text-shadow: 0 0 8px rgba(230, 57, 70, 0.3); }
  to { text-shadow: 0 0 16px rgba(230, 57, 70, 0.6); }
}

.hero-bar .counter strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ============================================
   Page Headers
   ============================================ */
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.page-header h1 i {
  text-shadow: 0 0 12px currentColor;
}

.page-header h1 i {
  color: var(--primary);
  margin-right: 0.25rem;
}

.page-header .text-muted {
  color: var(--text-muted) !important;
}

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
}

/* ============================================
   Fact Cards
   ============================================ */
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
}

.fact-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-hover), 0 0 20px rgba(230, 57, 70, 0.08);
  transform: translateY(-3px) scale(1.01);
}

.fact-card-body {
  padding: 1.5rem;
  position: relative;
}

.fact-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.fact-rank {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-right: 1rem;
  min-width: 2.5rem;
  display: inline-block;
}

.fact-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.45;
  margin: 0;
}

.fact-text a {
  color: var(--text-bright);
  text-decoration: none;
}

.fact-text a:hover {
  color: var(--accent);
}

.fact-text-large {
  font-size: 2rem;
}

@media (max-width: 767px) {
  .fact-text {
    font-size: 1.15rem;
  }
  .fact-text-large {
    font-size: 1.5rem;
  }
  .fact-card-body {
    padding: 1.25rem;
  }
}

/* Top 3 fact cards in Top 100 */
.fact-card-top1 {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 215, 0, 0.08));
}
.fact-card-top1 .fact-rank {
  color: var(--gold);
}

.fact-card-top2 {
  border-color: var(--silver);
  background: linear-gradient(135deg, var(--bg-card), rgba(192, 192, 192, 0.06));
}

.fact-card-top3 {
  border-color: var(--bronze);
  background: linear-gradient(135deg, var(--bg-card), rgba(205, 127, 50, 0.06));
}

/* Featured card (random page) */
.fact-card-featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-card), rgba(230, 57, 70, 0.08));
}

.fact-card-featured .fact-card-body {
  padding: 3rem 2rem;
}

/* Mini cards (more facts section) */
.fact-card-mini {
  height: 100%;
}

.fact-card-mini .fact-text {
  font-size: 1.05rem;
}

.fact-card-mini .fact-card-body {
  padding: 1.25rem;
}

/* ============================================
   Vote Block / Buttons
   ============================================ */
.fact-card-footer {
  border-top: 1px solid var(--border);
}

.vote-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--vote-bg);
}

@media (max-width: 767px) {
  .vote-block {
    padding: 0.75rem 1.25rem;
  }
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: var(--font-body);
}

.vote-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}

.vote-btn.vote-up:hover,
.vote-btn.vote-up.voted {
  border-color: var(--vote-up);
  color: var(--vote-up);
  background: rgba(46, 204, 113, 0.1);
}

.vote-btn.vote-down:hover,
.vote-btn.vote-down.voted {
  border-color: var(--vote-down);
  color: var(--vote-down);
  background: rgba(231, 76, 60, 0.1);
}

.vote-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
  outline: none;
}

.vote-btn.voted {
  pointer-events: none;
}

.vote-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.vote-btn.loading i {
  animation: spin 0.8s linear infinite;
}

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

.vote-btn i {
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.25s ease;
}

.vote-count {
  transition: transform 0.3s ease;
}

.vote-btn.animate .vote-count {
  animation: countPop 0.4s ease;
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.vote-btn.vote-up.animate i {
  animation: thumbsUpBounce 0.5s ease;
}

.vote-btn.vote-down.animate i {
  animation: thumbsDownBounce 0.5s ease;
}

@keyframes thumbsUpBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.5) rotate(-15deg); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes thumbsDownBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.5) rotate(15deg); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.vote-count {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

/* Favorite Button */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  padding: 0;
  font-family: var(--font-body);
}

.favorite-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(230, 57, 70, 0.1);
}

.favorite-btn .fas.fa-heart {
  color: var(--primary);
  animation: heartPop 0.4s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  25% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.favorite-btn .fas.fa-heart {
  filter: drop-shadow(0 0 4px rgba(230, 57, 70, 0.4));
}

/* ============================================
   Detail Page
   ============================================ */
.detail-hero {
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.15), var(--bg));
  padding: 3rem 0 2rem;
  margin-top: -1rem;
}

.detail-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.detail-fact-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .detail-fact-text {
    font-size: 1.6rem;
  }
}

.detail-vote-block {
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-flex;
  padding: 0.75rem 1.5rem;
}

/* Approval Meter */
.approval-meter {
  max-width: 500px;
  margin: 1.5rem auto 0;
  background: var(--vote-bg);
  border-radius: 50px;
  height: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.approval-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--vote-up), #27ae60);
  border-radius: 50px;
  transition: width 1s ease;
}

.approval-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-bright);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* More Facts Header */
.more-facts-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.more-facts-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.more-facts-header h3 i {
  color: var(--primary);
}

/* ============================================
   Pagination
   ============================================ */
.pagination-wrapper {
  display: flex;
  justify-content: center;
}

.pagination {
  gap: 0.25rem;
}

.page-item .page-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-item .page-link:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.page-item .page-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--text-bright);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-bright);
}

.page-item.disabled .page-link {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-muted);
  opacity: 0.4;
}

/* ============================================
   Ad Block
   ============================================ */
.ad-block {
  text-align: center;
  margin: 1.5rem auto;
}

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent) 1;
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-bright);
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Modal
   ============================================ */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1rem 1.5rem;
}

.modal-header .modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--text-bright);
}

.modal-body {
  padding: 1.5rem;
}

.submit-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#submitFactInput {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  resize: none;
  min-height: 150px;
  padding: 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

#submitFactInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
  outline: none;
}

#submitFactInput::placeholder {
  color: var(--text-muted);
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.success-msg .text-success {
  color: var(--vote-up) !important;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.toast.bg-success {
  border-color: var(--vote-up);
}

.toast.bg-danger {
  border-color: var(--vote-down);
}

.toast.bg-warning {
  border-color: var(--accent);
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  padding: 3rem 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(230, 57, 70, 0.3);
}

.error-message {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.error-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.error-image {
  max-width: 380px;
  width: 100%;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.btn-outline-light {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline-light:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
  color: var(--text-bright);
}

/* ============================================
   Favorites Page
   ============================================ */
.favorites-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.favorites-empty i,
.favorites-empty .fa-3x {
  animation: floatBounce 3s ease-in-out infinite;
}

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

/* ============================================
   Auth Pages (Login, Register, etc.)
   ============================================ */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 1.75rem 2rem;
  text-align: center;
}

.auth-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin: 0 0 0.25rem;
}

.auth-card-header h2 i {
  margin-right: 0.25rem;
}

.auth-card-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.auth-card-body {
  padding: 2rem;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.auth-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
  outline: none;
}

.auth-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-link {
  color: var(--accent) !important;
  font-size: 0.88rem;
  text-decoration: none;
}

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

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

.auth-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.auth-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.auth-alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-alert-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--vote-up);
}

.auth-alert-danger {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--vote-down);
}

/* ============================================
   ShareThis overrides
   ============================================ */
.sharethis-inline-share-buttons {
  display: inline-flex !important;
  margin-left: auto;
}

.st-btn {
  border-radius: 50px !important;
  padding: 0 8px !important;
}

/* ============================================
   Auth Button (navbar)
   ============================================ */
.btn-auth {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-auth:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-muted);
  color: var(--text-bright) !important;
}

.dropdown-menu-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dropdown-menu-dark .dropdown-item {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu-dark .dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-bright);
}

.dropdown-menu-dark .dropdown-divider {
  border-color: var(--border);
}

/* ============================================
   Admin Panel
   ============================================ */
.administrationPanel header .hero-bar {
  display: none;
}

.administrationPanel main {
  padding-top: 0;
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 180px);
}

/* Admin Sidebar */
.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--secondary);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-brand {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.admin-sidebar-brand i {
  color: var(--primary);
  font-size: 1.2rem;
}

.admin-nav {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
}

.admin-nav-section {
  padding: 1rem 1.25rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.admin-nav-divider {
  border-top: 1px solid var(--border);
  margin: 0.75rem 1rem;
}

.admin-nav-item {
  list-style: none;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
}

.admin-nav-link:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-link.active {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.1);
  border-right: 3px solid var(--primary);
}

.admin-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

/* Admin Content Area */
.admin-content {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 0;
}

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

.admin-page-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin: 0;
}

.admin-page-header h2 i {
  color: var(--primary);
  margin-right: 0.25rem;
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

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

.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.admin-stat-primary .admin-stat-icon {
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary);
}

.admin-stat-success .admin-stat-icon {
  background: rgba(46, 204, 113, 0.15);
  color: var(--vote-up);
}

.admin-stat-info .admin-stat-icon {
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent);
}

.admin-stat-warning .admin-stat-icon {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
}

.admin-stat-danger .admin-stat-icon {
  background: rgba(231, 76, 60, 0.15);
  color: var(--vote-down);
}

.admin-stat-secondary .admin-stat-icon {
  background: rgba(136, 136, 160, 0.15);
  color: var(--text-muted);
}

.admin-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.admin-empty-state h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-bright);
  line-height: 1;
  letter-spacing: 1px;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Admin Tables */
.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead th {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(42, 42, 69, 0.5);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

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

.admin-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.85rem;
}

.admin-btn:hover {
  color: var(--text-bright);
}

.admin-btn-edit:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(244, 162, 97, 0.1);
}

.admin-btn-delete:hover {
  border-color: var(--vote-down);
  color: var(--vote-down);
  background: rgba(231, 76, 60, 0.1);
}

/* Admin Badges */
.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-badge-warning {
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent);
}

.admin-badge-success {
  background: rgba(46, 204, 113, 0.15);
  color: var(--vote-up);
}

.admin-badge-muted {
  background: rgba(136, 136, 160, 0.15);
  color: var(--text-muted);
}

/* Admin Form Card */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 700px;
}

.admin-input {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.95rem;
  transition: var(--transition);
}

.admin-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2) !important;
  outline: none;
}

.form-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Global form-control dark theme override */
.form-control {
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  background-color: var(--bg);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

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

.form-check-input {
  background-color: var(--bg);
  border-color: var(--border);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  color: var(--text);
}

/* Admin Empty State */
.admin-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.admin-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--vote-up);
}

.admin-empty-state p {
  font-size: 1.1rem;
}

/* Admin responsive */
@media (max-width: 991px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .admin-nav-section {
    width: 100%;
    padding: 0.5rem 0.75rem 0.25rem;
  }

  .admin-nav-divider {
    width: 100%;
    margin: 0.25rem 0;
  }

  .admin-nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
  }

  .admin-nav-link.active {
    border-right: none;
    background: rgba(230, 57, 70, 0.15);
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-table-wrapper {
    overflow-x: auto;
  }
}

/* ============================================
   Utility
   ============================================ */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

/* Smooth entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fact-card {
  animation: fadeInUp 0.4s ease backwards;
}

.fact-card:nth-child(1) { animation-delay: 0s; }
.fact-card:nth-child(2) { animation-delay: 0.05s; }
.fact-card:nth-child(3) { animation-delay: 0.1s; }
.fact-card:nth-child(4) { animation-delay: 0.15s; }
.fact-card:nth-child(5) { animation-delay: 0.2s; }
.fact-card:nth-child(6) { animation-delay: 0.25s; }
.fact-card:nth-child(7) { animation-delay: 0.3s; }
.fact-card:nth-child(8) { animation-delay: 0.35s; }

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fact-card,
  .fotd-banner,
  .favorites-empty i,
  .hero-bar .counter i {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--primary);
  color: var(--text-bright);
}

/* ============================================
   Light Theme
   ============================================ */
[data-theme="light"] {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #f0f0f5;
  --accent: #d4622a;
  --bg: #f5f5fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --text: #2d2d3a;
  --text-muted: #5a5a70;
  --text-bright: #1a1a2e;
  --success: #2ecc71;
  --border: #dcdce5;
  --vote-bg: #f8f8fc;
  --vote-up: #27ae60;
  --vote-down: #c0392b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .navbar {
  background: rgba(245, 245, 250, 0.95);
}

[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 45, 58, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .hero-bar {
  background: linear-gradient(135deg, #e0e0ec, #d4d4e2);
}

[data-theme="light"] .newsletter-bar {
  background: linear-gradient(135deg, #e8e8f2, #dcdce8);
}

[data-theme="light"] .fact-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(230, 57, 70, 0.06);
}

[data-theme="light"] .brand-text {
  background: linear-gradient(135deg, var(--text-bright), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .toast {
  background: var(--bg-card);
  color: var(--text);
}

[data-theme="light"] .dropdown-menu-dark {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="light"] .dropdown-menu-dark .dropdown-item {
  color: var(--text);
}

[data-theme="light"] .dropdown-menu-dark .dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-bright);
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-bright);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 9000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.5);
}

/* ============================================
   Newsletter Bar (Footer)
   ============================================ */
.newsletter-bar {
  background: linear-gradient(135deg, var(--secondary), #16213e);
  border-top: 1px solid rgba(230, 57, 70, 0.2);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  position: relative;
}

.newsletter-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

[data-theme="light"] .newsletter-bar {
  background: linear-gradient(135deg, #e8e8f0, #dcdce8);
}

.newsletter-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-info {
  flex: 1;
  min-width: 250px;
}

.newsletter-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin: 0 0 0.25rem;
}

.newsletter-info h3 i {
  color: var(--primary);
  margin-right: 0.25rem;
}

.newsletter-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex: 0 1 400px;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
  outline: none;
}

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

.newsletter-form button {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .newsletter-bar .container {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ============================================
   Share Popover
   ============================================ */
.share-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-hover);
  display: none;
  z-index: 9500;
  min-width: 200px;
}

@media (max-width: 767px) {
  .share-popover {
    bottom: auto;
    top: calc(100% + 10px);
    right: -1rem;
  }
}

.share-popover.active {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.share-popover-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.share-popover-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-popover-links a,
.share-popover-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0;
  font-family: var(--font-body);
}

.share-popover-links a:hover,
.share-popover-links button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
  border-color: var(--text-muted);
}

.share-popover-links .share-twitter:hover { color: #1da1f2; border-color: #1da1f2; }
.share-popover-links .share-facebook:hover { color: #4267b2; border-color: #4267b2; }
.share-popover-links .share-reddit:hover { color: #ff4500; border-color: #ff4500; }
.share-popover-links .share-whatsapp:hover { color: #25d366; border-color: #25d366; }
.share-popover-links .share-copy:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================
   Infinite Scroll Loader
   ============================================ */
.infinite-scroll-loader {
  text-align: center;
  padding: 2rem;
  display: none;
}

.infinite-scroll-loader.loading {
  display: block;
}

.infinite-scroll-loader .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.infinite-scroll-loader p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.infinite-scroll-end {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: none;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb-nav {
  padding: 0.75rem 0;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

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

.breadcrumb-item.active {
  color: var(--text);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
  content: "\203A";
}

/* ============================================
   Fact of the Day Banner
   ============================================ */
.fotd-banner {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(244, 162, 97, 0.1));
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.fotd-banner:hover {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.12);
  transform: translateY(-2px);
}

.fotd-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.fotd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-bright);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.fotd-badge i {
  font-size: 0.7rem;
}

.fotd-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin: 0;
}

.fotd-text a {
  color: var(--text-bright);
}

.fotd-text a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .fotd-text {
    font-size: 1.2rem;
  }
}

/* ============================================
   Trending Badge
   ============================================ */
.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(46, 204, 113, 0.12);
  color: var(--vote-up);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-left: 0.5rem;
}

.trending-badge i {
  font-size: 0.65rem;
}

/* ============================================
   Category Pills
   ============================================ */
.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   RSS / Social Links
   ============================================ */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
  border-color: var(--text-muted);
}

/* ============================================
   Report Modal
   ============================================ */
.report-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  font-size: 0.9rem;
}

.report-option:hover {
  border-color: var(--primary);
  background: rgba(230, 57, 70, 0.05);
}

.report-option input[type="radio"] {
  accent-color: var(--primary);
}

/* ============================================
   Pulse animation for FOTD
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Slide In from Right (for share popover)
   ============================================ */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Print Styles
   ============================================ */
/* ============================================
   Focus-Visible States (Accessibility)
   ============================================ */
.btn-submit:focus-visible,
.btn-auth:focus-visible,
.vote-btn:focus-visible,
.favorite-btn:focus-visible,
.share-btn:focus-visible,
.share-toggle:focus-visible,
.report-btn:focus-visible,
.theme-toggle:focus-visible,
.back-to-top:focus-visible,
.navbar-toggler:focus-visible,
.share-popover-links a:focus-visible,
.share-popover-links button:focus-visible,
.share-copy-btn:focus-visible,
.report-submit-btn:focus-visible,
.admin-btn:focus-visible,
.admin-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.breadcrumb-item a:focus-visible,
.footer-links a:focus-visible,
.social-link:focus-visible,
.fact-text a:focus-visible,
.fotd-text a:focus-visible,
.auth-link:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.search-input:focus-visible,
.admin-input:focus-visible,
.newsletter-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.report-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media print {
  .navbar, .hero-bar, footer, .vote-block,
  .ad-block, .back-to-top, .newsletter-bar,
  .share-popover, .toast-container {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    padding-top: 0;
  }
  .fact-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* Admin Approve Button */
.admin-btn-approve:hover {
  border-color: var(--vote-up);
  color: var(--vote-up);
  background: rgba(46, 204, 113, 0.1);
}

/* Admin Badge Count (sidebar) */
.admin-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg);
  margin-left: auto;
}

.admin-badge-count.admin-badge-danger {
  background: var(--vote-down);
  color: #fff;
}

.admin-badge-info {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

/* Admin Bulk Actions Bar */
.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Admin Page Header with action */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Profile Page */
.profile-header h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--text-bright);
}

.profile-header p {
  color: var(--text-muted);
}

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

.profile-card h5 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.profile-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.profile-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--heading-font);
}

.profile-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Static Pages (About, Contact) */
.static-page h1 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.static-page h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.static-page p,
.static-page li {
  color: var(--text);
  line-height: 1.7;
}

.static-page ul {
  padding-left: 1.5rem;
}

.static-page code {
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--accent);
}

/* Profile Danger Zone */
.profile-danger-zone {
  border-color: rgba(231, 76, 60, 0.3);
}

.profile-danger-zone h5 {
  color: var(--vote-down) !important;
  border-bottom-color: rgba(231, 76, 60, 0.3) !important;
}

/* Admin Search Bar */
.admin-search-bar .admin-search-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search-bar .admin-input {
  max-width: 300px;
}

.admin-search-bar select.admin-input {
  max-width: 160px;
}

/* Admin Activity Feed */
.admin-section-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.admin-activity-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.admin-activity-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.admin-activity-success { background: rgba(46, 204, 113, 0.15); color: var(--vote-up); }
.admin-activity-danger { background: rgba(231, 76, 60, 0.15); color: var(--vote-down); }
.admin-activity-info { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.admin-activity-primary { background: rgba(230, 57, 70, 0.15); color: var(--primary); }

.admin-activity-content p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
