/* =====================================================
   Hmmnm.com — Global Dark Theme Override
   Applied to all non-homepage pages
   ===================================================== */

/* ---------- Base ---------- */
body {
    background-color: #020617 !important;
    color: #cbd5e1 !important;
}

#page,
#page-wrapper {
    background-color: #020617 !important;
}

/* ---------- Header (global) ---------- */
#site-header,
#site-header.clr {
    background: rgba(2,6,23,0.92) !important;
    background-color: rgba(2,6,23,0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 1px 0 rgba(99,102,241,0.15) !important;
}

#site-header .dropdown-menu a,
#site-header #site-navigation a,
#site-header nav a,
#site-navigation-wrap .dropdown-menu > li > a {
    color: #cbd5e1 !important;
}

#site-header .dropdown-menu a:hover,
#site-header #site-navigation a:hover,
#site-header nav a:hover,
#site-navigation-wrap .dropdown-menu > li > a:hover {
    color: #818cf8 !important;
}

#site-header .logo img,
#site-header .site-logo img,
#site-header .custom-logo-link img {
    filter: brightness(0) invert(1) !important;
}

/* Mobile menu */
#mobile-menu-dropdown,
#sidr,
.oceanwp-mobile-menu {
    background: #0f172a !important;
}

#mobile-menu-dropdown a,
#sidr a {
    color: #cbd5e1 !important;
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-header,
#page-header,
.page-header-title-bar,
.page-title {
    background: linear-gradient(135deg, #0f172a, #020617) !important;
    border-bottom: 1px solid rgba(99,102,241,0.1) !important;
}

.page-header-title,
#page-header .page-header-title,
.page-title,
h1.page-title {
    color: #f1f5f9 !important;
}

.site-breadcrumbs,
.breadcrumbs span,
.breadcrumbs a {
    color: #64748b !important;
}

.breadcrumbs a:hover {
    color: #818cf8 !important;
}

/* ---------- Content Area ---------- */
.content-area,
#content-wrap,
#primary,
#main {
    background: transparent !important;
}

/* ---------- Blog Grid Cards ---------- */
.blog .blog-entry,
.archive .blog-entry,
.search .blog-entry,
.category .blog-entry,
.tag .blog-entry {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}

.blog .blog-entry:hover,
.archive .blog-entry:hover,
.category .blog-entry:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(99,102,241,0.3) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(99,102,241,0.08) !important;
}

.blog-entry .blog-entry-inner {
    padding: 0 !important;
}

/* Blog entry title */
.blog-entry .entry-title,
.blog-entry .blog-entry-title,
.blog-entry.post .blog-entry-header h2 {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.blog-entry .entry-title a,
.blog-entry .blog-entry-title a,
.blog-entry.post .blog-entry-header h2 a {
    color: #f1f5f9 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.blog-entry .entry-title a:hover,
.blog-entry .blog-entry-title a:hover,
.blog-entry.post .blog-entry-header h2 a:hover {
    color: #fff !important;
}

/* Blog entry thumbnail */
.blog-entry .thumbnail {
    margin: 0 !important;
    overflow: hidden !important;
}

.blog-entry .thumbnail img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1) !important;
}

.blog .blog-entry:hover .thumbnail img,
.archive .blog-entry:hover .thumbnail img {
    transform: scale(1.06) !important;
}

/* Blog entry content */
.blog-entry .blog-entry-summary p {
    color: #64748b !important;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
}

/* Blog entry meta */
.blog-entry ul.meta,
.blog-entry ul.meta li,
.blog-entry .meta.obem-default {
    color: #64748b !important;
}

/* Blog entry category tags */
.hmmnm-cat-tag {
    background: rgba(99,102,241,0.12) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
}

.hmmnm-cat-tag.cat-security { background: rgba(239,68,68,0.12) !important; color: #fca5a5 !important; border-color: rgba(239,68,68,0.2) !important; }
.hmmnm-cat-tag.cat-technology { background: rgba(59,130,246,0.12) !important; color: #93c5fd !important; border-color: rgba(59,130,246,0.2) !important; }
.hmmnm-cat-tag.cat-experience { background: rgba(234,179,8,0.12) !important; color: #fde047 !important; border-color: rgba(234,179,8,0.2) !important; }
.hmmnm-cat-tag.cat-food { background: rgba(249,115,22,0.12) !important; color: #fdba74 !important; border-color: rgba(249,115,22,0.2) !important; }
.hmmnm-cat-tag.cat-travel { background: rgba(16,185,129,0.12) !important; color: #6ee7b7 !important; border-color: rgba(16,185,129,0.2) !important; }

/* Blog post meta */
.hmmnm-post-meta,
.hmmnm-post-meta .meta-author,
.hmmnm-post-meta .meta-read-time,
.hmmnm-post-meta .meta-date {
    color: #64748b !important;
}

/* Read more button */
.read-more,
.blog-entry-readmore a {
    background: rgba(99,102,241,0.15) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99,102,241,0.25) !important;
    border-radius: 8px !important;
}

.read-more:hover,
.blog-entry-readmore a:hover {
    background: rgba(99,102,241,0.3) !important;
    color: #c7d2fe !important;
}

/* Blog bottom border */
.blog-entry .blog-entry-bottom {
    border-top: 1px solid rgba(99,102,241,0.08) !important;
}

/* ---------- Blog Toolbar ---------- */
.hmmnm-blog-toolbar {
    color: #cbd5e1 !important;
}

.hmmnm-search-box {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    border-radius: 12px !important;
}

.hmmnm-search-box:focus-within {
    border-color: rgba(99,102,241,0.4) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08) !important;
}

.hmmnm-search-box input {
    color: #e2e8f0 !important;
    background: transparent !important;
}

.hmmnm-search-box input::placeholder {
    color: #475569 !important;
}

.hmmnm-search-box svg {
    color: #64748b !important;
}

.hmmnm-search-box:focus-within svg {
    color: #818cf8 !important;
}

.hmmnm-sort-btn {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    color: #94a3b8 !important;
}

.hmmnm-sort-btn:hover,
.hmmnm-sort-btn.active {
    border-color: rgba(99,102,241,0.4) !important;
    color: #818cf8 !important;
}

.hmmnm-sort-dropdown {
    background: #0f172a !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}

.hmmnm-sort-option {
    color: #94a3b8 !important;
}

.hmmnm-sort-option:hover,
.hmmnm-sort-option.active {
    background: rgba(99,102,241,0.1) !important;
    color: #818cf8 !important;
}

.hmmnm-cat-filter-btn {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    color: #94a3b8 !important;
}

.hmmnm-cat-filter-btn:hover,
.hmmnm-cat-filter-btn.active {
    background: rgba(99,102,241,0.2) !important;
    border-color: rgba(99,102,241,0.4) !important;
    color: #a5b4fc !important;
}

.hmmnm-post-count {
    color: #64748b !important;
}

/* ---------- Load More Button ---------- */
.hmmnm-load-more {
    background: rgba(15,23,42,0.7) !important;
    color: #a5b4fc !important;
    border: 1.5px solid rgba(99,102,241,0.25) !important;
    border-radius: 100px !important;
}

.hmmnm-load-more:hover {
    background: rgba(99,102,241,0.2) !important;
    border-color: rgba(99,102,241,0.5) !important;
    color: #c7d2fe !important;
}

/* ---------- Single Post ---------- */
.single .entry-title {
    color: #f1f5f9 !important;
}

.single .entry-content {
    color: #cbd5e1 !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
}

.single .entry-content p {
    color: #cbd5e1 !important;
}

.single .entry-content h2 {
    color: #f1f5f9 !important;
    border-bottom: 1px solid rgba(99,102,241,0.15) !important;
    padding-bottom: 10px !important;
}

.single .entry-content h3 {
    color: #e2e8f0 !important;
}

.single .entry-content h4 {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(99,102,241,0.1) !important;
}

.single .entry-content li {
    color: #cbd5e1 !important;
}

.single .entry-content a {
    color: #818cf8 !important;
    transition: color 0.2s !important;
}

.single .entry-content a:hover {
    color: #a5b4fc !important;
}

.single .entry-content blockquote {
    background: rgba(99,102,241,0.06) !important;
    border-left: 4px solid #818cf8 !important;
    color: #94a3b8 !important;
    border-radius: 0 12px 12px 0 !important;
}

.single .entry-content code {
    background: rgba(15,23,42,0.8) !important;
    color: #c084fc !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 14px !important;
}

.single .entry-content pre {
    background: #0f172a !important;
    color: #c084fc !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.single .entry-content pre code {
    background: transparent !important;
    border: none !important;
    color: #c084fc !important;
}

.single .entry-content table th {
    background: rgba(15,23,42,0.8) !important;
    color: #f1f5f9 !important;
    border-color: rgba(99,102,241,0.15) !important;
}

.single .entry-content table td {
    color: #cbd5e1 !important;
    border-color: rgba(99,102,241,0.1) !important;
}

/* ---------- Responsive Tables ---------- */
.single .entry-content table,
.wp-block-table table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}
.single .entry-content table th,
.single .entry-content table td,
.wp-block-table th,
.wp-block-table td {
    white-space: nowrap !important;
    padding: 10px 12px !important;
    min-width: 100px !important;
}
.wp-block-table {
    overflow-x: auto !important;
    max-width: 100% !important;
}
.wp-block-table table {
    width: max-content !important;
    min-width: 100% !important;
}

/* ---------- TOC Dark Theme ---------- */
.hmmnm-toc {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
}

.hmmnm-toc-label {
    color: #f1f5f9 !important;
}

.hmmnm-toc-toggle {
    color: #64748b !important;
}

.hmmnm-toc-item a {
    color: #94a3b8 !important;
    border-left-color: rgba(99,102,241,0.2) !important;
}

.hmmnm-toc-item a:hover,
.hmmnm-toc-item.active a {
    color: #818cf8 !important;
    border-left-color: #818cf8 !important;
}

/* ---------- Key Takeaways Dark ---------- */
.hmmnm-takeaways {
    background: rgba(99,102,241,0.06) !important;
    border-left: 4px solid #818cf8 !important;
    border-radius: 0 12px 12px 0 !important;
}

.hmmnm-takeaways strong {
    color: #f1f5f9 !important;
}

.hmmnm-takeaways ul li {
    color: #94a3b8 !important;
}

/* ---------- Single Post Sidebar ---------- */
body.single-post #right-sidebar .widget {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.1) !important;
    border-radius: 16px !important;
}

body.single-post #right-sidebar .widget-title {
    color: #f1f5f9 !important;
    border-bottom-color: rgba(99,102,241,0.3) !important;
}

body.single-post #right-sidebar ul li a {
    color: #94a3b8 !important;
}

body.single-post #right-sidebar ul li a:hover {
    color: #818cf8 !important;
}

body.single-post #right-sidebar ul li {
    border-bottom-color: rgba(99,102,241,0.08) !important;
}

body.single-post #right-sidebar input[type="search"],
body.single-post #right-sidebar .search-field {
    background: rgba(2,6,23,0.5) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    color: #e2e8f0 !important;
}

body.single-post #right-sidebar input[type="search"]:focus,
body.single-post #right-sidebar .search-field:focus {
    border-color: rgba(99,102,241,0.4) !important;
    background: rgba(2,6,23,0.8) !important;
}

/* Category count badges */
body.single-post #right-sidebar .widget_categories .count,
.sidebar .widget_categories li .count {
    background: rgba(99,102,241,0.12) !important;
    color: #a5b4fc !important;
}

/* ---------- Author Bio Dark ---------- */
#author-bio {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.12) !important;
    border-radius: 16px !important;
}

.author-bio-title a {
    color: #e2e8f0 !important;
}

.author-bio-title a:hover {
    color: #818cf8 !important;
}

.author-bio-description {
    color: #94a3b8 !important;
}

.author-bio-avatar img {
    border-color: rgba(99,102,241,0.3) !important;
}

/* ---------- Footer (global dark) ---------- */
#site-footer,
#footer,
#colophon {
    background: linear-gradient(180deg, #0a0e1a 0%, #020617 100%) !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(99,102,241,0.1) !important;
}

#footer-widgets,
.footer-box,
.footer-box p,
.footer-box li,
.footer-box a,
#footer-bottom,
#footer-bottom p,
#footer-bottom #copyright,
#footer .copyright {
    color: #64748b !important;
}

#footer-widgets a,
.footer-box a,
#footer-bottom a,
#copyright a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

#footer-widgets a:hover,
.footer-box a:hover,
#footer-bottom a:hover,
#copyright a:hover {
    color: #818cf8 !important;
}

#footer-widgets .footer-widget .widget-title,
.footer-box .widget-title {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(99,102,241,0.2) !important;
}

#footer-bottom {
    background: rgba(0,0,0,0.3) !important;
    border-top-color: rgba(99,102,241,0.08) !important;
}

/* ---------- Contact Page Dark ---------- */
body.page-template-page-contact .content-area,
body.page-template-page-contact #content-wrap {
    background: #020617 !important;
}

/* ---------- 404 Page Dark ---------- */
.error404 #content-wrap,
.error404 .content-area {
    background: #020617 !important;
    color: #cbd5e1 !important;
}

.error404 h1,
.error404 h2 {
    color: #f1f5f9 !important;
}

.error404 input[type="search"],
.error404 .search-form input {
    background: rgba(15,23,42,0.7) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    color: #e2e8f0 !important;
    border-radius: 12px !important;
}

.error404 input[type="search"]:focus {
    border-color: rgba(99,102,241,0.4) !important;
}

.error404 .search-submit,
.error404 button[type="submit"] {
    background: rgba(99,102,241,0.2) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99,102,241,0.3) !important;
}

/* ---------- Comments Dark ---------- */
#comments,
.comment-list,
.comment-body,
.comment-content,
.comments-area,
.comments-title {
    color: #cbd5e1 !important;
}

#comments .comment-author a {
    color: #a5b4fc !important;
}

#respond,
.comment-respond {
    background: rgba(15,23,42,0.5) !important;
    border: 1px solid rgba(99,102,241,0.1) !important;
    border-radius: 16px !important;
    padding: 24px !important;
}

#respond input,
#respond textarea,
.comment-respond input,
.comment-respond textarea {
    background: rgba(2,6,23,0.5) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
}

#respond input:focus,
#respond textarea:focus,
.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: rgba(99,102,241,0.4) !important;
}

#respond .submit,
.comment-respond .submit {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* ---------- Post Navigation ---------- */
.post-navigation,
.nav-links,
.nav-previous,
.nav-next {
    color: #94a3b8 !important;
}

.post-navigation a {
    color: #a5b4fc !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.post-navigation a:hover {
    color: #c7d2fe !important;
}

.post-navigation .post-title {
    color: #e2e8f0 !important;
}

/* ---------- Pagination ---------- */
.pagination,
.page-numbers,
.nav-links .page-numbers {
    color: #64748b !important;
}

.page-numbers.current,
.page-numbers:hover {
    background: rgba(99,102,241,0.2) !important;
    color: #a5b4fc !important;
    border-color: rgba(99,102,241,0.3) !important;
}

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth !important;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(99,102,241,0.3) !important;
    color: #fff !important;
}

::-moz-selection {
    background: rgba(99,102,241,0.3) !important;
    color: #fff !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.5);
}
