/*
Theme Name: Simple News
Theme URI: https://github.com/yourusername/simple-news
Author: Your Name
Author URI: https://yourwebsite.com
Description: A clean, simple, and modern WordPress theme for news sites. Lightweight and easy to customize.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-news
Tags: news, blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready

Simple News is a clean and minimal WordPress theme for news websites.
*/

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

:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --max-width: 1200px;
    --spacing: 1.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.site-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.site-header .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-color);
}

.site-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
}

/* Main Content */
.site-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .site-main {
        grid-template-columns: 1fr;
    }
}

.content-area {
    background: var(--bg-color);
    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-color);
}

.post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-header {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--text-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-thumbnail {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    margin-top: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

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

/* Single Post */
.single-post .post-title {
    font-size: 2.5rem;
}

/* Archive */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.archive-title {
    font-size: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-color);
}

.comment-metadata {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.comment-content {
    margin-top: 1rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.children {
    list-style: none;
    margin-left: 2rem;
    margin-top: 1rem;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.9;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    gap: 1rem;
}

.comment-navigation a {
    color: var(--primary-color);
    font-weight: 500;
}

.no-comments {
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.site-footer a {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .site-header .site-container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        justify-content: center;
    }
    
    .content-area,
    .sidebar {
        padding: 1.5rem;
    }
}

/* Utilities */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

