/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  background: #111827;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: #d1d5db;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #facc15;
}

.admin-btn {
  background: #facc15;
  color: #111827;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.admin-btn:hover {
  background: #eab308;
}

/* Layout */
.main-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.blog-header {
  margin-bottom: 2rem;
}

.blog-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.blog-subtitle {
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Blog Posts */
.blog-post {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: fadeInUp 0.5s ease forwards;
}

.post-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-image img:hover {
  transform: scale(1.05);
}

.post-content-wrapper {
  padding: 1.5rem;
}

.post-tags .tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.post-title {
  font-size: 1.5rem;
  margin: 0.8rem 0;
  color: #111827;
  transition: color 0.3s;
}

.post-title:hover {
  color: #2563eb;
}

.post-excerpt {
  color: #4b5563;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #6b7280;
}

.post-meta span {
  margin-right: 1rem;
}

.read-more {
  text-decoration: none;
  font-weight: 600;
  color: #2563eb;
  transition: color 0.3s;
}

.read-more:hover {
  color: #1d4ed8;
}

/* Sidebar */
.sidebar .sidebar-widget {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.category-list,
.recent-posts-list {
  list-style: none;
}

.category-list li,
.recent-posts-list li {
  margin-bottom: 0.8rem;
}

.category-list a,
.recent-posts-list a {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s;
}

.category-list a:hover,
.recent-posts-list a:hover {
  color: #2563eb;
}

.category-list span {
  color: #6b7280;
  font-size: 0.9rem;
  margin-left: 0.3rem;
}

.recent-posts-list .post-date {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.empty-state i {
  font-size: 2.5rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    display: none;
  }

  .header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}
