/*
Theme Name: Majido Custom Theme
Theme URI: https://github.com/gomajido/wp-custom-theme
Author: Majido
Author URI: https://gomajido.com
Description: A custom WordPress theme for learning purposes. This theme includes all the basic template files needed for a functional WordPress site.
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: majido-custom-theme
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005177;
    text-decoration: underline;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-branding {
    margin-bottom: 20px;
}

.site-title {
    font-size: 2em;
    margin: 0;
}

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

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

/* Navigation */
.main-navigation {
    background-color: #333;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
}

.main-navigation a:hover {
    background-color: #555;
    text-decoration: none;
}

/* Content Area */
.site-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.content-area {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Posts */
.post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

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

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2em;
    margin: 0 0 10px;
}

.entry-title a {
    color: #333;
}

.entry-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.entry-content {
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-footer {
    color: #666;
    font-size: 0.9em;
}

/* Sidebar */
.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2em;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

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

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

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

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

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

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    
    .widget-area {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
}
