/*
Theme Name: Romantic Shayari GeneratePress Child
Theme URI: https://www.romanticshayari.co.in/
Description: Lightweight custom Shayari magazine child theme for GeneratePress.
Author: Romantic Shayari
Version: 1.0.0
Template: generatepress
Text Domain: romantic-shayari-gp
*/

/* =========================================================
   Base / Variables
========================================================= */
:root {
    --rs-red: #a51d35;
    --rs-red-dark: #7f1428;
    --rs-ink: #171717;
    --rs-muted: #707070;
    --rs-border: #e9e9e9;
    --rs-soft: #faf8f8;
    --rs-white: #fff;
    --rs-radius: 12px;
    --rs-shadow: 0 8px 28px rgba(0,0,0,.06);
    --rs-container: 1180px;
}

html { scroll-behavior: smooth; }

body {
    background: #fff;
    color: var(--rs-ink);
}

a { color: inherit; }
a:hover { color: var(--rs-red); }

.site-header,
.site-footer { background: #fff; }

.site-header {
    border-bottom: 1px solid var(--rs-border);
}

.site-content,
.site-header .inside-header,
.main-navigation .inside-navigation {
    max-width: var(--rs-container);
    margin-inline: auto;
}

.site-content {
    padding-top: 0;
}

.inside-header {
    padding-top: 22px;
    padding-bottom: 18px;
}

.site-branding .main-title,
.site-branding .main-title a {
    font-weight: 800;
    letter-spacing: -.03em;
}

.site-description {
    color: var(--rs-muted);
    font-size: 13px;
}

/* Hide GP page title only on the custom front page */
.home .site-content .page-header { display: none; }

/* =========================================================
   Navigation
========================================================= */
.main-navigation {
    border-top: 1px solid var(--rs-border);
    background: #fff;
}

.main-navigation .main-nav > ul > li > a {
    font-size: 14px;
    font-weight: 650;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
    color: var(--rs-red);
}

/* =========================================================
   Homepage container
========================================================= */
.rs-home {
    max-width: var(--rs-container);
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.rs-section {
    margin-top: 46px;
}

.rs-section:first-child { margin-top: 0; }

.rs-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.rs-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--rs-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rs-section-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.rs-view-all {
    flex: 0 0 auto;
    color: var(--rs-red);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   Hero
========================================================= */
.rs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
    gap: 22px;
    margin-bottom: 4px;
}

.rs-hero-main {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border-radius: var(--rs-radius);
    background: #111;
}

.rs-hero-main img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    opacity: .82;
}

.rs-hero-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 90px 34px 32px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
}

.rs-hero-overlay .rs-eyebrow {
    color: #fff;
}

.rs-hero-title {
    max-width: 760px;
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.rs-hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,.82);
}

.rs-latest-panel {
    padding: 24px;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: var(--rs-soft);
}

.rs-latest-panel h2 {
    margin: 0 0 15px;
    font-size: 20px;
}

.rs-mini-post {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--rs-border);
}

.rs-mini-post:first-of-type { border-top: 0; padding-top: 0; }

.rs-mini-post img {
    width: 84px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
}

.rs-mini-post h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.3;
}

.rs-mini-post .rs-meta {
    font-size: 11px;
    color: var(--rs-muted);
}

/* =========================================================
   Category chips
========================================================= */
.rs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.rs-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--rs-border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.rs-chip:hover {
    border-color: var(--rs-red);
    background: #fff8f9;
    color: var(--rs-red);
}

/* =========================================================
   Cards
========================================================= */
.rs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rs-card {
    overflow: hidden;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.rs-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rs-shadow);
}

.rs-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f1f1;
}

.rs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-card-body {
    padding: 16px 17px 18px;
}

.rs-eyebrow {
    color: var(--rs-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rs-card-title {
    margin: 7px 0 9px;
    font-size: 19px;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.rs-card-title a { text-decoration: none; }

.rs-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rs-muted);
    font-size: 11px;
}

/* =========================================================
   Web Stories
========================================================= */
.rs-story-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.rs-story-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    background: #222;
}

.rs-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-story-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 55%);
}

.rs-story-title {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 14px;
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

/* =========================================================
   Popular
========================================================= */
.rs-popular-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    border-top: 1px solid var(--rs-border);
}

.rs-popular-item {
    display: grid;
    grid-template-columns: 40px 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 108px;
    border-bottom: 1px solid var(--rs-border);
}

.rs-rank {
    color: #c6c6c6;
    font-size: 24px;
    font-weight: 800;
}

.rs-popular-item img {
    width: 86px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.rs-popular-item h3 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.3;
}

.rs-popular-meta {
    color: var(--rs-muted);
    font-size: 11px;
}

/* =========================================================
   Split sections
========================================================= */
.rs-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.rs-panel {
    padding: 24px;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: var(--rs-soft);
}

.rs-panel .rs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rs-panel .rs-card {
    border: 0;
    box-shadow: none;
}

.rs-panel .rs-card-body {
    padding: 11px 0 0;
}

.rs-panel .rs-card-title {
    font-size: 16px;
}

/* =========================================================
   Quote
========================================================= */
.rs-quote {
    position: relative;
    padding: 56px 28px;
    border-radius: var(--rs-radius);
    background: #f8f3f4;
    text-align: center;
}

.rs-quote-mark {
    color: var(--rs-red);
    font-family: Georgia, serif;
    font-size: 68px;
    line-height: .6;
}

.rs-quote-text {
    max-width: 800px;
    margin: 12px auto 10px;
    font-size: clamp(24px, 3.2vw, 38px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.03em;
}

.rs-quote-source {
    color: var(--rs-muted);
    font-size: 12px;
}

/* =========================================================
   Article feature
========================================================= */
.rs-article-feature {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 26px;
    align-items: center;
}

.rs-article-feature-image {
    overflow: hidden;
    border-radius: var(--rs-radius);
    aspect-ratio: 16 / 10;
}

.rs-article-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-article-feature h3 {
    margin: 7px 0 12px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
}

.rs-article-feature p {
    color: var(--rs-muted);
    margin-bottom: 18px;
}

/* =========================================================
   Empty state
========================================================= */
.rs-empty {
    padding: 24px;
    border: 1px dashed var(--rs-border);
    border-radius: var(--rs-radius);
    color: var(--rs-muted);
}

/* =========================================================
   Footer
========================================================= */
.site-info {
    border-top: 1px solid var(--rs-border);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
    .rs-hero {
        grid-template-columns: 1fr;
    }

    .rs-hero-main,
    .rs-hero-main img {
        min-height: 400px;
        height: 400px;
    }

    .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .rs-split,
    .rs-article-feature {
        grid-template-columns: 1fr;
    }

    .rs-popular-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .rs-home {
        padding: 18px 14px 45px;
    }

    .rs-section { margin-top: 36px; }

    .rs-section-head {
        align-items: center;
        margin-bottom: 14px;
    }

    .rs-section-title { font-size: 25px; }

    .rs-hero-main,
    .rs-hero-main img {
        min-height: 390px;
        height: 390px;
    }

    .rs-hero-overlay {
        padding: 90px 20px 22px;
    }

    .rs-hero-title { font-size: 31px; }

    .rs-latest-panel { padding: 18px; }

    .rs-grid { grid-template-columns: 1fr; gap: 16px; }

    .rs-panel .rs-grid { grid-template-columns: 1fr 1fr; }

    .rs-card-title { font-size: 18px; }

    .rs-story-scroller {
        grid-auto-columns: 155px;
        margin-right: -14px;
    }

    .rs-popular-item {
        grid-template-columns: 32px 72px minmax(0, 1fr);
        gap: 9px;
    }

    .rs-popular-item img {
        width: 72px;
        height: 62px;
    }

    .rs-rank { font-size: 19px; }

    .rs-article-feature h3 { font-size: 27px; }

    .rs-quote { padding: 44px 18px; }

    .rs-quote-text { font-size: 25px; }
}

/* Keep WP admin bar from breaking fixed/positioned elements */
.admin-bar .site-header { top: 0; }
