/*
Theme Name: Mihaaru News Theme
Theme URI: https://mihaaru.com
Author: Qwen
Author URI: https://qwen.ai
Description: A clean, responsive news and magazine WordPress theme inspired by Mihaaru.com. Features a modern layout, mobile-friendly design, and optimized readability.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mihaaru
Tags: news, magazine, responsive, two-columns, custom-header, custom-menu, featured-images, translation-ready
*/

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; line-height: 1.6; color: #333; background-color: #f4f4f4; }
a { text-decoration: none; color: #0056b3; transition: color 0.3s ease; }
a:hover { color: #003d82; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header { background: #fff; border-bottom: 3px solid #e63946; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.site-title { font-size: 2rem; font-weight: 800; color: #e63946; text-transform: uppercase; letter-spacing: -1px; }
.site-title a { color: #e63946; }

/* Navigation */
.main-navigation ul { list-style: none; display: flex; gap: 20px; }
.main-navigation a { color: #333; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; }
.main-navigation a:hover { color: #e63946; }

/* Main Content Area */
.site-content { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; margin-bottom: 50px; }
.content-area { flex: 3; min-width: 300px; }
.widget-area { flex: 1; min-width: 250px; }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.post-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s; }
.post-card:hover { transform: translateY(-3px); }
.post-thumbnail { width: 100%; height: 200px; object-fit: cover; }
.post-content { padding: 20px; }
.post-title { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3; }
.post-title a { color: #222; }
.post-title a:hover { color: #e63946; }
.post-meta { font-size: 0.85rem; color: #777; margin-bottom: 10px; }
.post-excerpt { font-size: 0.95rem; color: #555; }

/* Single Post */
.single-post { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.single-post .post-title { font-size: 2rem; margin-bottom: 15px; }
.single-post .post-meta { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.single-post .entry-content { font-size: 1.1rem; line-height: 1.8; }

/* Sidebar Widgets */
.widget { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.widget-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e63946; color: #222; }
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.widget li:last-child { border-bottom: none; }

/* Footer */
.site-footer { background: #222; color: #fff; padding: 40px 0 20px; margin-top: auto; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-widget { flex: 1; min-width: 200px; }
.footer-widget h3 { font-size: 1.1rem; margin-bottom: 15px; color: #e63946; }
.footer-widget a { color: #ccc; }
.footer-widget a:hover { color: #fff; }
.site-info { text-align: center; padding-top: 20px; margin-top: 30px; border-top: 1px solid #444; font-size: 0.9rem; color: #999; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .site-content { flex-direction: column; }
}