/*
Theme Name: DevCodder Q
Theme URI: https://www.devcoderq.com
Author: DevCodder Q Team
Author URI: https://www.devcoderq.com
Description: Official WordPress Theme for DevCoder Q. Matches the main site neo-linear tech aesthetics, obsidian dark mode / crisp white light mode, ambient mesh grid, custom navigation drawer, and modern glassmorphic blog layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devcoderq
Tags: custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready, blog, dark-mode
/* --------------------------------------------------------------------------
   WORDPRESS CORE ALIGNMENT & GUTENBERG BLOCKS SUPPORT
   -------------------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 20px auto;
}

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

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

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

.wp-caption {
  background: var(--bg-card);
  border: 1px solid var(--border-black);
  max-width: 96%;
  padding: 8px 8px 4px 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.wp-caption.alignnone,
.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 0.85rem;
  line-height: 17px;
  margin: 6px 0 2px 0;
  color: var(--text-muted);
}

.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;
}

.screen-reader-text:focus {
  background-color: var(--bg-primary);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--text-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Post Password Form */
.post-password-form {
  padding: 30px;
  background: var(--bg-card);
  border: var(--stroke-width-thick) solid var(--border-black);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.post-password-form input[type="password"] {
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-black);
  border-radius: var(--radius-sm);
  margin: 0 8px;
  color: var(--text-primary);
}

.post-password-form input[type="submit"] {
  padding: 10px 20px;
  background: var(--grad-sparkle);
  color: #fff;
  border: 1.5px solid var(--border-black);
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   CORE VISIBILITY GUARANTEE
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* Dark Mode body baseline */
[data-theme="dark"] body {
  background-color: #090d16;
  color: #f1f5f9;
}

/* Light Mode body baseline */
html:not([data-theme="dark"]) body {
  background-color: #ffffff;
  color: #0f172a;
}

/* Post Cards - guaranteed visibility in dark mode */
[data-theme="dark"] .post-card-title a,
[data-theme="dark"] .featured-post-title a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

[data-theme="dark"] .post-card-excerpt,
[data-theme="dark"] .featured-post-excerpt {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

/* Post Cards - guaranteed visibility in light mode */
html:not([data-theme="dark"]) .post-card-title a,
html:not([data-theme="dark"]) .featured-post-title a {
  color: #090d16 !important;
  -webkit-text-fill-color: #090d16 !important;
}

html:not([data-theme="dark"]) .post-card-excerpt,
html:not([data-theme="dark"]) .featured-post-excerpt {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

