/*
Theme Name: King Viral Box Theme
Description: A theme with king.theviralbox.info style
Version: 1.0
*/

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background-color: #f7f7f7;
}

ol, ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* King Viral Box Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 99;
    border-bottom: 1px solid #eaeaea;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
    color: #222;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu-container {
    display: flex;
}

#primary-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

#primary-menu li {
    position: relative;
}

#primary-menu > li {
    margin: 0 10px;
}

#primary-menu > li:last-child {
    margin-right: 0;
}

#primary-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

#primary-menu a:hover {
    color: #0073aa;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    align-items: center;
}

.menu-toggle-text {
    margin-right: 5px;
    font-size: 16px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-toggle-icon .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Content Area */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.entry-meta .author {
    margin-right: 10px;
}

.entry-meta a {
    color: #0073aa;
    text-decoration: none;
}

/* Post Navigation */
.post-navigation {
    clear: both;
    width: 100%;
    max-width: 800px;
    margin: 25px auto;
    padding: 0;
    box-sizing: border-box;
    border: none;
    background: transparent;
}

.top-navigation {
    margin-bottom: 20px;
    border: none;
    background: transparent;
}

.bottom-navigation {
    margin-top: 20px;
    margin-bottom: 20px;
    border: none;
    background: transparent;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
}

.page-counter {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    text-align: center;
}

.nav-previous a, .nav-next a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    color: #1e73be;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-previous a {
    flex-direction: row;
}

.nav-next a {
    flex-direction: row;
}

.nav-previous a:hover, .nav-next a:hover {
    color: #135999;
}

.nav-previous a .nav-text {
    margin-left: 10px;
}

.nav-next a .nav-text {
    margin-left: 10px;
}

.nav-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #1e73be;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-previous a:hover .nav-circle, .nav-next a:hover .nav-circle {
    background-color: #135999;
}

.nav-arrow {
    width: 18px;
    height: 18px;
    border-style: solid;
    border-width: 0;
    border-color: #ffffff;
}

.nav-next .nav-arrow {
    border-width: 4px 4px 0 0;
    transform: rotate(45deg);
    margin-left: -3px;
}

.nav-previous .nav-arrow {
    border-width: 0 0 4px 4px;
    transform: rotate(45deg);
    margin-right: -3px;
}

.featured-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border: 1px solid #eaeaea;
    padding: 5px;
}

.entry-content {
    line-height: 1.7;
}

.entry-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #333;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.entry-content li {
    margin-bottom: 8px;
}

.post-navigation {
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous a, .nav-next a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.nav-previous a:hover, .nav-next a:hover {
    background-color: #e5e5e5;
}

/* Footer Styles */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 30px 0;
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-info {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Skip link */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header-inner {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .primary-menu-container.toggled {
        display: block;
    }
    
    #primary-menu {
        flex-direction: column;
    }
    
    #primary-menu > li {
        margin: 0;
    }
    
    #primary-menu a {
        padding: 10px 0;
    }
}
