/*
Theme Name: Sharda Infotech
Theme URI: https://shardainfotech.com
Author: Sharda Infotech
Author URI: https://shardainfotech.com
Description: Custom theme for Sharda Infotech, a Digital Marketing & Development agency. Block-editor ready, no page-builder dependency.
Version: 1.33.0
Requires at least: 6.4
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: sharda-infotech
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* Design tokens, base and components live in assets/css/main.css (an exact
   copy of the approved design's compiled stylesheet, kept 1:1 with no theme-
   specific edits so it stays easy to re-sync). This file only adds the very
   small number of rules needed to reconcile that static markup with what
   wp_nav_menu() outputs -- it wraps every item in <li>, including in the
   footer's bottom-bar legal links, which were bare <a> tags in the original
   design. display:contents removes the <li> from layout/list-styling
   without touching the design. */
.ft-bottom__nav li { list-style: none; display: contents; }

/* Blog category chips are real links to category archives here (so they work
   correctly once there's more than one page of posts), reusing the exact
   look of the original client-side filter chips -- .chips a mirrors .chips
   button rule for rule. */
.chips a { display: inline-block; padding: 0.55rem 1.2rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; text-decoration: none !important; transition: all 0.2s; }
.chips a:hover { border-color: var(--c-blue); color: var(--c-blue); }
.chips a.is-active { background: var(--heading); border-color: var(--heading); color: var(--bg); }

/* Templates the approved design never included (single post, archive, search,
   404, comments) needed a few small additions of their own. Built from the
   theme's existing tokens/components, not new visual language. */

/* Single post + optional sidebar */
.post-layout { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: 1fr 320px; } }
.widget-area { display: grid; gap: 28px; }
.widget { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.widget__title { margin: 0 0 1rem; font-size: 1.0625rem; }
.page-links { margin-top: 2rem; font-weight: 600; }
.page-links a { margin-left: 0.5rem; }

/* Search form (search results page + 404) */
.search-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; margin: 2rem 0 0; }
.search-form .field { flex: 1; min-width: 220px; margin: 0; }
.search-form input[type="search"] { width: 100%; padding: 14px 16px; border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; }
.search-form input[type="search"]::placeholder { color: #9AA2B8; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--c-blue-light); }

/* Comments */
.comments-area { margin-top: clamp(32px, 4vw, 56px); }
.comments-title { margin-bottom: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 20px; }
.comment-list .children { list-style: none; margin: 20px 0 0; padding-left: clamp(20px, 4vw, 44px); display: grid; gap: 20px; }
.comment-body { padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.comment-author .avatar { border-radius: 50%; margin-right: 0.6rem; vertical-align: middle; }
.comment-author .fn { font-family: var(--font-heading); font-weight: 600; font-style: normal; color: var(--heading); }
.comment-metadata { display: block; margin: 0.2rem 0 0.8rem; font-size: var(--fs-small); color: var(--text); }
.comment-reply-link { font-weight: 600; color: var(--c-blue); }
#respond { margin-top: 2rem; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }

/* Pagination (the_posts_pagination() / the_comments_pagination()) */
.pagination { margin-top: clamp(32px, 4vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-heading); font-weight: 600; text-decoration: none !important; transition: all 0.2s; }
.pagination .page-numbers:hover { border-color: var(--c-blue); color: var(--c-blue); }
.pagination .page-numbers.current { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.pagination .page-numbers.dots { border: 0; background: none; }
.pagination .page-numbers svg { width: 16px; height: 16px; }

