/* Modern, clean, professional */
:root {
  --bg: #0f0f23;
  --panel: #1a1a2e;
  --text: #e6e6e6;
  --muted: #9ca3af;
  --accent: #6366f1;
  --link: #818cf8;
  --border: #2d2d48;
  --reading-bg: #16162a;
  --reading-text: #f1f1f1;
  --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --error: #ef4444;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fed7aa;
  --success: #10b981;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
}

/* Light mode theme */
[data-theme="light"] {
  --bg: #ffffff;
  --panel: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #6366f1;
  --link: #4f46e5;
  --border: #e5e7eb;
  --reading-bg: #ffffff;
  --reading-text: #111827;
  --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fed7aa;
  --success: #059669;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
}

* { box-sizing: border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  margin-bottom: 16px;
}
.brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.brand:hover {
  color: var(--accent);
}
.nav-right a {
  color: var(--muted);
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.nav-right a:hover {
  color: var(--text);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 8px 0 12px;
  opacity: 1;
  cursor: pointer;
  position: relative;
  padding: 8px 0;
  transform: scale(1.05);
  max-width: 100%;
  overflow: hidden;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.separator-line {
  height: 4px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: breathe 2s ease-in-out infinite;
  filter: brightness(1.3) saturate(1.2);
}

.separator-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s ease;
  transition-delay: 0.1s;
}

.separator-line-1 {
  width: 110px;
  background: linear-gradient(45deg, var(--accent), #8b5cf6, var(--link));
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite, breathe 2s ease-in-out infinite;
  animation-delay: 0s;
}

.separator-line-2 {
  width: 90px;
  background: linear-gradient(45deg, var(--link), #a855f7, #ec4899);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite, breathe 2s ease-in-out infinite;
  animation-delay: 0.5s;
}

.separator-line-3 {
  width: 70px;
  background: linear-gradient(45deg, #8b5cf6, #ec4899, #f59e0b);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite, breathe 2s ease-in-out infinite;
  animation-delay: 1s;
}

.separator:hover {
  opacity: 1;
  transform: scale(1.05);
}

.separator:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.separator:hover .separator-line {
  height: 4px;
  filter: brightness(1.3) saturate(1.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
  animation-duration: 2s;
}

.separator:hover .separator-line::before {
  left: 100%;
  transition-delay: 0.1s;
}

.separator:hover .separator-line-1 {
  width: 110px;
  animation-duration: 2s;
}

.separator:hover .separator-line-2 {
  width: 90px;
  animation-duration: 2s;
}

.separator:hover .separator-line-3 {
  width: 70px;
  animation-duration: 2s;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.separator:active {
  transform: scale(0.95);
}

.separator:active .separator-line {
  animation-duration: 0.5s;
  filter: brightness(1.5) saturate(1.4);
}

.intro { padding: 4px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.intro h1 { font-size: 1.4rem; margin: 0 0 8px; }
.intro p { color: var(--muted); margin: 0 0 16px; }

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 500px;
  transition: all 0.3s ease;
}
.search-form.focused {
  transform: scale(1.02);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  background: var(--reading-bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--reading-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  background: var(--panel);
}
.search-form input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.search-form button {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}
.search-form button::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 0.6s ease;
}
.search-form button:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(99, 102, 241, 0.3);
}
.search-form button:hover::before {
  left: 100%;
}
.search-form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.articles {
  display: grid;
  gap: 20px;
  padding: 20px 0 40px;
}
.card {
  background: var(--reading-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--soft-shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--link), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(99, 102, 241, 0.3);
}
.card:hover::before {
  opacity: 0.8;
}

.article-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.article-thumbnail {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--border) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 2px solid var(--border);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-thumbnail::before {
  content: '📄';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0.3;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.article-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: 12px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-thumbnail:hover::after {
  opacity: 1;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.article-thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(99, 102, 241, 0.1);
}

.article-thumbnail:hover img {
  transform: scale(1.08);
}

.article-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title a {
  color: var(--reading-text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}
.title a:hover {
  color: var(--accent);
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.meta .dot {
  margin: 0 8px;
  opacity: 0.6;
}
.meta .domain {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.8;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.summary {
  color: var(--text);
  opacity: 0.9;
  margin: 12px 0 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}
.tag:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent);
  color: var(--link);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.tag:hover::before {
  left: 100%;
}

.popular-tags {
  margin: 8px 0;
  padding: 6px 0;
}

.popular-tags label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 8px;
  font-weight: 500;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin: 0 4px 4px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
  transform: translateY(-1px);
}

.tag-special {
  background: linear-gradient(135deg, var(--accent), #7c3aed) !important;
  color: white !important;
  border-color: var(--accent) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.tag-special:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
  color: white !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.current-filter {
  margin: 12px 0;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
}

.current-filter span {
  color: var(--text);
}

.current-filter strong {
  color: var(--accent);
}

.clear-filter {
  margin-left: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.clear-filter:hover {
  color: var(--text);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.pagination button {
  padding: 10px 18px;
  background: var(--reading-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pagination button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.4s ease;
}
.pagination button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.25);
}
.pagination button:hover::before {
  left: 100%;
}
.pagination button:active {
  transform: translateY(0);
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.pagination button:disabled:hover {
  background: var(--reading-bg);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}
.pagination span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Article loading animations */
.card {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }
.card:nth-child(n+11) { animation-delay: 0.55s; }

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

/* Loading state animation */
.articles.loading .card {
  animation: pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, var(--reading-bg) 25%, rgba(99, 102, 241, 0.05) 50%, var(--reading-bg) 75%);
  background-size: 200% 100%;
}

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

/* Focus states for accessibility */
.nav-right a:focus,
.search-form input[type="search"]:focus,
.search-form button:focus,
.tag:focus,
.tag-link:focus,
.pagination button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.footer a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}
.footer a:hover {
  color: var(--accent);
}

/* Tablet optimizations */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 18px;
  }
  .articles { gap: 18px; }
  .card { padding: 18px; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding: 0 16px;
  }
  .nav {
    padding: 12px 0 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .nav-right a {
    margin-left: 16px;
    padding: 4px 8px;
    font-size: 0.9rem;
  }
  .articles {
    gap: 16px;
    padding: 16px 0 32px;
  }
  .card {
    padding: 16px;
    border-radius: 10px;
  }
  .article-content {
    gap: 12px;
  }
  .article-thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 10px;
  }
  .title {
    font-size: 1.1rem;
    line-height: 1.35;
  }
  .summary {
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-form input[type="search"] {
    width: 100%;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  .separator {
    transform: scale(1.05);
    margin: 6px 0 10px;
  }
  .popular-tags {
    margin: 6px 0;
    padding: 6px 0;
  }
  .tag-link {
    font-size: 0.8rem;
    padding: 3px 8px;
  }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container {
    padding: 0 12px;
  }
  .nav {
    padding: 10px 0 14px;
  }
  .articles {
    gap: 14px;
    padding: 14px 0 28px;
  }
  .card {
    padding: 14px;
  }
  .article-content {
    flex-direction: column;
    gap: 10px;
  }
  .article-thumbnail {
    width: 100%;
    height: 140px;
    align-self: stretch;
  }
  .article-text {
    width: 100%;
  }
  .title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }
  .summary {
    font-size: 0.85rem;
    margin-top: 10px;
  }
  .separator {
    transform: scale(1.05);
    margin: 4px 0 8px;
  }
  .separator-line-1 { width: 90px; }
  .separator-line-2 { width: 70px; }
  .separator-line-3 { width: 50px; }
}

/* Beautiful notification system */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  width: auto;
  min-width: 300px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: var(--hover-shadow);
  backdrop-filter: blur(8px);
  border: 1px solid;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.notification-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.notification-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.notification-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.5;
  transition: all 0.2s ease;
  color: inherit;
}

.notification-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  border-radius: 0 0 12px 12px;
  transition: width linear;
}

/* Dark theme adjustments */
[data-theme="dark"] .notification-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

[data-theme="dark"] .notification-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

[data-theme="dark"] .notification-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.back-to-top:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

.back-to-top:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile adjustments for back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
  }

  .notification {
    margin-bottom: 8px;
    padding: 12px 16px;
  }
}

/* Job card styles */
.job-card {
  background: linear-gradient(135deg, var(--reading-bg) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

.job-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.job-card::before {
  background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.job-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.salary {
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
}

.location {
  color: var(--muted);
  font-style: italic;
}

/* Pagination Styles */
.pagination {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.pagination-link {
  padding: 0.5rem 0.75rem;
  color: var(--link);
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 2.5rem;
  text-align: center;
}

.pagination-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pagination-current {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  cursor: default;
}

.pagination-current:hover {
  transform: none;
}

.pagination-prev,
.pagination-next {
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0.5rem 0.25rem;
  font-weight: 500;
}

/* Mobile pagination */
@media (max-width: 640px) {
  .pagination-container {
    gap: 0.25rem;
  }

  .pagination-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    min-width: 2rem;
  }

  .pagination-prev,
  .pagination-next {
    padding: 0.375rem 0.75rem;
  }

  .pagination-numbers {
    gap: 0.125rem;
  }
}
