/* 
Home Money Theme - Main Styles
*/

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

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

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

a {
    color: #007cba;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007cba;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Main Content */
.site-main {
    margin: 40px 0;
}

.content-area {
    grid-column: 1;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.entry-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

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

.read-more {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 15px;
    transition: background 0.3s;
}

.read-more:hover {
    background: #005a87;
    text-decoration: none;
}

/* Single Post */
.single-post .entry-header {
    margin-bottom: 30px;
}

.single-post .entry-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.single-post .post-thumbnail {
    margin-bottom: 30px;
}

.single-post .post-thumbnail img {
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-links {
    margin-bottom: 20px;
}

.tag-links a {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin: 0 5px 5px 0;
}

/* Sidebar */
.widget-area {
    grid-column: 2;
}

.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    margin-bottom: 30px;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 14px;
}

.site-info a {
    color: #ecf0f1;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.page-numbers:hover {
    background: #f0f0f0;
    text-decoration: none;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-submit {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.search-submit:hover {
    background: #005a87;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment-body {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
}

.comment-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .page-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.helpful-links ul,
.recent-posts ul {
    display: inline-block;
    text-align: left;
    list-style: none;
}

.helpful-links li,
.recent-posts li {
    padding: 5px 0;
}

/* Archive Header */
.page-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 40px 0;
    background: #fff;
    border-radius: 8px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.archive-description {
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #eee;
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .single-post .entry-title {
        font-size: 28px;
    }
    
    .site-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* Utility Classes */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}