/*
Theme Name: Samundri Custom Theme
Theme URI: https://samundri.pk
Description: صاف، ہلکی اور کارکردگی پسند RTL اردو تھیم
Author: Samundri Team
Author URI: https://samundri.pk
Version: 6.0.20260504
Text Domain: samundri-theme
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* IMPORTANT:
   یہ فائل اب صرف shared content layout کے لیے ہے۔
   Header/Footer styling اب الگ فائلوں میں ہوگی:
   - assets/css/header.css
   - assets/css/footer.css
*/

/* =========================================================
   1. COMMON CONTAINER & CONTENT SUPPORT
   ========================================================= */

.smd-container,
.archive-container {
    max-width: var(--maxw, 1100px);
    margin: 0 auto;
    padding-inline: 15px;
    direction: rtl;
    text-align: right;
}

/* =========================================================
   2. PAGE & SINGLE POST DESIGN
   ========================================================= */

.smd-page-wrapper,
.smd-single-post {
    padding-top: var(--sp-8, 2rem);
    padding-bottom: var(--sp-10, 2.5rem);
}

.smd-page-title,
.smd-article-title,
.archive-title {
    color: var(--danger, #121212);
    font-size: var(--fs-3xl, 26px);
    margin-bottom: var(--sp-5, 1.25rem);
    border-bottom: 2px solid var(--border, #e5e7eb);
    padding-bottom: 8px;
}

.smd-page-content,
.smd-article-content,
.archive-post .excerpt {
    font-size: var(--fs-lg, 18px);
    line-height: var(--lh, 1.9);
    color: var(--text, #121212);
}

/* =========================================================
   3. META / MEDIA
   ========================================================= */

.smd-article-meta {
    font-size: var(--fs-sm, 14px);
    color: var(--muted, #6b7280);
    margin-bottom: var(--sp-5, 1.25rem);
}

.meta-sep {
    margin: 0 10px;
}

.img-responsive,
.smd-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: var(--sp-6, 1.5rem);
}

/* =========================================================
   4. ARCHIVE PAGE
   ========================================================= */

.archive-post {
    margin-bottom: var(--sp-8, 2rem);
    padding-bottom: var(--sp-6, 1.5rem);
}

.post-title {
    margin: 0 0 var(--sp-3, .75rem) 0;
}

.post-title a {
    color: var(--danger, #121212);
    text-decoration: none;
    font-size: var(--fs-2xl, 22px);
    transition: color var(--t-norm, .18s ease);
}

.post-title a:hover {
    color: var(--brand, #1D4ED8);
}

.read-more {
    color: var(--info, #1e90ff);
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    margin-top: var(--sp-3, .75rem);
    font-size: var(--fs-sm, 14px);
}

.post-separator {
    border: 0;
    border-top: 1px solid var(--border, #e5e7eb);
    margin: var(--sp-6, 1.5rem) 0;
}

/* =========================================================
   5. SHARING / PAGE FOOTER BLOCKS / PAGINATION
   ========================================================= */

.smd-page-footer,
.smd-article-footer {
    margin-top: var(--sp-10, 2.5rem);
    padding-top: var(--sp-5, 1.25rem);
    border-top: 1px solid var(--border, #e5e7eb);
}

.smd-share-links a,
.smd-share-box a {
    display: inline-block;
    margin-left: 15px;
    color: var(--danger, #121212);
    text-decoration: none;
    font-weight: 700;
}

.smd-share-links a:hover,
.smd-share-box a:hover {
    text-decoration: underline;
}

.smd-post-nav,
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: var(--sp-8, 2rem);
    flex-wrap: wrap;
}

.smd-post-nav a {
    color: var(--brand, #1D4ED8);
    text-decoration: none;
    font-weight: 500;
}

/* =========================================================
   6. VIDEO WRAPPER
   ========================================================= */

.smd-page-video-wrap {
    margin: var(--sp-8, 2rem) 0;
}

/* =========================================================
   7. PERFORMANCE / CLS
   ========================================================= */

.cat-tiles {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

/* =========================================================
   8. RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
    .smd-page-title,
    .smd-article-title,
    .archive-title {
        font-size: var(--fs-2xl, 22px);
    }

    .post-title a {
        font-size: var(--fs-xl, 20px);
    }

    .smd-page-content,
    .smd-article-content {
        font-size: 1.05rem;
    }

    .smd-container,
    .archive-container {
        padding-inline: 12px;
    }
}