/* Blog Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #1a1a2e;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
}

/* Site Navigation */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: #16213e;
  border-bottom: 1px solid #333;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.nav-active {
  color: #fff;
  background: rgba(78, 204, 163, 0.2);
  border: 1px solid #4ecca3;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 3px solid #4ecca3;
}

.site-title {
  font-size: 2.5rem;
  color: #4ecca3;
  margin-bottom: 10px;
}

.site-tagline {
  color: #888;
  font-size: 1.1rem;
}

/* Main Layout with Sidebar */
.main-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 30px;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* Sidebar */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.ad-container {
  background: #16213e;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  min-height: 250px;
}

/* Responsive - stack on mobile */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

/* Main Content */
main {
  padding: 40px 0;
}

/* Posts */
.post {
  background: #16213e;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.post:hover {
  transform: translateY(-2px);
}

.post-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.post-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.post-meta {
  color: #888;
  font-size: 0.9rem;
}

.post-date {
  margin-right: 15px;
}

.post-author {
  color: #4ecca3;
}

.post-content {
  color: #ddd;
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 15px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: #fff;
  margin: 25px 0 15px 0;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
}

.post-content ul,
.post-content ol {
  margin: 15px 0 15px 25px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content a {
  color: #4ecca3;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content strong {
  color: #fff;
}

.post-content blockquote {
  border-left: 3px solid #4ecca3;
  padding-left: 20px;
  margin: 20px 0;
  color: #aaa;
  font-style: italic;
}

/* Post Footer / Tags */
.post-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #1a1a2e;
  color: #4ecca3;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #4ecca3;
}

/* Loading / Error States */
.loading,
.error,
.no-posts {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 1.1rem;
}

.error {
  color: #e74c3c;
}

/* Footer */
footer {
  background: #16213e;
  padding: 30px 0;
  text-align: center;
  color: #666;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 600px) {
  .site-title {
    font-size: 2rem;
  }

  .post {
    padding: 20px;
  }

  .post-title {
    font-size: 1.4rem;
  }
}
