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

body {
    font-family: 'Roboto Slab', serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px;
}

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

a:hover {
    color: #00a0d2;
}

h1, h2, h3, h4, h5, h6 {
    clear: both;
    font-weight: 700;
    margin-bottom: 0.7em;
    line-height: 1.2;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
    margin-top: 1em;
}

h3 {
    font-size: 1.5em;
    margin-top: 0.8em;
}

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin: 0 0 1.5em 2em;
}

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

pre {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

code {
    background: #f5f5f5;
    padding: 2px 5px;
    font-family: monospace;
    font-size: 0.9em;
}

blockquote {
    margin: 0 0 1.5em;
    padding: 0 0 0 1.5em;
    border-left: 4px solid #ddd;
    font-style: italic;
    color: #666;
}

/* Header */
.site-header {
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-logo-link {
    margin-right: 20px;
}

.site-logo {
    max-width: 100px;
    height: auto;
}

.site-branding {
    flex-grow: 1;
}

.site-title {
    font-size: 1.8em;
    margin-bottom: 0;
    font-weight: 700;
}

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

.site-description {
    font-weight: 400;
    font-size: 1em;
    margin-bottom: 0;
    color: #666;
}

/* Navigation */
.main-navigation {
    flex-basis: 100%;
    margin-top: 20px;
}

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

.main-navigation li {
    margin-right: 20px;
    position: relative;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Language switcher */
.main-navigation .menu-item-has-children .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 8px 15px;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background-color: #f5f5f5;
}

.menu-toggle, .skip-link {
    display: none;
}

/* Content */
.site-content {
    padding: 20px 0;
}

.entry-title {
    font-size: 2em;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

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

.entry-title a:hover {
    color: #0073aa;
}

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

.entry-meta a {
    color: #666;
}

.entry-content {
    margin-bottom: 2em;
}

.entry-content a {
    border-bottom: 1px solid #0073aa;
}

.entry-content a:hover {
    border-bottom-color: #00a0d2;
}

.entry-content img {
    margin: 0.5em 0;
}

.entry-content img.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.entry-content img.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.entry-footer {
    font-size: 0.9em;
    color: #666;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

/* Blog posts */
.post-summary {
    margin-bottom: 2.5em;
    padding-bottom: 2.5em;
    border-bottom: 1px solid #eee;
}

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

.post-summary .entry-title {
    margin-top: 0;
}

.post-summary-content {
    margin-bottom: 0.75em;
    display: block;
    clear: both;
}

.post-summary-content p {
    margin-bottom: 0.5em;
    line-height: 1.6;
    text-align: left;
}

.read-more {
    font-weight: 700;
}

/* Pagination */
.paging-navigation {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    flex-basis: 48%;
}

.nav-next {
    text-align: right;
}

.meta-nav {
    font-size: 1.5em;
    line-height: 0;
    vertical-align: middle;
}

/* Sidebar */
#secondary {
    width: 300px;
    background: #f5f5f5;
    padding: 40px 20px;
    position: fixed;
    top: 0;
    right: -300px;
    bottom: 0;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

#secondary.open {
    right: 0;
}

.sidebar-toggle {
    cursor: pointer;
    position: fixed;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-toggle.open {
    top: 20px;
    right: 20px;
}

.sidebar-toggle.close {
    top: 20px;
    right: 20px;
}

.dashicons {
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
}

.dashicons-menu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>');
}

.dashicons-dismiss {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
}

/* Widgets */
.widget {
    margin-bottom: 2.5em;
}

.widget-title {
    margin-bottom: 1em;
    font-size: 1.2em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

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

.widget a {
    color: #333;
}

.widget a:hover {
    color: #0073aa;
}

.search-form {
    display: flex;
}

.search-field {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-right: none;
}

.search-submit {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

.search-submit:hover {
    background: #00a0d2;
}

/* Screen reader */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Footer */
.site-footer {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Syntax highlighting */
.wp_syntax {
    color: #100;
    background-color: #f9f9f9;
    border: 1px solid silver;
    margin: 0 0 1.5em 0;
    overflow: auto;
}

.wp_syntax .code {
    padding: 12px 0;
    margin: 0;
}

.wp_syntax pre {
    border: none;
    background: transparent;
    padding: 0 12px;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

/* Tags */
.tags-links {
    display: block;
    margin-top: 1em;
}

/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-logo-link {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .menu-toggle {
        display: block;
        margin-bottom: 10px;
        padding: 8px 16px;
        background: #0073aa;
        color: white;
        border: none;
        cursor: pointer;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: block;
    }
    
    .entry-content img.alignleft,
    .entry-content img.alignright {
        float: none;
        margin: 1em 0;
        display: block;
    }
}