/*
Theme Name: Faqirs Digital
Theme URI: https://faqirs.com
Author: Faqirs
Author URI: https://faqirs.com
Description: A Web Analytics & Digital Marketing theme built with Tailwind CSS and Flowbite components.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faqirs-digital
Tags: blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   Body offset for fixed navbar
   ============================================ */
body {
    padding-top: 73px;
}

/* ============================================
   WordPress alignment classes
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ============================================
   Post content typography (.entry-content)
   ============================================ */
.entry-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2E2E3A;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2E2E3A;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2E2E3A;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2E2E3A;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-content h5,
.entry-content h6 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2E2E3A;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #4B5563;
}

.entry-content a {
    color: #2E2E3A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: #B89FC6;
}

.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #4B5563;
}

.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #4B5563;
}

.entry-content li {
    margin-bottom: 0.375rem;
    line-height: 1.75;
}

.entry-content blockquote {
    border-left: 4px solid #CDB4DB;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #FAF8F3;
    color: #374151;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre {
    background-color: #1F2937;
    color: #E5E7EB;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.entry-content code {
    background-color: #F3F4F6;
    color: #FFDAC1;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.entry-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.entry-content table th {
    background-color: #2E2E3A;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #B89FC6;
}

.entry-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    color: #4B5563;
}

.entry-content table tr:nth-child(even) {
    background-color: #F9FAFB;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.entry-content figure {
    margin: 1.5rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

.entry-content hr {
    border: 0;
    border-top: 1px solid #E5E7EB;
    margin: 2rem 0;
}

.entry-content strong {
    font-weight: 700;
    color: #1F2937;
}

.entry-content em {
    font-style: italic;
}

/* ============================================
   WordPress caption
   ============================================ */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* ============================================
   WordPress gallery
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 0.5rem;
}

.gallery-caption {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ============================================
   Screen reader text
   ============================================ */
.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;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #FAF8F3;
    clip: auto !important;
    clip-path: none;
    color: #2E2E3A;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   Sticky post indicator
   ============================================ */
.sticky .post-card-badge {
    display: inline-flex;
}

/* ============================================
   Easy Table of Contents overrides
   ============================================ */
#ez-toc-container {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
}

#ez-toc-container .ez-toc-title {
    color: #2E2E3A !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
}

#ez-toc-container a {
    color: #2E2E3A !important;
    text-decoration: none !important;
}

#ez-toc-container a:hover {
    color: #FFDAC1 !important;
    text-decoration: underline !important;
}

/* ============================================
   Yoast breadcrumb overrides
   ============================================ */
.yoast-breadcrumbs {
    font-size: 0.875rem;
    color: #6B7280;
}

.yoast-breadcrumbs a {
    color: #2E2E3A;
    text-decoration: none;
}

.yoast-breadcrumbs a:hover {
    color: #FFDAC1;
    text-decoration: underline;
}

/* ============================================
   WordPress block editor styles
   ============================================ */
.wp-block-image img {
    border-radius: 0.75rem;
}

.wp-block-separator {
    border-color: #E5E7EB;
}

.wp-block-quote {
    border-left: 4px solid #CDB4DB;
    padding: 1rem 1.5rem;
    background-color: #FAF8F3;
    border-radius: 0 0.5rem 0.5rem 0;
}

.wp-block-code {
    background-color: #1F2937;
    border-radius: 0.75rem;
}

.wp-block-table table {
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #E5E7EB;
    padding: 0.75rem 1rem;
}

/* ============================================
   Pagination
   ============================================ */
.pagination .nav-links {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2E2E3A;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pagination .page-numbers:hover {
    background-color: #FAF8F3;
    color: #B89FC6;
}

.pagination .page-numbers.current {
    background-color: #2E2E3A;
    color: #FFFFFF;
    border-color: #2E2E3A;
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
}
