/**
 * Theme Name: Community Hub
 * Theme URI: https://example.com
 * Description: A community-focused WordPress theme with news sections, demographic info, and weather widget area
 * 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: community-hub
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #3b322c;
    color: #f6ecd7;
    line-height: 1.6;
}

a {
    color: #8dc350;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a8db6f;
}

/* Header */
.site-header {
    background-color: #2a241f;
    padding: 2rem 0;
    border-bottom: 3px solid #8dc350;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #8dc350;
}

.site-description {
    font-size: 1.1rem;
    color: #f6ecd7;
    opacity: 0.9;
}

/* Navigation */
.main-navigation {
    background-color: #484847;
    padding: 1rem 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation li {
    margin: 0 1.5rem;
}

.main-navigation a {
    color: #f6ecd7;
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    color: #8dc350;
}

/* Main Container */
.site-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* News Section */
.news-section {
    background-color: #4a4038;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.news-section h2 {
    color: #8dc350;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #8dc350;
    padding-bottom: 0.5rem;
}

.news-item {
    background-color: #3b322c;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #8dc350;
}

.news-item h3 {
    color: #8dc350;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.news-excerpt {
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    background-color: #8dc350;
    color: #484847;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.read-more:hover {
    background-color: #a8db6f;
    color: #484847;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: #4a4038;
    padding: 1.5rem;
    border-radius: 8px;
}

.widget h3 {
    color: #8dc350;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8dc350;
    padding-bottom: 0.5rem;
}

/* Demographics Widget */
.demographics-list {
    list-style: none;
}

.demographics-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #3b322c;
    display: flex;
    justify-content: space-between;
}

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

.demo-label {
    font-weight: 600;
    color: #8dc350;
}

/* Weather Widget */
.weather-widget {
    text-align: center;
    padding: 1rem;
}

.weather-placeholder {
    background-color: #3b322c;
    padding: 2rem;
    border-radius: 5px;
    border: 2px dashed #8dc350;
}

/* Footer */
.site-footer {
    background-color: #2a241f;
    color: #f6ecd7;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #8dc350;
}

/* Responsive */
@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }
}

