:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #10b981;
  --danger: #ef4444;
  --glass: rgba(30, 41, 59, 0.7);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Navbar */
nav.navbar {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #818cf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 1.5rem;
}

.nav-link.active {
  color: var(--text-main);
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.banner p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Feed Toggle */
.feed-toggle .nav-pills {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.feed-toggle .nav-link {
  padding: 0.75rem 1rem;
  margin-bottom: -1px;
  cursor: pointer;
}

.feed-toggle .nav-link.active {
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

/* Articles */
.article-preview {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.article-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.article-meta .info {
  flex-grow: 1;
}

.article-meta .date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.preview-link h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  color: var(--text-main);
}

.preview-link p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Tags */
.tag-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
  display: inline-block;
}

.tag-pill:hover {
  background: var(--primary);
  color: white;
}

.sidebar {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  justify-content: center;
}

.page-item .page-link {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0.2rem;
  border-radius: 0.5rem;
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Forms */
.auth-page .form-control {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Utils */
.pull-xs-right { float: right; }
ul { list-style: none; padding: 0; margin: 0; }
li { display: inline-block; }
.nav-item { display: inline-block; }

/* Grid */
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; padding: 0 15px; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }

@media (max-width: 768px) {
  .col-md-9, .col-md-3 { flex: 0 0 100%; max-width: 100%; }
}

footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  margin-top: 4rem;
  color: var(--text-muted);
}

footer .logo-font {
  font-weight: 700;
  color: var(--text-main);
  margin-right: 1rem;
}

.attribution {
  font-size: 0.9rem;
}

