/*
Theme Name: YogiSolution
Theme URI: https://yogisolution.com
Author: YS Media / Ramesh Yogi
Author URI: https://yogisolution.com
Description: Premium dark, performance-first theme for YogiSolution, a digital technology brand by YS Media. Includes a YogiSolution settings page, an Apple-style scroll-driven Journey, a Portfolio store with live previews and counted downloads, Services, a secure contact form with saved enquiries and optional SMTP and built-in SEO/schema that steps aside automatically when an SEO plugin is active. Vanilla JS, no jQuery, no external fonts.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yogisolution
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, portfolio, blog
*/

/*
 * The design system lives in assets/css/main.css and assets/css/responsive.css.
 * This file holds the theme header plus WordPress-specific styles
 * (editor content, alignment, captions, admin bar offsets, blog lists).
 */

/* ── WordPress core classes ── */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 8px 14px; z-index: 1001; background: var(--card, #151F3A); color: #fff; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 1.2em; }
.wp-caption img { display: block; }
.wp-caption-text, .wp-element-caption, .gallery-caption { font-size: .875rem; color: var(--muted, #9BA8C7); margin-top: .5em; }
.sticky .post-card__title::before { content: "★ "; color: var(--cyan, #42D9FF); }
.bypostauthor > article .comment-author b { color: var(--cyan, #42D9FF); }

/* ── Content from the editor ── */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text, #F5F7FF); line-height: 1.25; margin: 1.8em 0 .6em; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm, 10px); }
.entry-content blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--primary, #7665FF); color: var(--text, #F5F7FF); }
.entry-content pre, .entry-content code { font-family: var(--mono, monospace); font-size: .9em; }
.entry-content pre { overflow: auto; padding: 16px; border-radius: var(--radius-sm, 10px); background: var(--bg-2, #111A32); border: 1px solid var(--border, rgba(155,168,199,.14)); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid var(--border, rgba(155,168,199,.14)); text-align: left; }
.entry-content iframe, .entry-content embed, .entry-content video { max-width: 100%; }
.page-links { margin-top: 1.5em; color: var(--muted, #9BA8C7); }

/* ── Blog / archive / search lists ── */
.post-list { display: grid; gap: 20px; }
.post-card { padding: 24px; }
.post-card__title { font-size: 1.25rem; margin: 0 0 .4em; line-height: 1.3; }
.post-card__title a { color: var(--text, #F5F7FF); }
.post-card__meta { font-size: .875rem; color: var(--muted, #9BA8C7); margin: 0 0 .6em; }
.post-card__thumb img { width: 100%; height: auto; border-radius: var(--radius-sm, 10px); margin-bottom: 16px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.nav-links .page-numbers, .nav-links a { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong, rgba(155,168,199,.26)); color: var(--muted, #9BA8C7); }
.nav-links .current { color: #fff; background: var(--primary-strong, #6352F5); border-color: var(--primary-strong, #6352F5); }
.search-form { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.search-form .search-field { flex: 1; min-height: 46px; padding: 0 14px; border-radius: var(--radius-sm, 10px); border: 1px solid var(--border-strong, rgba(155,168,199,.26)); background: var(--bg-2, #111A32); color: var(--text, #F5F7FF); font: inherit; }
.page-hero--center .search-form { margin-inline: auto; }

/* ── Comments ── */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border, rgba(155,168,199,.14)); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm, 10px); border: 1px solid var(--border-strong, rgba(155,168,199,.26)); background: var(--bg-2, #111A32); color: var(--text, #F5F7FF); font: inherit; }

/* ── Custom logo ── */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }

/* ── Founder photo from the Media Library ── */
.founder__media img { width: 100%; height: auto; }

/* ── Admin bar offsets (logged-in users only) ── */
.admin-bar .site-header { top: 32px; }
.admin-bar .site-nav { inset: calc(var(--header-h) + 32px) 0 auto 0; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .site-nav { inset: calc(var(--header-h) + 46px) 0 auto 0; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar .site-nav { inset: calc(var(--header-h) + 46px) 0 auto 0; }
}
@media (min-width: 960px) {
  .admin-bar .site-nav, .admin-bar .site-nav.is-open { inset: auto; }
}
