/*
Theme Name: DevBlog
Theme URI: https://example.com
Description: A professional, responsive WordPress theme for development blogs
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devblog
Tags: blog, two-columns, responsive-layout, custom-menu, featured-images, threaded-comments
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #64748b;
  --dark: #0f172a;
  --light: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-branding h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.site-branding a {
  text-decoration: none;
  color: inherit;
}

.site-description {
  font-size: 0.875rem;
  color: var(--secondary);
}

/* Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.main-navigation a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Main Content */
.site-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0;
  min-height: 60vh;
}

.content-area {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Posts */
.post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post:last-child {
  border-bottom: none;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.entry-title a {
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s;
}

.entry-title a:hover {
  color: var(--primary);
}

.entry-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--secondary);
  flex-wrap: wrap;
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3 {
  margin: 2rem 0 1rem;
  color: var(--dark);
}

.entry-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.entry-content code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.read-more:hover {
  background: var(--primary-dark);
}

/* Sidebar */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.widget a:hover {
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.comment-list {
  list-style: none;
}

.comment {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light);
  border-radius: 6px;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  text-align: center;
}

.footer-content a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .site-main {
    grid-template-columns: 1fr;
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    width: 100%;
    order: 3;
  }
  
  .main-navigation ul {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }
  
  .main-navigation.toggled ul {
    display: flex;
  }
  
  .main-navigation li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .entry-title {
    font-size: 1.5rem;
  }
}