/*
Theme Name: DICTATORSHOP
Theme URI: https://dictatorshop.store
Description: Custom theme for DICTATORSHOP - Black background, gold navigation, clean catalog layout
Version: 1.3
Author: DICTATORSHOP
Author URI: https://dictatorshop.store
Text Domain: dictatorshop
*/

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

body {
    margin: 0;
    padding: 0;
    background-color: #0f0d0e;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

/* Container */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #0f0d0e;
}

/* Header */
.site-header {
    background-color: #0f0d0e;
    padding: 20px;
    text-align: center;
}

.site-header .custom-logo-link {
    display: inline-block;
}

.site-header img {
    max-width: 500px;
    height: auto;
}

.site-title {
    color: #C9A961;
    font-size: 2.5em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.site-description {
    color: #C9A961;
    font-size: 1em;
    margin-top: 5px;
}

/* Navigation */
.main-navigation {
    background-color: #0f0d0e;
    margin-bottom: 20px;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.nav-menu li {
    flex: 1;
    margin: 0;
}

.nav-menu a {
    display: block;
    background-color: #C9A961;
    color: #000000;
    text-decoration: none;
    padding: 14px 10px;
    text-align: center;
    border-right: 2px solid #000000;
    transition: background-color 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95em;
}

.nav-menu li:last-child a {
    border-right: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    background-color: #D4B872;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 20px 40px 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #ffffff;
    color: #000000;
    padding: 30px;
}

.page-title,
.entry-title {
    color: #000000;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 3px solid #C9A961;
    padding-bottom: 10px;
}

.entry-content,
.page-content {
    color: #000000;
    font-size: 1em;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: #000000;
    margin-top: 25px;
    margin-bottom: 15px;
}

.entry-content a,
.page-content a {
    color: #C9A961;
    text-decoration: underline;
}

.entry-content a:hover,
.page-content a:hover {
    color: #D4B872;
}

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

/* Post Meta */
.entry-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

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

/* Blog Posts Listing */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #C9A961;
}

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

.read-more {
    display: inline-block;
    background-color: transparent;
    color: #C9A961;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    border: 2px solid #C9A961;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: #C9A961;
    color: #000000;
}

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

.widget {
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    background-color: #C9A961;
    color: #000000;
    padding: 12px 15px;
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
}

.widget-content {
    background-color: #ffffff;
    color: #000000;
    padding: 15px;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #cccccc;
    font-size: 14px;
}

.search-submit {
    background-color: #000000;
    color: #C9A961;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-submit:hover {
    background-color: #333333;
}

/* Categories Widget */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* Indent child categories */
.widget ul.children {
    padding-left: 20px;
}

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

.widget a {
    color: #000000;
    text-decoration: none;
    display: block;
}

.widget a:hover {
    color: #C9A961;
    padding-left: 5px;
    transition: padding-left 0.2s;
}

.widget .post-count {
    color: #666;
    font-size: 0.9em;
}

/* Tag Cloud */
.tagcloud,
.wp-tag-cloud {
    line-height: 2.2;
}

.tagcloud a,
.wp-tag-cloud a {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    padding: 3px 8px;
    margin: 3px;
    background-color: #f5f5f5;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.tagcloud a:hover,
.wp-tag-cloud a:hover {
    background-color: #C9A961;
    color: #ffffff;
}

/* Footer */
.site-footer {
    background-color: #0f0d0e;
    color: #C9A961;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 3px solid #C9A961;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #C9A961;
    text-decoration: none;
}

.site-footer a:hover {
    color: #D4B872;
}

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

.pagination a,
.pagination span {
    background-color: #C9A961;
    color: #000000;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
}

.pagination .current {
    background-color: #000000;
    color: #C9A961;
}

.pagination a:hover {
    background-color: #D4B872;
}

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

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

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

.comment-author {
    font-weight: bold;
    color: #000000;
}

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

.comment-content {
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        border-right: none;
        border-bottom: 2px solid #000000;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    .site-title {
        font-size: 1.8em;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 20px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.wp-caption-text {
    text-align: center;
    padding: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.sticky {
    /* Styles for sticky posts */
}

.gallery {
    margin-bottom: 20px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 5px;
}

.bypostauthor {
    /* Styles for comments by post author */
}

/* Block Editor Support */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-button__link {
    background-color: transparent;
    color: #C9A961;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border-radius: 0;
    border: 2px solid #C9A961;
    transition: all 0.3s;
}

.wp-block-button__link:hover {
    background-color: #C9A961;
    color: #000000;
}

/* NUCLEAR OVERRIDE FOR READ MORE BUTTONS */
a.read-more,
.entry-content a.read-more,
.main-content a.read-more {
    background-color: #FF00FF !important;
    background: #FF00FF !important;
    color: #FFFF00 !important;
    border: 5px solid #00FF00 !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-top: 15px !important;
    transition: all 0.3s !important;
}

a.read-more:hover,
.entry-content a.read-more:hover,
.main-content a.read-more:hover {
    background-color: #FF00FF !important;
    background: #FF00FF !important;
    color: #FFFF00 !important;
}

/* Archives - Keep counts on same line */
.wp-block-archives li,
.widget-content li {
    white-space: nowrap;
}

/* Force content images to 512x384, float right - BUT NOT thumbnails in blog listings */
.single .page-content img,
.single .entry-content img,
.page .page-content img,
.page .entry-content img {
    width: 512px !important;
    height: 384px !important;
    object-fit: cover;
    float: right;
    margin: 0 0 15px 20px;
}

/* Exception: If user explicitly sets alignment classes, respect those */
.single .page-content img.alignleft,
.single .entry-content img.alignleft,
.page .page-content img.alignleft,
.page .entry-content img.alignleft {
    float: left !important;
    margin: 0 20px 15px 0 !important;
}

.single .page-content img.aligncenter,
.single .entry-content img.aligncenter,
.page .page-content img.aligncenter,
.page .entry-content img.aligncenter {
    float: none !important;
    margin: 15px auto !important;
    display: block;
}

.single .page-content img.alignnone,
.single .entry-content img.alignnone,
.page .page-content img.alignnone,
.page .entry-content img.alignnone {
    float: none !important;
    display: block;
    margin: 15px 0 !important;
}

/* Clear floats after content */
.single .page-content::after,
.single .entry-content::after,
.page .page-content::after,
.page .entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Protect blog listing thumbnails from forced sizing */
.blog-listing-thumbnail img {
    width: 400px !important;
    height: 300px !important;
    object-fit: cover !important;
    float: none !important;
    margin: 0 !important;
    display: block !important;
}

/* Fix list indentation in content */
.entry-content ul,
.page-content ul,
.entry-content ol,
.page-content ol {
    margin-left: 25px;
    padding-left: 0;
    list-style-position: outside;
}

.entry-content li,
.page-content li {
    margin-bottom: 8px;
}
