/*
Theme Name: ShayariFocus Modern Magazine Pro v36
Theme URI: https://shayarifocus.in
Author: Professional Design Studio
Author URI: https://shayarifocus.in
Description: Modern Magazine & News Layout for Shayari Portals. Clean Light Minimal Aesthetics, Hero Featured Grid, News Portal Navigation with Right Off-Canvas Drawer, Desktop Sticky Sidebar, Instant One-Touch Copy and WhatsApp Share, 98+ Speed Score.
Version: 36.0.0
License: GNU General Public License v2 or later
Text Domain: shayarifocus-magazine-v36
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

:root {
    --brand-red: #e11d48;
    --brand-dark: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Tiro Devanagari Hindi', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

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

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

/* TOP MAGAZINE HEADER */
.top-news-bar {
    background: var(--brand-dark);
    color: #94a3b8;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
}

.top-news-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-tag {
    background: var(--brand-red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10px;
    margin-right: 8px;
}

/* MAIN HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

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

.brand-logo span { color: var(--brand-red); }

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

.header-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.header-search-input {
    border: none;
    outline: none;
    padding: 7px 12px;
    font-size: 13px;
    color: #0f172a;
    background: transparent;
    width: 160px;
}

.header-search-btn {
    background: var(--brand-red);
    border: none;
    color: #fff;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.open-menu-btn {
    background: var(--brand-dark);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-panel {
    position: fixed;
    top: 0; right: -330px;
    width: 300px; height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease-in-out;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-panel.active { right: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--brand-dark);
    color: #ffffff;
}

.sidebar-header h3 { font-size: 16px; font-weight: 900; }
.close-btn { background: transparent; border: none; color: #fff; font-size: 26px; cursor: pointer; }

.sidebar-nav { padding: 10px 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-nav ul li a:hover {
    background: #fff1f2;
    color: var(--brand-red);
}

/* MAGAZINE MAIN LAYOUT WRAPPER */
.main-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px 0 60px;
    gap: 24px;
}

.main-content-area { width: 68%; }
.right-sidebar-area {
    width: 29%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

/* MAGAZINE NEWS FEED CARDS */
.magazine-feed-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.magazine-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.magazine-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.magazine-card-meta {
    padding: 16px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.mag-cat-badge {
    background: #fff1f2;
    color: var(--brand-red);
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 11px;
}

.magazine-card-title {
    padding: 10px 20px 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.4;
}

.magazine-card-title a:hover { color: var(--brand-red); }

/* CLEAN SHAYARI HIGHLIGHT BOX */
.magazine-poetry-box {
    margin: 16px 20px;
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--brand-red);
    border-radius: 0 8px 8px 0;
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 19px;
    line-height: 1.9;
    color: #0f172a;
    font-weight: 600;
    white-space: pre-line;
}

.magazine-card-footer {
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-action-group { display: flex; align-items: center; gap: 8px; }

.mag-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
}

.btn-mag-copy { background: #be123c; }
.btn-mag-wa { background: #16a34a; }

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--brand-dark);
    text-transform: uppercase;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--brand-dark);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--brand-red);
}

.widget-cat-list { list-style: none; }
.widget-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13.5px;
    font-weight: 700;
}

.recent-posts-list { list-style: none; }
.recent-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.recent-item-icon {
    width: 38px; height: 38px;
    border-radius: 6px;
    background: var(--brand-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.recent-item-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.35;
}

/* Toast */
#shayari-toast {
    visibility: hidden; min-width: 220px; background: var(--brand-dark); color: #fff; text-align: center; border-radius: 20px; padding: 10px 20px; position: fixed; z-index: 9999; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700;
}

#shayari-toast.show { visibility: visible; animation: fadeIn 0.3s, fadeOut 0.5s 2.2s; }
@keyframes fadeIn { from { bottom: 0; opacity: 0; } to { bottom: 35px; opacity: 1; } }
@keyframes fadeOut { from { bottom: 35px; opacity: 1; } to { bottom: 0; opacity: 0; } }

.site-footer { background: var(--brand-dark); color: #94a3b8; padding: 40px 0 25px; font-size: 13px; text-align: center; margin-top: auto; }
.footer-adsense-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-adsense-nav a { color: #cbd5e1; font-weight: 600; }

@media (max-width: 1024px) {
    .main-content-area { width: 100%; }
    .right-sidebar-area { width: 100%; position: static; }
}

@media (max-width: 680px) {
    .header-search-input { width: 100px; }
    .magazine-card-title { font-size: 18px; }
    .magazine-poetry-box { font-size: 17px; margin: 12px 14px; padding: 16px; }
}
