/*
Theme Name: FiliCode
Theme URI: https://example.com/filicode
Author: Your Name
Author URI: https://example.com
Description: A simple and clean WordPress theme named FiliCode.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: filicode
Tags: blog, simple, clean, responsive
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.site-description {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.site-main .container {
    display: flex;
    gap: 40px;
}

.content-area {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Posts */
.post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: #333;
    font-size: 28px;
}

.post-title a:hover {
    color: #0073aa;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-content {
    margin-top: 20px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-thumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.post-tags {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.post-tags a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.post-tags a:hover {
    background-color: #0073aa;
    color: #fff;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Navigation */
.posts-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.posts-navigation a {
    color: #0073aa;
    text-decoration: none;
}

.posts-navigation a:hover {
    text-decoration: underline;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-form .search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.search-form .search-submit {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background-color: #005a87;
}

/* Widgets */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.widget-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    text-decoration: none;
}

.widget a:hover {
    color: #0073aa;
}

/* Page Links */
.page-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.page-links a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.page-links a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Error Pages */
.error-404,
.no-results {
    text-align: center;
    padding: 40px 0;
}

.error-404 .page-title,
.no-results .page-title {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

/* Home Page Template */
.home-page-content {
    padding: 60px 0;
    text-align: center;
}

.home-page-heading {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Footer */
.site-footer {
    background-color: #f5f5f5;
    padding: 30px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .posts-navigation .nav-links {
        flex-direction: column;
        gap: 15px;
    }
}
