/* Dark Theme - Modern & Clean */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 20px;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.7;
  font-size: 17px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

.sidebar h3 {
  margin: 0 0 16px 0;
  font-size: 0.85rem;
  color: #6e7681;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.author-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.author-list li {
  margin-bottom: 8px;
}

.author-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #8b949e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.author-filter:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.author-filter.active {
  background: #238636;
  border-color: #238636;
  color: #ffffff;
}

.author-filter .count {
  font-size: 0.75rem;
  opacity: 0.7;
}

.content {
  flex: 1;
  min-width: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 2px solid #21262d;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0f6fc;
  letter-spacing: -0.02em;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  text-decoration: underline;
}

.search-toggle {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-toggle:hover {
  background: #30363d;
  border-color: #238636;
}

.search-box {
  flex: 1;
  max-width: 400px;
  display: flex;
  gap: 8px;
}

.search-box form {
  margin: 0;
  display: flex;
  gap: 8px;
  flex: 1;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #161b22;
  color: #8b949e;
  font-size: 0.85rem;
}

.search-box input[type="text"]:focus {
  outline: none;
  border-color: #58a6ff;
  color: #c9d1d9;
}

.search-box input[type="submit"] {
  padding: 6px 12px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  color: #c9d1d9;
}

.search-box input[type="submit"]:hover {
  background: #30363d;
  border-color: #238636;
}
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #f0f6fc;
  letter-spacing: -0.02em;
}

header p {
  color: #8b949e;
  font-size: 1.1rem;
  margin: 0;
}

form {
  margin: 32px 0;
  text-align: center;
}

input[type="text"] {
  padding: 14px 18px;
  border: 2px solid #30363d;
  border-radius: 8px;
  background: #161b22;
  color: #f0f6fc;
  font-size: 1rem;
  width: 280px;
  margin-right: 12px;
  transition: all 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input[type="submit"] {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: #238636;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="submit"]:hover {
  background: #2ea043;
  transform: translateY(-1px);
}

.feed-info {
  color: #484f58;
  font-size: 0.85rem;
  margin: 0 0 16px 0;
}

.entry {
  background: #161b22;
  border: 1px solid #30363d;
  margin: 24px 0;
  padding: 24px 28px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.entry:hover {
  border-color: #58a6ff;
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.1);
  transform: translateY(-2px);
}

.entry-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #30363d;
}

.entry-meta {
  flex: 1;
  min-width: 0;
}

.entry h2 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.entry h2 a {
  color: #f0f6fc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry h2 a:hover {
  color: #58a6ff;
}

.entry h2 a::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2358a6ff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.entry h2 a:hover::after {
  opacity: 1;
}

.meta {
  color: #6e7681;
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #21262d;
  line-height: 1.6;
}

.meta a {
  color: #8b949e;
  text-decoration: none;
  font-weight: 500;
}

.meta a:hover {
  color: #58a6ff;
  text-decoration: underline;
}

.meta .author {
  font-weight: 600;
  color: #8b949e;
}

.meta .separator {
  margin: 0 8px;
  color: #484f58;
}

.summary {
  color: #b1bac4;
  line-height: 1.75;
  font-size: 1rem;
}

.summary a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}

.summary a:hover {
  text-decoration: underline;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #58a6ff;
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.pagination {
  text-align: center;
  margin: 48px 0;
  padding: 24px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}

.pagination-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 6px;
  color: #8b949e;
  text-decoration: none;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  color: #ffffff;
  border-color: #238636;
  background: #238636;
}

.pagination-current {
  color: #6e7681;
  margin: 0 16px;
  font-weight: 500;
}

footer {
  margin-top: 64px;
  padding: 32px 0;
  text-align: center;
  color: #484f58;
  border-top: 1px solid #21262d;
  font-size: 0.9rem;
}

footer {
  margin-top: 32px;
  padding: 16px 0;
  text-align: center;
  color: #484f58;
  border-top: 1px solid #21262d;
  font-size: 0.75rem;
}

footer a {
  color: #6e7681;
  text-decoration: none;
}

footer a:hover {
  color: #58a6ff;
  text-decoration: underline;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  border-color: #58a6ff;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 15%);
}

.locale-toggle {
  position: fixed;
  top: 20px;
  right: 80px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000;
  font-size: 0.85rem;
  font-weight: bold;
  color: #c9d1d9;
  text-decoration: none;
  text-transform: lowercase;
}

.locale-toggle:hover {
  border-color: #58a6ff;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 15%);
}

@media (max-width: 768px) {
  body { padding: 12px; }
  h1 { font-size: 1.3rem; }
  header { flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .search-toggle { padding: 4px 8px; font-size: 0.9rem; }
  .search-box { max-width: 100%; order: 3; width: 100%; }
  .search-box input[type="text"] { padding: 4px 8px; font-size: 0.8rem; }
  .search-box input[type="submit"] { padding: 4px 8px; font-size: 0.75rem; }
  .entry { padding: 16px; margin: 12px 0; }
  .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; box-sizing: border-box; }
  .pagination-link { flex-shrink: 0; margin: 2px; padding: 4px 8px; font-size: 0.85rem; }
  .pagination-link:hover { background: #30363d; border-color: #238636; }
  .pagination-ellipsis { display: none; }
  .pagination-current { flex-shrink: 0; margin: 2px; padding: 4px 8px; font-size: 0.85rem; }
  .layout { flex-direction: column; gap: 16px; }
  .sidebar { width: 100%; position: static; max-height: 200px; overflow-y: auto; }
  .sidebar h3 { font-size: 0.9rem; margin-bottom: 8px; }
  .author-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .author-list li { margin-bottom: 0; }
  .author-filter { font-size: 0.75rem; padding: 2px 6px; }
  .theme-toggle { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
  .locale-toggle { top: 8px; right: 48px; width: 32px; height: 32px; font-size: 0.75rem; border-radius: 8px; }
}
