/*
Theme Name: WordStack
Theme URI: https://clue.stream
Author: Clue Stream
Author URI: https://clue.stream
Description: A clean, minimalist WordPress theme inspired by Substack's aesthetic with sidebar support, beautiful comments, author pages, schema markup, and customizable color schemes
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wordstack
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #191919;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s;
}

a:hover {
    border-bottom-color: #000;
}

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

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header - Compact & Left Aligned */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #e6e6e6;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .custom-logo-link {
    display: block;
    line-height: 0;
    border: none;
}

.site-branding .custom-logo {
    max-height: none;
    height: auto;
    width: auto;
    border: none;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #000;
    border: none;
}

.site-description {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin: 0;
}

/* Primary Navigation - Right Side */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1001;
}

.menu-toggle:hover {
    opacity: 0.8;
}

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

.main-navigation a {
    color: #666;
    font-size: 15px;
    border: none;
    transition: color 0.2s;
    display: block;
}

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

/* Desktop Submenu Styles */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
}

.main-navigation li {
    position: relative;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

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

.main-navigation .sub-menu a {
    padding: 10px 20px;
    color: #666;
}

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

/* Submenu indicator (down arrow) */
.main-navigation .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 4px;
}

/* Header Widget Area */
.header-widget-area {
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 0;
}

/* After Content Widget Area */
.after-content-widgets {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.after-content-widgets .widget {
    margin-bottom: 30px;
}

.after-content-widgets .widget:last-child {
    margin-bottom: 0;
}

/* Above Footer Widget Area */
.above-footer-widgets {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e6e6e6;
}

.above-footer-widgets .widget {
    margin-bottom: 30px;
}

.above-footer-widgets .widget:last-child {
    margin-bottom: 0;
}

.header-widget-area .widget {
    margin: 0 0 20px 0;
}

.header-widget-area .widget:last-child {
    margin-bottom: 0;
}

.header-widget-area .widget-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #333;
}

.header-widget-area ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-widget-area li {
    margin: 0;
}

.header-widget-area a {
    color: #666;
    font-size: 14px;
    border: none;
    transition: color 0.2s;
}

.header-widget-area a:hover {
    color: #000;
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6e6e6;
}

.breadcrumbs a {
    color: #666;
    border: none;
    font-size: 13px;
}

.breadcrumbs a:hover {
    color: #000;
}

/* Reading Time */
.reading-time {
    color: #666;
    font-size: 13px;
}

/* Post Listings - Compact with Square Image Right */
.post-list {
    margin-bottom: 40px;
}

article.post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e6e6e6;
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 24px;
    align-items: start;
}

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

.post-content-wrapper {
    min-width: 0;
}

.post-thumbnail-wrapper {
    order: 2;
}

.post-thumbnail-wrapper img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

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

.entry-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.entry-title a {
    color: #000;
    border: none;
}

.entry-title a:hover {
    opacity: 0.7;
}

.entry-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

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

.entry-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 12px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content h1 { font-size: 32px; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 24px; }

.entry-content blockquote {
    border-left: 3px solid #000;
    padding-left: 24px;
    margin: 24px 0;
    font-style: italic;
    color: #666;
}

.entry-content ul,
.entry-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

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

.entry-content img {
    margin: 24px 0;
    border-radius: 4px;
}

.more-link {
    display: inline-block;
    padding: 8px 16px;
    background: #000;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    transition: opacity 0.2s;
}

.more-link:hover {
    opacity: 0.8;
}

/* Single Post */
.single article.post,
.page article {
    display: block;
    border: none;
    grid-template-columns: 1fr;
}

.single .entry-header,
.page .entry-header {
    margin-bottom: 24px;
}

.single .entry-title,
.page .entry-title {
    font-size: 36px;
    margin-bottom: 12px;
}

.single .entry-content,
.page .entry-content {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.single .post-thumbnail-wrapper,
.page .post-thumbnail-wrapper {
    margin-bottom: 32px;
    order: 0;
}

.single .post-thumbnail-wrapper img,
.page .post-thumbnail-wrapper img {
    height: auto;
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

/* Sidebar - Right Side */
.sidebar {
    font-size: 15px;
}

.sidebar .widget {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e6e6e6;
}

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

.sidebar .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar a {
    color: #666;
    font-size: 14px;
}

.sidebar a:hover {
    color: #000;
}

/* Widget Form Inputs */
.sidebar input[type="text"],
.sidebar input[type="email"],
.sidebar input[type="url"],
.sidebar input[type="search"],
.sidebar textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.2s;
}

.sidebar input[type="text"]:focus,
.sidebar input[type="email"]:focus,
.sidebar input[type="url"]:focus,
.sidebar input[type="search"]:focus,
.sidebar textarea:focus {
    outline: none;
    border-color: #000;
}

.sidebar input[type="submit"],
.sidebar button[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: opacity 0.2s;
    width: auto;
}

.sidebar input[type="submit"]:hover,
.sidebar button[type="submit"]:hover {
    opacity: 0.8;
}

.sidebar label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f5f5f5;
    border-color: #000;
}

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

/* Comments - Facebook Style */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e6e6e6;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #191919;
}

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

.comment {
    margin-bottom: 16px;
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-author .avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-body {
    background: #f0f2f5;
    border-radius: 18px;
    padding: 12px 16px;
    position: relative;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.comment-author .fn {
    color: #191919;
    font-style: normal;
}

.comment-author .fn a {
    color: #191919;
    border: none;
    font-weight: 600;
}

.comment-author .fn a:hover {
    text-decoration: underline;
}

.comment-author .says {
    display: none;
}

.comment-meta {
    font-size: 12px;
    color: #65676b;
    margin-bottom: 8px;
}

.comment-meta a {
    color: #65676b;
    border: none;
}

.comment-metadata {
    font-size: 12px;
    color: #65676b;
    margin-top: 4px;
}

.comment-content {
    font-size: 15px;
    line-height: 1.4;
    color: #191919;
}

.comment-content p {
    margin-bottom: 8px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 8px;
}

.comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    color: #65676b;
    border: none !important;
    padding: 4px 0;
    display: inline-block;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Nested Comments with Indentation */
.children {
    list-style: none;
    margin: 16px 0 0 40px;
    padding: 0;
}

.depth-1 { margin-left: 0; }
.depth-2 { margin-left: 40px; }
.depth-3 { margin-left: 80px; }
.depth-4 { margin-left: 120px; }
.depth-5 { margin-left: 160px; }

/* More Replies Link */
.more-replies-link {
    display: inline-block;
    margin: 8px 0 8px 56px;
    font-size: 13px;
    font-weight: 600;
    color: #385898;
    cursor: pointer;
    border: none;
}

.more-replies-link:hover {
    text-decoration: underline;
}

.hidden-replies {
    display: none;
}

.hidden-replies.show {
    display: block;
}

/* Pending Comment Message */
.comment-awaiting-moderation {
    color: #65676b;
    font-size: 12px;
    font-style: italic;
    margin-top: 8px;
    display: block;
}

.pending-comment-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.pending-comment-notice h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #856404;
}

.pending-comment-notice p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #856404;
}

.pending-comment-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.pending-comment-preview strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.edit-pending-comment {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #856404;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.edit-pending-comment:hover {
    opacity: 0.8;
}

/* Comment Form */
.comment-respond {
    margin-top: 32px;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #191919;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1877f2;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form-comment {
    margin-bottom: 16px;
}

.comment-form input[type="submit"] {
    background: #1877f2;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.comment-form input[type="submit"]:hover {
    background: #166fe5;
}

.form-submit {
    margin-bottom: 0;
}

/* Post Navigation */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e6e6e6;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
}

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

.post-navigation .nav-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-navigation .post-title {
    font-size: 16px;
    font-weight: 600;
    color: #191919;
}

.post-navigation a {
    border: none;
    transition: all 0.2s;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: block;
}

.post-navigation a:hover {
    background: #e9ecef;
}

/* Author Box */
.author-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-box.author-box-top {
    margin: 0 0 20px 0;
    padding: 12px;
}

.author-box.author-box-bottom {
    margin: 24px 0 0 0;
}

.author-box .avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-box-top .avatar {
    width: 50px;
    height: 50px;
}

.author-box-bottom .avatar {
    width: 80px;
    height: 80px;
}

.author-box-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.author-box-top .author-box-content h3 {
    font-size: 15px;
}

.author-box-content .author-bio {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 12px;
}

.author-box-top .author-bio {
    font-size: 13px;
}

.author-box-content .author-link {
    font-size: 13px;
    font-weight: 600;
    color: #1877f2;
    border: none;
}

.author-box-content .author-link:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid #e6e6e6;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.site-footer a {
    color: #666;
    border: none;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 16px 0 0 0;
    padding: 0;
}

.footer-navigation li {
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    color: #666;
    font-size: 13px;
    border: none;
    transition: color 0.2s;
}

.footer-navigation a:hover {
    color: #000;
}

/* Author Page */
.author-header {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.author-header .avatar {
    border-radius: 50%;
    margin: 0 auto 16px;
}

.author-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.author-header .author-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.author-posts-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}

/* Responsive - Mobile */
@media (max-width: 968px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        order: 2;
    }

    /* Mobile menu toggle for main navigation */
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 4px;
        padding: 20px;
        margin-top: 10px;
        min-width: 200px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-navigation.active ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul li {
        margin: 0;
        padding: 0;
    }

    /* Mobile submenu styles */
    .main-navigation .sub-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding: 10px 0 0 15px;
        margin-top: 10px;
        background: transparent;
    }

    .main-navigation .sub-menu.active {
        display: block;
    }

    .main-navigation .menu-item-has-children > a::after {
        content: ' ▸';
        float: right;
    }

    .main-navigation .menu-item-has-children.submenu-open > a::after {
        content: ' ▾';
    }

    .main-navigation li:hover > .sub-menu {
        display: none; /* Disable hover on mobile */
    }

    .header-widget-area ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .children {
        margin-left: 20px;
    }

    .depth-2 { margin-left: 20px; }
    .depth-3 { margin-left: 40px; }
    .depth-4 { margin-left: 60px; }
    .depth-5 { margin-left: 80px; }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box .avatar {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .site-main {
        padding: 30px 0;
    }
    
    article.post {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .post-thumbnail-wrapper {
        order: -1;
    }
    
    .post-thumbnail-wrapper img {
        width: 100%;
        height: 200px;
    }
    
    .entry-title {
        font-size: 20px;
    }
    
    .single .entry-title,
    .page .entry-title {
        font-size: 28px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .single .entry-content,
    .page .entry-content {
        font-size: 17px;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #191919;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.dark-mode .dark-mode-toggle {
    background: #fff;
}

.dark-mode .dark-mode-toggle .dark-mode-icon::before {
    content: '☀️';
}

.dark-mode-toggle .dark-mode-icon::before {
    content: '🌙';
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark-mode .site-header {
    border-bottom-color: #333;
    background: #1a1a1a;
}

.dark-mode .site-title a,
.dark-mode .entry-title a,
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4 {
    color: #fff;
}

.dark-mode .site-description,
.dark-mode .entry-meta,
.dark-mode .entry-meta a {
    color: #999;
}

.dark-mode a {
    color: #e0e0e0;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.dark-mode a:hover {
    border-bottom-color: #fff;
}

.dark-mode article.post {
    border-bottom-color: #333;
}

.dark-mode .sidebar {
    color: #e0e0e0;
}

.dark-mode .sidebar .widget {
    border-bottom-color: #333;
}

.dark-mode .sidebar a {
    color: #bbb;
}

.dark-mode .sidebar a:hover {
    color: #fff;
}

.dark-mode .sidebar li {
    border-bottom-color: #2a2a2a;
}

.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="url"],
.dark-mode input[type="search"],
.dark-mode textarea,
.dark-mode select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .comment-body {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .comment-author .fn,
.dark-mode .comment-author .fn a,
.dark-mode .comment-content {
    color: #e0e0e0;
}

.dark-mode .comment-metadata,
.dark-mode .comment-metadata a,
.dark-mode .comment-reply-link {
    color: #999;
}

.dark-mode .comments-area {
    border-top-color: #333;
}

.dark-mode .author-box {
    background: #2a2a2a;
}

.dark-mode .author-header {
    background: #2a2a2a;
}

.dark-mode .author-bio {
    color: #bbb;
}

.dark-mode .post-navigation {
    border-top-color: #333;
}

.dark-mode .post-navigation a {
    background: #2a2a2a;
}

.dark-mode .post-navigation a:hover {
    background: #333;
}

.dark-mode .post-navigation .post-title {
    color: #fff;
}

.dark-mode .site-footer {
    border-top-color: #333;
    background: #1a1a1a;
    color: #999;
}

.dark-mode .site-footer a {
    color: #999;
}

.dark-mode .header-widget-area {
    border-bottom-color: #333;
}

.dark-mode .pagination a,
.dark-mode .pagination span {
    border-color: #333;
    background: #1a1a1a;
}

.dark-mode .pagination a:hover {
    background: #2a2a2a;
}

.dark-mode .main-navigation ul {
    background: #2a2a2a;
    border-color: #444;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Advanced Footer Columns */
.footer-widgets {
    background: #f8f9fa;
    padding: 60px 0 30px;
    border-top: 1px solid #e6e6e6;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column .widget {
    margin-bottom: 30px;
}

.footer-column .widget:last-child {
    margin-bottom: 0;
}

.footer-column .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #191919;
}

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

.footer-column li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e6e6;
}

.footer-column li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-column a {
    color: #666;
    font-size: 14px;
    border: none;
}

.footer-column a:hover {
    color: #000;
}

/* Ajax Load More Button */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

#wordstack-load-more {
    background: #191919;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#wordstack-load-more:hover {
    background: #333;
    transform: translateY(-2px);
}

#wordstack-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Full Width Page Template */
.page-template-template-fullwidth .main-content {
    width: 100%;
    max-width: 100%;
}

.page-template-template-fullwidth .sidebar {
    display: none;
}

/* Landing Page Template */
.page-template-template-landing .site-header,
.page-template-template-landing .breadcrumbs,
.page-template-template-landing .sidebar,
.page-template-template-landing .site-footer {
    display: none;
}

.page-template-template-landing .site-main {
    padding: 0;
}

.page-template-template-landing .main-content {
    width: 100%;
    max-width: 100%;
}

/* Dark Mode - Footer Columns */
.dark-mode .footer-widgets {
    background: #1a1a1a;
    border-top-color: #333;
}

.dark-mode .footer-column .widget-title {
    color: #fff;
}

.dark-mode .footer-column a {
    color: #bbb;
}

.dark-mode .footer-column a:hover {
    color: #fff;
}

.dark-mode .footer-column li {
    border-bottom-color: #333;
}

.dark-mode #wordstack-load-more {
    background: #fff;
    color: #191919;
}

.dark-mode #wordstack-load-more:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-widgets {
        padding: 40px 0 20px;
    }
}