:root {
  color-scheme: light dark;
  
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
}

/* CTA row for important news shortcut */
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.cta-hint {
  font-size: 14px;
  color: var(--text-secondary);
}

[data-theme='dark'] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --card-bg: #1e293b;
  --card-border: #334155;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  transition: background var(--transition-base);
}

[data-theme='dark'] .navbar {
  background: rgba(15, 23, 42, 0.8);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: var(--spacing-2xl) 0;
  margin-bottom: var(--spacing-2xl);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

/* Search Box */
.search-container {
  margin-top: var(--spacing-xl);
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-xl);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.search-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  margin-left: var(--spacing-md);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: var(--spacing-md);
  background: transparent;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.btn-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-search svg {
  width: 20px;
  height: 20px;
}

/* Quick Topics */
.quick-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
}

.quick-topics-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.topic-chip {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.topic-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.status-info {
  flex: 1;
}

.status-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Buttons */
.btn-icon {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: var(--spacing-2xl);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-md);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.loading-subtext {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* News Card */
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
  flex: 1;
}

.category-badge {
  background: var(--primary);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-source {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.news-time {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.news-importance {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--warning);
  font-size: 0.875rem;
  font-weight: 600;
}

.news-importance svg {
  width: 16px;
  height: 16px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.news-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.news-content {
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.news-tags .tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  border: 1px solid var(--card-border);
}

.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--card-border);
}

.btn-read-more {
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  flex: 1;
}

.btn-read-more:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-favorite {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.25rem;
}

.btn-favorite:hover,
.btn-favorite.active {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-favorite.active::before {
  content: '♥';
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-muted);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none; /* Başlangıçta gizli */
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal:not([hidden]) {
  display: flex; /* Hidden değilse göster */
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
  z-index: 2;
}

.modal-close:hover {
  background: var(--bg-tertiary);
}

.modal-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--card-border);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.modal-meta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.modal-body {
  padding: var(--spacing-xl);
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Colors */
.category-badge[data-category="gündem"] { background: #ef4444; }
.category-badge[data-category="spor"] { background: #10b981; }
.category-badge[data-category="ekonomi"] { background: #f59e0b; }
.category-badge[data-category="teknoloji"] { background: #6366f1; }
.category-badge[data-category="sağlık"] { background: #ec4899; }
.category-badge[data-category="siyaset"] { background: #8b5cf6; }
.category-badge[data-category="kültür"] { background: #14b8a6; }
.category-badge[data-category="dünya"] { background: #3b82f6; }

