/**
 * Partículas elementales - Kindle-inspired eReader Styles
 * Black and white aesthetic for distraction-free reading
 */

/* ============================================================
   TYPOGRAPHY - Import Serif Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;600&family=IBM+Plex+Serif:wght@300;400;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES - eReader Color Palette
   ============================================================ */
:root {
  /* eReader Colors */
  --paper-white: #f4f1ea;
  --paper-cream: #ebe7dd;
  --ink-black: #1a1a1a;
  --ink-gray: #4a4a4a;
  --ink-light: #6a6a6a;
  --border-gray: #d4d0c8;
  --highlight-yellow: #ffeb99;

  /* Typography */
  --font-serif: 'Crimson Pro', 'Georgia', serif;
  --font-sans: 'IBM Plex Serif', 'Times New Roman', serif;

  /* Spacing & Layout */
  --reading-width: 680px;
  --line-height-body: 1.8;
  --line-height-heading: 1.3;
}

/* ============================================================
   BASE STYLES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-serif);
  background: var(--paper-white);
  color: var(--ink-black);
  line-height: var(--line-height-body);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--ink-black);
}

h1 {
  font-size: 48px;
  letter-spacing: -1px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

a {
  color: var(--ink-black);
  text-decoration: underline;
  text-decoration-color: var(--ink-light);
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--ink-black);
}

/* ============================================================
   HEADER - Compact
   ============================================================ */
header {
  background: white;
  border-bottom: 2px solid var(--ink-black);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left h1 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-black);
  letter-spacing: -0.5px;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  background: var(--paper-cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-gray);
  transition: all 0.15s ease;
}

.header-icon-btn:hover {
  background: var(--border-gray);
  color: var(--ink-black);
  transform: scale(1.05);
}

.header-icon-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   AUTH SECTION - User Sign In
   ============================================================ */
#user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gray);
}

.user-name {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-gray);
  font-style: normal;
}

/* ============================================================
   MAIN CONTENT CONTAINER
   ============================================================ */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ============================================================
   PAGE FOOTER
   ============================================================ */
body > footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-light);
  font-size: 14px;
  font-family: var(--font-sans);
}

/* ============================================================
   POST CARDS - Modern Minimal
   ============================================================ */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: white;
  border: none;
  border-radius: 8px;
  padding: 24px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.post-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.post-card:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Header with source badge */
.post-header {
  margin-bottom: 8px;
}

.blog-source {
  background: var(--paper-cream);
  color: var(--ink-gray);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  display: inline-block;
}

/* Title - prominent */
.post-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.post-card:hover .post-title {
  color: #444;
}

/* Meta info */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.post-date {
  color: var(--ink-light);
}

/* Description - better readability */
.post-description {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read status - subtle indication */
.post-card.read {
  opacity: 0.5;
  border-color: var(--border-gray);
}

.post-card.read .post-title {
  text-decoration: line-through;
  color: var(--ink-light);
}

/* Post actions - action buttons */
.post-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-cream);
}

.action-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border-gray);
  background: white;
  color: var(--ink-gray);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  flex: 1;
}

.action-btn:hover {
  background: var(--paper-cream);
  border-color: var(--ink-black);
  color: var(--ink-black);
}

.read-btn:hover {
  background: var(--ink-black);
  color: white;
}

.not-relevant-btn:hover {
  background: var(--ink-light);
  color: white;
  border-color: var(--ink-light);
}

.save-btn:hover {
  background: var(--highlight-yellow);
  border-color: #d4a500;
  color: var(--ink-black);
}

/* Icon-only action buttons */
.action-icon-btn {
  background: var(--paper-cream);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-light);
  transition: all 0.15s ease;
}

.action-icon-btn:hover {
  background: var(--border-gray);
  color: var(--ink-black);
  transform: scale(1.05);
}

.action-icon-btn:active {
  transform: scale(0.95);
}

.action-icon-btn.save-btn:hover {
  background: var(--highlight-yellow);
  color: #b8860b;
}

.action-icon-btn.not-relevant-btn:hover {
  background: #fde8e8;
  color: #c53030;
}

.inbox-btn:hover {
  background: var(--ink-black);
  color: white;
}

/* ============================================================
   ARTICLE READER MODAL - Full Screen Reading Experience
   ============================================================ */
.article-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.article-modal.active {
  display: block;
}

.article-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.article-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper-white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ink-black);
  width: 0;
  transition: width 0.1s ease;
  z-index: 1001;
}

/* Article header with close button and meta */
.article-header {
  position: sticky;
  top: 0;
  background: var(--paper-white);
  border-bottom: 1px solid var(--border-gray);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.close-btn {
  background: white;
  border: 1px solid var(--border-gray);
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-black);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.close-btn:hover {
  background: var(--paper-cream);
  border-color: var(--ink-black);
}

.save-article-btn {
  background: white;
  border: 1px solid var(--border-gray);
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-gray);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  margin-left: auto;
}

.save-article-btn:hover {
  background: var(--paper-cream);
  border-color: var(--ink-black);
  color: var(--ink-black);
}

.save-article-btn.saved {
  background: var(--highlight-yellow);
  border-color: #d4a500;
  color: var(--ink-black);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-light);
}

.article-meta .blog-badge {
  background: var(--ink-black);
  color: white;
  padding: 4px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-meta .author {
  font-style: italic;
}

.article-meta .read-time {
  color: var(--ink-gray);
}

.article-meta .site-name {
  color: var(--ink-light);
}

/* Article body - centered, book-like layout */
.article-body {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 60px 40px 120px;
}

.article-title {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-black);
  margin-bottom: 32px;
  text-align: left;
}

/* Article content typography */
.article-content {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink-black);
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

.article-content p {
  margin-bottom: 1.5em;
  text-align: justify;
  hyphens: auto;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: var(--ink-black);
}

.article-content h2 {
  font-size: 28px;
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 22px;
}

.article-content h4 {
  font-size: 18px;
}

.article-content a {
  color: var(--ink-black);
  text-decoration: underline;
  text-decoration-color: var(--ink-light);
}

.article-content a:hover {
  text-decoration-color: var(--ink-black);
}

.article-content blockquote {
  border-left: 3px solid var(--ink-black);
  padding-left: 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--ink-gray);
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  border: 1px solid var(--border-gray);
  display: block;
}

.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content code {
  font-family: 'Courier New', monospace;
  background: var(--paper-cream);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--ink-black);
}

.article-content pre {
  background: var(--paper-cream);
  padding: 16px;
  overflow-x: auto;
  border-left: 3px solid var(--ink-light);
  margin: 1.5em 0;
  border-radius: 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-gray);
  margin: 2em 0;
}

/* AI Summary Section */
.article-summary {
  background: #f9f6f0;
  border-left: 3px solid #8b7355;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.summary-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8b7355;
  margin-bottom: 8px;
  font-weight: 600;
}

.summary-tldr {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 12px 0;
}

.summary-key-points {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.summary-key-points li {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 6px;
}

.summary-key-points li:last-child {
  margin-bottom: 0;
}

/* Recommendation Display */
.summary-recommendation {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 4px;
}

.recommendation-high {
  background: #e8f5e9;
  border-left: 3px solid #4caf50;
}

.recommendation-medium {
  background: #fff8e1;
  border-left: 3px solid #ff9800;
}

.recommendation-low {
  background: #fce4ec;
  border-left: 3px solid #e91e63;
}

.recommendation-score {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.recommendation-high .recommendation-score {
  color: #2e7d32;
}

.recommendation-medium .recommendation-score {
  color: #e65100;
}

.recommendation-low .recommendation-score {
  color: #c2185b;
}

.recommendation-reason {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

/* Summary Loading Animation */
.summary-loading-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  font-family: var(--font-sans);
  font-size: 14px;
}

.summary-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #8b7355;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Kindle-style highlighting */
.article-content mark,
.article-content .highlight {
  background: var(--highlight-yellow);
  color: var(--ink-black);
  padding: 2px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.article-content mark:hover,
.article-content .highlight:hover {
  background: #ffdf66;
}

/* Highlight button (appears on text selection) */
.highlight-btn {
  position: absolute;
  background: var(--ink-black);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.highlight-btn:hover {
  background: var(--ink-gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.highlight-btn:active {
  transform: translateY(0);
}

/* Article footer */
.article-footer {
  max-width: var(--reading-width);
  margin: 40px auto 0;
  padding: 24px 40px;
  border-top: 1px solid var(--border-gray);
  text-align: center;
}

.original-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-gray);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.original-link:hover {
  color: var(--ink-black);
}

/* Loading state */
.article-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--ink-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.article-loading p {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-light);
}

/* Error state */
.article-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 60px 40px;
  text-align: center;
}

.article-error h2 {
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--ink-black);
  margin-bottom: 16px;
}

.error-message {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink-gray);
  margin-bottom: 32px;
  max-width: 500px;
}

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

.error-actions button {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 24px;
  border: 1px solid var(--ink-black);
  background: white;
  color: var(--ink-black);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.error-actions button:hover {
  background: var(--ink-black);
  color: white;
}

.open-original-btn {
  background: var(--ink-black);
  color: white;
}

.open-original-btn:hover {
  background: var(--ink-gray);
}

/* ============================================================
   LOADING STATES - Skeleton Screens
   ============================================================ */
.loading {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-light);
}

.loading::after {
  content: '.';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Skeleton loading for posts */
.post-skeleton {
  background: white;
  border: 1px solid var(--border-gray);
  padding: 32px;
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.skeleton-line {
  background: var(--paper-cream);
  height: 14px;
  margin-bottom: 12px;
  border-radius: 2px;
}

.skeleton-line.title {
  height: 24px;
  width: 70%;
  margin-bottom: 16px;
}

.skeleton-line.short {
  width: 40%;
}

/* ============================================================
   FILTERS & CONTROLS
   ============================================================ */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-gray);
}

.filter-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 12px 24px;
  border: none;
  border-right: 1px solid var(--border-gray);
  background: white;
  color: var(--ink-gray);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:last-child {
  border-right: none;
}

.filter-btn:hover {
  background: var(--paper-cream);
  color: var(--ink-black);
}

.filter-btn.active {
  background: var(--ink-black);
  color: white;
}

.count-badge {
  background: var(--paper-cream);
  color: var(--ink-black);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.filter-btn.active .count-badge {
  background: white;
  color: var(--ink-black);
}

/* Search box */
.search-box {
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 10px 16px;
  border: 1px solid var(--border-gray);
  background: white;
  color: var(--ink-black);
  width: 100%;
  max-width: 300px;
  transition: border-color 0.2s ease;
}

.search-box:focus {
  outline: none;
  border-color: var(--ink-black);
}

.search-box::placeholder {
  color: var(--ink-light);
  font-style: italic;
}

/* ============================================================
   BLOG MANAGEMENT MODAL
   ============================================================ */
.blog-management-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.blog-management-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-management-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.blog-management-content {
  position: relative;
  background: var(--paper-white);
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  border: 2px solid var(--ink-black);
  z-index: 1;
}

.blog-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-gray);
}

.blog-management-header h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-black);
}

.blog-management-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--ink-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: color 0.2s ease;
}

.blog-management-close:hover {
  color: var(--ink-black);
}

.blog-list {
  margin-bottom: 32px;
}

.blog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gray);
}

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

.blog-info {
  flex: 1;
}

.blog-info-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-black);
  margin-bottom: 4px;
}

.blog-info-url {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-gray);
  word-break: break-all;
}

.delete-blog-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-gray);
  color: var(--ink-gray);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  margin-left: 16px;
}

.delete-blog-btn:hover {
  background: var(--ink-light);
  color: white;
  border-color: var(--ink-light);
}

/* User Interests Section */
.user-interests-section {
  padding: 24px 0;
  border-top: 1px solid var(--border-gray);
}

.user-interests-section h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-black);
  margin-bottom: 8px;
}

.interests-description {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink-gray);
  margin-bottom: 12px;
}

#user-interests {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  font-family: var(--font-serif);
  font-size: 15px;
  border: 1px solid var(--border-gray);
  border-radius: 0;
  resize: vertical;
  margin-bottom: 12px;
}

#user-interests:focus {
  outline: none;
  border-color: var(--ink-black);
}

.save-interests-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 10px 20px;
  background: var(--ink-black);
  color: white;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.save-interests-btn:hover {
  background: var(--ink-gray);
}

.add-blog-section {
  padding-top: 32px;
  border-top: 2px solid var(--border-gray);
}

.add-blog-section h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-black);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-gray);
  background: white;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink-black);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ink-black);
}

.add-blog-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 12px 24px;
  background: var(--ink-black);
  color: white;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  width: 100%;
}

.add-blog-btn:hover {
  background: var(--ink-gray);
}

.add-blog-btn:disabled {
  background: var(--border-gray);
  color: var(--ink-light);
  cursor: not-allowed;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  color: var(--ink-black);
  margin-bottom: 16px;
}

.empty-state p {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink-gray);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  header h1 {
    font-size: 36px;
  }

  header p {
    font-size: 14px;
  }

  main {
    padding: 24px 16px;
  }

  .post-card {
    padding: 24px;
  }

  .post-title {
    font-size: 20px;
  }

  .post-description {
    font-size: 16px;
  }

  .article-header {
    padding: 16px 20px;
  }

  .article-body {
    padding: 40px 20px 80px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-content {
    font-size: 18px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .filters {
    padding-bottom: 16px;
  }

  .filter-group {
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    border-right: none;
    border-bottom: 1px solid var(--border-gray);
    justify-content: space-between;
  }

  .filter-btn:last-child {
    border-bottom: none;
  }

  .search-box {
    max-width: 100%;
  }

  .blog-management-content {
    width: 95%;
    padding: 24px;
  }

  .blog-management-header h2 {
    font-size: 24px;
  }

  .blog-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .delete-blog-btn {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 24px 16px;
  }

  header h1 {
    font-size: 28px;
  }

  .post-card {
    padding: 20px;
  }

  .post-title {
    font-size: 18px;
  }

  .article-body {
    padding: 32px 16px 60px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-content {
    font-size: 17px;
  }
}

/* ============================================================
   PRINT STYLES - For printing articles
   ============================================================ */
@media print {
  .article-header,
  .article-footer,
  .close-btn,
  .reading-progress {
    display: none;
  }

  .article-modal-content {
    background: white;
  }

  .article-body {
    max-width: 100%;
    padding: 0;
  }

  .article-content {
    color: black;
  }
}

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