/* Свестник - Основни стилове с Dark/Light Theme */

:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent-primary: #0066cc;
  --accent-primary-rgb: 0, 102, 204;
  --accent-secondary: #ff6b35;
  --border-color: #e2e8f0;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Bulgarian Colors Accent */
  --bulgaria-white: #ffffff;
  --bulgaria-green: #00966e;
  --bulgaria-red: #d62612;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-card: #2d3748;
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --accent-primary: #3182ce;
  --accent-primary-rgb: 49, 130, 206;
  --accent-secondary: #ed8936;
  --border-color: #4a5568;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Global link styling */
a {
  color: var(--text-primary);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

a:visited {
  color: var(--text-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

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

@media (max-width: 768px) {
  .stats-bar {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }
  
  .stats-inline {
    gap: 1rem;
  }
  
  .stat-item {
    font-size: 0.85rem;
  }
}

/* Header & Navigation */
.header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow-light);
}

/* Compact navbar for single row layout */
.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.logo {
  white-space: nowrap !important;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex !important;
  align-items: center !important;
  list-style: none;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap !important;
  flex-grow: 1;
  justify-content: center;
}

.nav-menu li {
  white-space: nowrap !important;
  flex-shrink: 0;
  position: relative;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
  font-size: 0.85rem;
}

.nav-menu a:hover {
  color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

.nav-menu a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Tab Indicator */
.tab-indicator {
  position: relative;
}

.tab-indicator.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

/* Submit Highlight Button */
.submit-highlight {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
  transition: all 0.3s ease !important;
}

.submit-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4);
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary)) !important;
}

/* Dropdown Menu Styles */
.nav-menu li {
  position: relative;
}

.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 25px var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  display: block;
}

.nav-menu .dropdown-menu li {
  margin: 0;
  position: static;
}

.nav-menu .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
  background: none;
  font-weight: 400;
}

.nav-menu .dropdown-menu a:hover {
  background: var(--accent-primary);
  color: white;
}

/* Show dropdown on hover */
.nav-menu li:hover > .dropdown-menu,
.nav-menu li:focus-within > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.dropdown-toggle .arrow {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-menu li:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

/* Mobile dropdown support */
.nav-menu .dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  width: auto;
  height: auto;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
}

.search-box {
  display: flex !important;
  align-items: center !important;
  background: var(--bg-secondary);
  border-radius: 25px;
  padding: 0;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.search-box form {
  display: flex !important;
  align-items: center !important;
  gap: 0;
  margin: 0;
}

.search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 0.4rem;
  width: 140px;
  font-size: 0.85rem;
  margin: 0;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  margin: 0;
  flex-shrink: 0;
  font-size: 1rem;
  transition: all 0.2s;
}

.search-box button:hover {
  transform: scale(1.1);
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.hero-section {
  background: var(--gradient-bg);
  color: white;
  padding: 3rem 0;
  border-radius: 20px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-tabs {
  display: flex;
  gap: 1rem;
}

.tab-button {
  background: none;
  border: 2px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-weight: 500;
}

.tab-button.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.tab-button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.news-content {
  padding: 1.5rem;
}

.news-category {
  background: var(--accent-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

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

.news-title a {
  color: inherit;
  text-decoration: none;
}

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

.news-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-reactions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reaction-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.reaction-btn:hover {
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.views, .comments {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Responsive improvements for news meta */
@media (max-width: 768px) {
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .news-reactions {
    justify-content: flex-start;
    width: 100%;
    gap: 0.5rem;
  }
  
  .reaction-btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .news-reactions {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    display: grid;
    gap: 0.25rem;
  }
  
  .reaction-btn {
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
  }
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

.error {
  text-align: center;
  padding: 2rem;
  background: #fee;
  border: 2px solid #fcc;
  border-radius: 12px;
  color: #c00;
  margin: 2rem 0;
}

.error h3 {
  margin-bottom: 1rem;
  color: #c00;
}

.retry-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Dark theme error styles */
[data-theme="dark"] .error {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

[data-theme="dark"] .error h3 {
  color: #ff6b6b;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Trending Bar */
.trending-bar {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.trending-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.trending-items {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.trending-item {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: 25px;
  white-space: nowrap;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.trending-item:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

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

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

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Flash Messages */
.flash-message {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

/* Inline Info Messages */
.info-message {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  color: white;
  background: #4299e1;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flash-success { background: #48bb78; }
.flash-error { background: #f56565; }
.flash-info { background: #4299e1; }
.flash-warning { background: #ed8936; }

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

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

/* Tablet adjustments for navbar */
@media (max-width: 1200px) {
  .nav-menu li a {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.5rem !important;
  }
  
  .search-box input {
    width: 120px !important;
  }
  
  .logo {
    font-size: 1rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
  }
  
  .logo {
    text-align: center;
  }
  
  .nav-menu {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
  }
  
  .nav-actions {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .search-box input {
    width: 100px !important;
    font-size: 0.8rem !important;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
  }
  
  .nav-menu.mobile-hidden {
    display: none;
  }
  
  /* Ensure dropdown stays inline on mobile */
  .dropdown-toggle {
    font-size: 0.9rem;
  }
  
  /* Mobile dropdown positioning */
  .nav-menu .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    z-index: 9999;
  }
  
  .nav-menu li:hover > .dropdown-menu,
  .nav-menu li:focus-within > .dropdown-menu {
    transform: translateX(-50%) translateY(0) !important;
  }
  
  .nav-menu .dropdown-menu.show {
    transform: translateX(-50%) translateY(0) !important;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .search-box input {
    width: 120px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .comments-section {
    margin: 1rem 0;
  }
}

/* Comments Section Styles */
.comments-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow-light);
}

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

.comments-list {
  margin-bottom: 2rem;
}

.comment-item {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-primary);
  transition: all 0.3s ease;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

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

.comment-author {
  color: var(--accent-primary);
  font-weight: 600;
}

.comment-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comment-body {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.comment-body a {
  color: var(--text-primary);
  text-decoration: underline;
  word-break: break-all;
}

.comment-body a:hover {
  opacity: 0.7;
}

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

.comment-reaction {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.comment-reaction:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.report-btn-small {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  text-decoration: none;
}

.report-btn-small:hover {
  background: #fee;
  color: #dc2626;
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

.add-comment-form {
  border-top: 2px solid var(--border-color);
  padding-top: 2rem;
}

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

.comment-form .form-group {
  margin-bottom: 1rem;
}

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

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

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

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.required {
  color: #dc2626;
}

/* Honeypot fields - hide from users but not screen readers */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 0.5rem;
  }
  
  .nav-menu a {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .search-box {
    padding: 0.4rem 0.8rem;
  }
  
  .search-box input {
    width: 100px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
}

/* Submit Page Styles */
.submit-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.submit-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.error-box, .warning-box {
  background: #fee;
  border: 2px solid #f56565;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.warning-box {
  background: #fffbeb;
  border-color: #f6ad55;
}

.error-box h3, .warning-box h3 {
  margin-bottom: 1rem;
  color: #c53030;
}

.warning-box h3 {
  color: #c05621;
}

.submit-form-container {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px var(--shadow-light);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

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

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

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.submit-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.cancel-btn {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.submit-guidelines {
  margin-top: 3rem;
}

.submit-guidelines h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.guideline-card h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.guideline-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guideline-card li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
}

.guideline-card:first-child h4 {
  color: #38a169;
}

.guideline-card:last-child h4 {
  color: #e53e3e;
}

.moderation-note {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.moderation-note p {
  margin: 0;
  color: var(--text-secondary);
}

/* Active nav link */
.nav-menu a.active {
  background: var(--accent-primary);
  color: white;
}

/* Mobile responsiveness for submit page */
@media (max-width: 768px) {
  .submit-page {
    padding: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .submit-form-container {
    padding: 1.5rem;
  }
  
  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cancel-btn {
    text-align: center;
  }
}

/* Category Page Styles */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--gradient-bg);
  border-radius: 15px;
  color: white;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-icon {
  font-size: 3rem;
}

.category-description {
  font-size: 1.2rem;
  opacity: 0.9;
}

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

.post-count {
  font-size: 1.1rem;
  opacity: 0.9;
}

.breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.separator {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

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

.no-posts-section {
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.no-posts-action {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.no-posts-action .submit-btn {
  display: inline-block;
  margin-bottom: 0;
}

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

.related-categories {
  margin-top: 3rem;
}

.related-categories h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.cat-name {
  font-weight: 500;
}

/* Search Page Styles */
.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-submit {
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: #2c5aa0;
}

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

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

.no-results {
  text-align: center;
  padding: 3rem 2rem;
}

.no-results h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.search-tips {
  margin-top: 2rem;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-tips h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.search-tips ul {
  color: var(--text-secondary);
}

.popular-tags-section {
  margin-top: 3rem;
}

.popular-tags-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.tag-count {
  font-size: 0.8rem;
  opacity: 0.7;
}

.recent-posts-section {
  margin-top: 2rem;
  text-align: center;
}

.recent-posts-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.quick-link {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.quick-link:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: white;
}

/* Highlighted search terms */
mark {
  background: #fff3cd !important;
  color: #856404 !important;
  padding: 0 2px !important;
  border-radius: 3px !important;
}

[data-theme="dark"] mark {
  background: #664d03 !important;
  color: #fff3cd !important;
}

/* Page Content Styles */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-notice {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.content-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.styled-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.styled-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.styled-list.success li::marker {
  content: "✅ ";
}

.styled-list.danger li::marker {
  content: "❌ ";
}

.styled-list.warning li::marker {
  content: "⚠️ ";
}

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

.step-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-section {
  text-align: center;
  background: var(--gradient-bg);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  margin: 3rem 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: white;
  color: var(--accent-primary);
}

.cta-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
}

.contact-card.primary {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.05) 0%, rgba(49, 130, 206, 0.1) 100%);
}

.contact-card.secondary {
  border-color: var(--accent-secondary);
}

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

.card-desc {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-info {
  margin: 1.5rem 0;
}

.contact-item {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.ministry-note {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.regions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.region-item {
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 5px;
}

/* Disclaimer & Privacy Styles */
.disclaimer-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 10px 10px 0;
}

.disclaimer-box.important {
  border-left-color: var(--accent-secondary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.privacy-principles {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.data-table, .retention-table {
  margin: 1rem 0;
}

.data-row, .retention-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  margin-bottom: 0.25rem;
  border-radius: 5px;
}

.legal-basis {
  margin: 1.5rem 0;
}

.basis-item {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.right-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.right-card h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

/* Memes Page Styles */
.meme-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.meme-cat-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.meme-cat-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.meme-cat-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.memes-grid .meme-card {
  border: 2px solid rgba(255, 107, 53, 0.2);
}

.meme-category {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.reaction-btn.featured {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
}

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

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

.tip-card h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

/* Warning boxes */
.warning-box {
  background: #fffbeb;
  border: 2px solid #f6ad55;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

[data-theme="dark"] .warning-box {
  background: rgba(246, 173, 85, 0.1);
  border-color: #f6ad55;
}

.important-note {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
  border: 2px solid #48bb78;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.important-note h4 {
  color: #38a169;
  margin-bottom: 1rem;
}

/* Mobile responsiveness for new pages */
@media (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid,
  .rights-grid,
  .tips-grid,
  .meme-category-grid {
    grid-template-columns: 1fr;
  }
  
  .data-row, .retention-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .regions-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile responsiveness for category and search */
@media (max-width: 768px) {
  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .search-input-group {
    flex-direction: column;
  }
  
  .quick-links {
    flex-direction: column;
    align-items: center;
  }
  
  .tags-cloud {
    justify-content: center;
  }
}