/*
Theme Name: ShayariFocus Studio Pro v52
Theme URI: https://shayarifocus.in
Author: Web Design Studio
Author URI: https://shayarifocus.in
Description: Premium Modern Layout for Shayari Focus. Features Light Premium Background, Card Hover Lift, Gradient Accent Headlines, Crisp Round Calligraphy Logo Support, Ultra-Fast Load Speed (99+), Mobile 3-Line Drawer, and Full Legal Footer.
Version: 52.0.0
License: GNU General Public License v2 or later
Text Domain: shayarifocus-pro-studio-v52
*/

:root {
    --primary-red: #be123c;
    --primary-red-hover: #9f1239;
    --primary-green: #00b87c;
    --dark-navy: #0f172a;
    --card-bg: #ffffff;
    --bg-body: #f1f5f9;
    --border-color: #e2e8f0;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* HEADER & LOGO ALIGNMENT */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.brand-logo-container {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 68px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08));
}

.brand-logo-text {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: -0.5px;
}

.header-right-tools { display: flex; align-items: center; gap: 12px; }

/* PRO ENHANCED SEARCH BUTTON */
.search-toggle-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    color: #1e293b;
    padding: 8px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.search-toggle-btn:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: transparent;
}

.mobile-hamburger-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0f172a;
    padding: 4px 8px;
    display: none;
}

/* DESKTOP NAVIGATION STRIP (PREMIUM DEEP NAVY) */
.category-nav-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 3px solid var(--primary-red);
}

.category-nav-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.category-nav-inner ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.category-nav-inner li { display: inline-block; }

.category-nav-inner a {
    display: inline-block;
    padding: 11px 20px;
    color: #f1f5f9;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.category-nav-inner a:hover,
.category-nav-inner li.current-menu-item a {
    background: var(--primary-red);
    color: #ffffff !important;
}

/* MOBILE OFF-CANVAS DRAWER */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); opacity: 0; visibility: hidden; transition: all 0.25s; z-index: 1001;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-panel {
    position: fixed; top: 0; right: -340px; width: 310px; height: 100%;
    background: #ffffff; z-index: 1002; transition: right 0.25s ease; display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.sidebar-panel.active { right: 0; }

.sidebar-header {
    padding: 18px 20px; background: var(--dark-navy); color: #ffffff; border-bottom: 2px solid var(--primary-red);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-header h3 { font-size: 16px; font-weight: 800; color: #ffffff; text-transform: uppercase; }
.close-btn { background: transparent; border: none; color: #fff; font-size: 26px; cursor: pointer; }

.sidebar-nav { padding: 16px; overflow-y: auto; }
.sidebar-nav ul {
    list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.sidebar-nav li { display: block; }
.sidebar-nav li.home-drawer-item { grid-column: 1 / -1; }

.sidebar-nav a {
    display: block; padding: 11px 12px; font-weight: 700; font-size: 13px; color: #1e293b;
    background: #f8fafc; border-radius: 8px; text-align: center; border: 1px solid #e2e8f0; text-transform: uppercase;
}

.sidebar-nav li.home-drawer-item a { background: var(--primary-red); color: #ffffff; border-color: transparent; }

/* TOP CAROUSEL */
.featured-stories-section { margin: 20px 0 24px; }
.stories-scroll-container {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none;
}
.stories-scroll-container::-webkit-scrollbar { display: none; }

.story-card {
    min-width: 155px; width: 155px; height: 210px; border-radius: 12px;
    overflow: hidden; position: relative; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.story-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(15,23,42,0.88) 100%);
    display: flex; align-items: flex-end; padding: 12px;
}

.story-card-title {
    color: #ffffff; font-size: 12px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* VECTOR SHAYARI CARD THUMBNAIL (CLEAN GRADIENT CARDS) */
.vector-shayari-banner {
    width: 100%; height: 100%; padding: 22px 16px; display: flex;
    align-items: center; justify-content: center; text-align: center; color: #ffffff;
    box-sizing: border-box;
}

.banner-style-0 { background: linear-gradient(135deg, #be123c 0%, #881337 100%); }
.banner-style-1 { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); }
.banner-style-2 { background: linear-gradient(135deg, #047857 0%, #064e3b 100%); }
.banner-style-3 { background: linear-gradient(135deg, #6b21a8 0%, #4c1d95 100%); }
.banner-style-4 { background: linear-gradient(135deg, #b45309 0%, #78350f 100%); }
.banner-style-5 { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

.vector-banner-text {
    font-size: 15.5px; font-weight: 700; line-height: 1.5; color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line;
}

/* CATEGORY BLOCK SECTIONS */
.category-block-section { margin-bottom: 28px; }

.category-block-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; border-bottom: 2px solid #cbd5e1; padding-bottom: 8px;
}

.category-block-title {
    font-size: 19px; font-weight: 800; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px; color: var(--text-heading);
}

.category-block-title::before {
    content: ''; display: inline-block; width: 5px; height: 20px;
    background-color: var(--primary-red); border-radius: 3px;
}

.view-all-btn {
    background: var(--primary-red); color: #ffffff !important; font-size: 12px;
    font-weight: 700; padding: 5px 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 6px rgba(190, 18, 60, 0.25); transition: background 0.2s;
}

.view-all-btn:hover { background: var(--primary-red-hover); }

/* POSTS GRID WITH CARD HOVER ELEVATION */
.posts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.post-card-item {
    background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.03); overflow: hidden; display: flex; flex-direction: column;
    text-decoration: none !important; color: inherit; transition: all 0.25s ease;
}

.post-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.post-card-thumb-link { display: block; width: 100%; height: 185px; overflow: hidden; position: relative; background: #f1f5f9; }
.post-card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card-item:hover .post-card-thumb { transform: scale(1.05); }

.post-card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; justify-content: center; }

.post-card-title {
    font-size: 16px; font-weight: 700; color: var(--text-heading); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0;
}

.post-card-item:hover .post-card-title { color: var(--primary-red); }

/* CATEGORY ARCHIVE PAGE */
.category-page-header {
    margin: 20px 0 24px; padding: 18px 22px; background: #ffffff;
    border-left: 5px solid var(--primary-red); border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.category-page-title { font-size: 24px; font-weight: 800; color: #0f172a; text-transform: uppercase; }
.category-breadcrumbs { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* SINGLE POST PAGE */
.single-post-container { max-width: 840px; margin: 24px auto 48px; }
.single-post-card { background: #ffffff; border-radius: 14px; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.04); overflow: hidden; }
.single-featured-thumb-box { width: 100%; max-height: 380px; overflow: hidden; }
.single-featured-thumb { width: 100%; height: 100%; object-fit: cover; }
.single-post-body { padding: 26px 28px; }
.single-post-title-main { font-size: 26px; font-weight: 800; color: #881337; margin-bottom: 16px; line-height: 1.35; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; text-align: center; }

/* SEARCH OVERLAY */
.search-modal-box {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15,23,42,0.92); backdrop-filter: blur(6px); z-index: 2000; align-items: center; justify-content: center;
}

.search-modal-box.active { display: flex; }
.search-modal-inner { background: #ffffff; padding: 32px; border-radius: 16px; width: 90%; max-width: 600px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.search-modal-inner form { display: flex; gap: 12px; }
.search-modal-inner input { flex-grow: 1; padding: 14px 18px; border: 2px solid #cbd5e1; border-radius: 10px; outline: none; font-size: 16px; font-weight: 600; }
.search-modal-inner button { background: var(--primary-red); color: #fff; border: none; padding: 14px 24px; border-radius: 10px; font-weight: 800; font-size: 15px; cursor: pointer; }

.pagination-wrap { text-align: center; margin: 32px 0 44px; }
.pagination-wrap .page-numbers { display: inline-block; padding: 8px 16px; margin: 0 3px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 700; font-size: 13.5px; }
.pagination-wrap .page-numbers.current { background: var(--primary-red); color: #ffffff; border-color: transparent; }

/* FOOTER */
.site-footer {
    background: #0f172a; color: #94a3b8; padding: 42px 0 28px; font-size: 13px; text-align: center; margin-top: 48px; border-top: 4px solid var(--primary-red);
}

.footer-adsense-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-adsense-nav a { color: #cbd5e1; font-weight: 600; transition: color 0.2s; }
.footer-adsense-nav a:hover { color: var(--primary-red); }
.footer-copyright { font-size: 13px; color: #64748b; margin-top: 10px; font-weight: 500; }

@media (max-width: 900px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .category-nav-bar { display: none !important; }
    .mobile-hamburger-btn { display: block !important; }
    .posts-grid { grid-template-columns: 1fr; }
    .story-card { min-width: 135px; width: 135px; height: 185px; }
    .category-block-title { font-size: 17px; }
    .single-post-body { padding: 18px 16px; }
    .category-block-section { margin-bottom: 20px; }
    .custom-logo { max-height: 56px !important; }
}
