/* =========================================
   DARK THEME FOR ALL SUB-PAGES
   ========================================= */

/* Ensure all pages have dark background */
body:not(.home) {
    background: #0a0a0a;
    background-image: 
        radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0a 50%),
        radial-gradient(ellipse at bottom, #16213e 0%, #0a0a0a 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Main content area dark styling */
body:not(.home) #main-content {
    background: transparent;
    padding-top: 100px; /* Account for fixed header */
    min-height: calc(100vh - 200px);
}

/* Primary content area */
body:not(.home) .primary-content {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* All text should be light */
body:not(.home) .entry-content,
body:not(.home) .entry-content p,
body:not(.home) .entry-content li,
body:not(.home) .entry-content td,
body:not(.home) .entry-content th {
    color: #e0e0e0 !important;
    line-height: 1.8;
}

/* Headings with gold gradient */
body:not(.home) .entry-title,
body:not(.home) .entry-content h1,
body:not(.home) .entry-content h2,
body:not(.home) .entry-content h3,
body:not(.home) .entry-content h4,
body:not(.home) .entry-content h5,
body:not(.home) .entry-content h6 {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

/* Entry meta styling */
body:not(.home) .entry-meta {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Links in content */
body:not(.home) .entry-content a {
    color: #d4af37;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

body:not(.home) .entry-content a:hover {
    color: #f4e4bc;
    text-decoration-color: #f4e4bc;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Lists styling */
body:not(.home) .entry-content ul,
body:not(.home) .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

body:not(.home) .entry-content ul li,
body:not(.home) .entry-content ol li {
    margin-bottom: 0.5rem;
}

body:not(.home) .entry-content ul li::marker {
    color: #d4af37;
}

body:not(.home) .entry-content ol li::marker {
    color: #d4af37;
    font-weight: bold;
}

/* Blockquotes */
body:not(.home) .entry-content blockquote {
    border-left: 4px solid #d4af37;
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    color: #f4e4bc;
}

/* Tables */
body:not(.home) .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

body:not(.home) .entry-content th {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    text-align: left;
    color: #d4af37;
    font-weight: 600;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

body:not(.home) .entry-content td {
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

body:not(.home) .entry-content tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Code blocks */
body:not(.home) .entry-content pre {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

body:not(.home) .entry-content code {
    background: rgba(212, 175, 55, 0.1);
    color: #f4e4bc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Images */
body:not(.home) .entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body:not(.home) .entry-content img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Entry footer */
body:not(.home) .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

body:not(.home) .entry-tags,
body:not(.home) .entry-categories {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

body:not(.home) .entry-tags .tag-label,
body:not(.home) .entry-categories {
    color: #808080;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body:not(.home) .entry-tags a,
body:not(.home) .entry-categories a {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin: 0.2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

body:not(.home) .entry-tags a:hover,
body:not(.home) .entry-categories a:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Post Navigation */
body:not(.home) .post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

body:not(.home) .post-navigation a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.05);
}

body:not(.home) .post-navigation a:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(5px);
}

body:not(.home) .nav-previous a:hover {
    transform: translateX(-5px);
}

/* Comments Section */
body:not(.home) .comments-area {
    background: rgba(26, 26, 46, 0.3);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

body:not(.home) .comments-title {
    color: #d4af37;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

body:not(.home) .comment-list {
    list-style: none;
    padding: 0;
}

body:not(.home) .comment {
    background: rgba(10, 10, 10, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

body:not(.home) .comment-author {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body:not(.home) .comment-content {
    color: #e0e0e0;
    line-height: 1.6;
}

body:not(.home) .comment-metadata {
    color: #808080;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

body:not(.home) .comment-respond {
    background: rgba(10, 10, 10, 0.4);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

body:not(.home) .comment-form label {
    color: #d4af37;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

body:not(.home) .comment-form input[type="text"],
body:not(.home) .comment-form input[type="email"],
body:not(.home) .comment-form input[type="url"],
body:not(.home) .comment-form textarea {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #e0e0e0;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

body:not(.home) .comment-form input:focus,
body:not(.home) .comment-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(26, 26, 46, 0.7);
}

body:not(.home) .comment-form .submit {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #0a0a0a;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body:not(.home) .comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Archive and Category Pages */
body.archive .page-header,
body.category .page-header,
body.tag .page-header {
    background: rgba(26, 26, 46, 0.4);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

body.archive .page-title,
body.category .page-title,
body.tag .page-title {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

body.archive .archive-description,
body.category .archive-description,
body.tag .archive-description {
    color: #b0b0b0;
    font-size: 1.1rem;
}

/* Search Results Page */
body.search .search-results .entry-summary {
    color: #e0e0e0;
}

body.search .no-results .page-content {
    background: rgba(26, 26, 46, 0.4);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

/* 404 Page */
body.error404 .error-404 {
    text-align: center;
    padding: 5rem 2rem;
}

body.error404 .error-404 .page-title {
    font-size: 6rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.error404 .error-404 .page-content {
    color: #e0e0e0;
    font-size: 1.2rem;
}

/* Ensure sidebar is also dark themed */
body:not(.home) .widget-area {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    color: #e0e0e0;
}

body:not(.home) .widget-area .widget-title {
    color: #d4af37;
}

body:not(.home) .widget-area a {
    color: #b0b0b0;
}

body:not(.home) .widget-area a:hover {
    color: #d4af37;
}