.nav-active {
  color: var(--accent-blue) !important;
}

.content-hero {
  padding: 140px 0 80px;
  background: var(--bg-secondary);
}

.content-actions {
  text-align: center;
  margin-top: 40px;
}

.content-filters {
  padding: 32px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.content-list {
  padding: 80px 0;
  background: var(--bg-primary);
  min-height: 400px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.articles-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.articles-loading p {
  color: var(--text-muted);
  font-size: 14px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  padding: 4px 10px;
  background: var(--accent-blue-light);
  border-radius: 12px;
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.article-tag {
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.article-schema {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-teal);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.article-schema svg {
  flex-shrink: 0;
}

.no-articles {
  text-align: center;
  padding: 80px 0;
}

.no-articles-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-articles h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.no-articles p {
  font-size: 16px;
  color: var(--text-secondary);
}

.aeo-tips {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.tip-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.tip-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-blue);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.tip-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.tip-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.editor-section {
  padding: 120px 0 80px;
  background: var(--bg-primary);
  min-height: 100vh;
}

.editor-header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--accent-blue);
}

.editor-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.editor-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
}

.editor-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.editor-panel .form-group {
  margin-bottom: 24px;
}

.editor-panel .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.editor-panel .form-group input,
.editor-panel .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  resize: vertical;
}

.editor-panel .form-group input::placeholder,
.editor-panel .form-group textarea::placeholder {
  color: var(--text-muted);
}

.editor-panel .form-group input:focus,
.editor-panel .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.editor-panel .form-group input.error,
.editor-panel .form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.char-count.warning {
  color: var(--warning);
}

.char-count.over {
  color: var(--error);
}

.toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.toolbar-btn {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.toolbar + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-card .form-group {
  margin-bottom: 0;
}

.sidebar-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sidebar-card select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.publish-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.draft {
  background: var(--warning);
}

.status-dot.published {
  background: var(--success);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-label input {
  display: none;
}

.toggle-switch {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-switch {
  background: var(--accent-blue);
}

.toggle-label input:checked + .toggle-switch::after {
  left: 21px;
  background: #fff;
}

.sidebar-actions {
  margin-top: 20px;
}

.btn-full {
  width: 100%;
}

.tags-input-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  transition: all 0.3s ease;
}

.tags-input-wrapper:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background: rgba(0, 163, 255, 0.25);
}

.tag-chip svg {
  width: 12px;
  height: 12px;
}

.tags-input-wrapper input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-family);
  outline: none;
  flex: 1;
  min-width: 80px;
  padding: 2px 4px;
}

.tags-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.aeo-score-card {
  border-color: var(--border-glow);
}

.aeo-score-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.aeo-score-ring svg {
  width: 100%;
  height: 100%;
}

.aeo-score-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.aeo-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.check-item::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.check-item.passed {
  color: var(--accent-teal);
}

.check-item.passed::before {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.save-success {
  text-align: center;
  padding: 80px 0;
}

.save-success .success-icon {
  color: var(--success);
  margin-bottom: 24px;
}

.save-success h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.save-success p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editor-main {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .editor-sidebar .sidebar-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .content-hero {
    padding: 120px 0 60px;
  }

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

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

  .editor-section {
    padding: 100px 0 60px;
  }

  .editor-header h1 {
    font-size: 28px;
  }

  .editor-sidebar {
    grid-template-columns: 1fr;
  }

  .success-actions {
    flex-direction: column;
    align-items: center;
  }
}
