/* =====================================================
   SHASHISH
   Poems • Shayari • Stories
===================================================== */

:root {

    --bg: #faf9f7;
    --surface: #ffffff;
    --surface-2: #f2f0ec;

    --text: #1b1a18;
    --muted: #77736c;

    --accent: #9a6242;
    --accent-dark: #71452e;
    --accent-light: #ead8ca;

    --border: #e5e0da;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.07);

    --radius: 18px;

    --max-width: 1180px;
}


/* ================= RESET ================= */

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

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.7;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

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

button,
input {
    font: inherit;
}


/* ================= CONTAINER ================= */

.container {

    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin-inline: auto;
}


/* ================= HEADER ================= */

.header {

    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(250, 249, 247, 0.92);

    backdrop-filter: blur(16px);

    border-bottom:
        1px solid var(--border);
}

.navbar {

    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ================= BRAND ================= */

.brand {

    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {

    width: 45px;
    height: 45px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #b77b57,
            #713f2b
        );

    box-shadow:
        0 8px 20px rgba(113, 63, 43, 0.25);

    position: relative;
}

.logo::after {

    content: "";

    position: absolute;

    inset: 4px;

    border:
        1px solid rgba(255,255,255,0.5);

    border-radius: 50%;
}

.logo span {

    font-family:
        Georgia,
        serif;

    font-size: 23px;

    font-weight: bold;

    z-index: 1;
}

.brand-text {

    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.brand-text strong {

    font-size: 21px;
    letter-spacing: 0.2px;
}

.brand-text small {

    color: var(--muted);
    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* ================= NAV ================= */

.nav-links {

    display: flex;
    align-items: center;

    gap: 32px;
}

.nav-links a {

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;

    color: var(--muted);

    transition: color 0.2s ease;
}

.nav-links a:hover {

    color: var(--accent);
}


.nav-actions {

    display: flex;
    align-items: center;
    gap: 10px;
}

.login-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 20px;

    border-radius: 50px;

    background: var(--accent);
    color: white;

    font-family: Arial, sans-serif;
    font-size: 13px;

    transition: 0.2s;
}

.login-button:hover {

    background: var(--accent-dark);

    transform: translateY(-2px);
}

.theme-button,
.menu-button {

    border: 1px solid var(--border);

    background: var(--surface);

    width: 40px;
    height: 40px;

    border-radius: 50%;

    cursor: pointer;

    color: var(--text);

    transition: 0.2s;
}

.theme-button:hover,
.menu-button:hover {

    border-color: var(--accent);

    color: var(--accent);
}

.menu-button {
    display: none;
}


/* ================= MOBILE MENU ================= */

.mobile-menu {

    display: none;

    position: fixed;

    z-index: 90;

    top: 82px;
    left: 0;
    right: 0;

    background: var(--surface);

    border-bottom:
        1px solid var(--border);

    padding: 20px;
}

.mobile-menu.active {

    display: flex;

    flex-direction: column;

    gap: 16px;
}

.mobile-menu a {

    font-family: Arial, sans-serif;

    padding: 10px;

    color: var(--muted);
}


/* ================= HERO ================= */

.hero {

    min-height: 680px;

    display: flex;
    align-items: center;

    background:

        radial-gradient(
            circle at 80% 20%,
            rgba(180, 120, 80, 0.13),
            transparent 35%
        ),

        var(--bg);
}

.hero-content {

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 80px;

    align-items: center;
}

.eyebrow,
.section-label {

    display: inline-block;

    color: var(--accent);

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 16px;
}

.hero h1 {

    max-width: 720px;

    font-size:
        clamp(50px, 7vw, 88px);

    line-height: 1.02;

    letter-spacing: -3px;

    font-weight: 500;
}

.hero h1 span {

    color: var(--accent);

    font-style: italic;
}

.hero-text > p {

    max-width: 620px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 18px;
}

.hero-buttons {

    display: flex;

    gap: 14px;

    margin-top: 35px;
}


/* ================= BUTTONS ================= */

.button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 50px;

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;

    transition: 0.2s;
}

.button.primary {

    color: white;

    background:
        var(--accent);
}

.button.primary:hover {

    background:
        var(--accent-dark);

    transform: translateY(-2px);
}

.button.secondary {

    border:
        1px solid var(--border);

    background:
        var(--surface);
}

.button.secondary:hover {

    border-color:
        var(--accent);
}


/* ================= HERO CARD ================= */

.hero-card {

    min-height: 390px;

    padding: 45px;

    border-radius:
        140px 25px 140px 25px;

    background:

        linear-gradient(
            145deg,
            #efe1d5,
            #dcc3b1
        );

    box-shadow:
        var(--shadow);

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.quote-mark {

    color:
        var(--accent);

    font-size: 80px;

    line-height: 0.7;

    margin-bottom: 20px;
}

.hero-card p {

    font-size: 27px;

    line-height: 1.45;

    font-style: italic;
}

.hero-card-line {

    width: 50px;

    height: 1px;

    background:
        var(--accent);

    margin: 28px 0 10px;
}

.hero-card small {

    color:
        var(--accent-dark);

    font-family:
        Arial,
        sans-serif;
}


/* ================= SEARCH ================= */

.search-section {

    padding: 30px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    background:
        var(--surface);
}

.search-box {

    max-width: 650px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 18px;

    border:
        1px solid var(--border);

    border-radius: 50px;

    background:
        var(--bg);
}

.search-box span {

    color:
        var(--accent);

    font-size: 22px;
}

.search-box input {

    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);
}

.search-box input::placeholder {

    color: var(--muted);
}


/* ================= SECTIONS ================= */

.section {

    padding: 110px 0;
}

.gray-section {

    background:
        var(--surface-2);
}

.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;

    margin-bottom: 50px;
}

.section-heading h2 {

    font-size:
        clamp(38px, 5vw, 60px);

    line-height: 1.1;

    font-weight: 500;
}

.section-heading > p {

    max-width: 400px;

    color: var(--muted);
}


/* ================= CONTENT CARDS ================= */

.content-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.content-card {

    padding: 32px;

    min-height: 300px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    display: flex;

    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.content-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow);
}

.featured-card {

    background:
        var(--accent);

    color: white;

    border-color:
        var(--accent);
}

.featured-card .card-category,
.featured-card .read-more {

    color:
        #f4dcca;
}

.card-category {

    font-family:
        Arial,
        sans-serif;

    color:
        var(--accent);

    text-transform:
        uppercase;

    letter-spacing:
        1.5px;

    font-size:
        10px;

    margin-bottom:
        18px;
}

.content-card h3 {

    font-size: 28px;

    font-weight: 500;

    margin-bottom: 15px;
}

.content-card p {

    color:
        var(--muted);
}

.featured-card p {

    color:
        rgba(255,255,255,0.82);
}

.read-more {

    margin-top: auto;

    padding-top: 25px;

    color:
        var(--accent);

    font-family:
        Arial,
        sans-serif;

    font-size:
        12px;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}

.poem-preview {

    margin-top: 20px;

    padding-left: 15px;

    border-left:
        2px solid var(--accent);

    font-style: italic;

    color:
        var(--accent-dark);
}


/* ================= SHAYARI ================= */

.shayari-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.shayari-card {

    padding: 38px;

    border:
        1px solid var(--border);

    background:
        var(--surface);

    border-radius:
        var(--radius);

    transition: 0.2s;
}

.shayari-card:hover {

    border-color:
        var(--accent);

    transform:
        translateY(-3px);
}

.shayari-card > span {

    font-family:
        Arial,
        sans-serif;

    font-size:
        11px;

    color:
        var(--accent);

    letter-spacing:
        2px;
}

.shayari-card p {

    margin-top:
        20px;

    font-size:
        21px;

    line-height:
        1.8;

    font-style:
        italic;
}

.shayari-card small {

    display:
        block;

    margin-top:
        20px;

    color:
        var(--muted);
}


/* ================= STORIES ================= */

.story-list {

    display:
        flex;

    flex-direction:
        column;

    gap:
        20px;
}

.story-item {

    display:
        grid;

    grid-template-columns:
        100px 1fr;

    gap:
        30px;

    padding:
        35px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);
}

.story-number {

    color:
        var(--accent);

    font-size:
        30px;

    font-style:
        italic;
}

.story-content h3 {

    font-size:
        32px;

    font-weight:
        500;

    margin-bottom:
        10px;
}

.story-content p {

    color:
        var(--muted);

    max-width:
        700px;
}


/* ================= QUOTE SECTION ================= */

.quote-section {

    text-align:
        center;

    max-width:
        850px;
}

.quote-section h2 {

    font-size:
        clamp(38px, 6vw, 70px);

    line-height:
        1.25;

    font-weight:
        400;

    font-style:
        italic;
}

.quote-section p {

    margin-top:
        30px;

    color:
        var(--accent);
}


/* ================= ABOUT ================= */

.about-section {

    padding:
        100px 0;

    background:
        #201b18;

    color:
        white;
}

.about-grid {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        100px;
}

.about-section h2 {

    font-size:
        55px;

    line-height:
        1.1;

    font-weight:
        400;
}

.about-section p {

    color:
        rgba(255,255,255,0.7);

    font-size:
        18px;

    margin-bottom:
        20px;
}

.about-section .section-label {

    color:
        #d49b75;
}


/* ================= FOOTER ================= */

.footer {

    padding:
        45px 0 25px;

    background:
        #171412;

    color:
        white;
}

.footer-grid {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding-bottom:
        35px;
}

.footer-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;
}

.footer-brand > div:last-child {

    display:
        flex;

    flex-direction:
        column;
}

.footer-brand small {

    color:
        #8c8782;

    font-family:
        Arial,
        sans-serif;

    font-size:
        10px;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}

.footer-links {

    display:
        flex;

    gap:
        25px;
}

.footer-links a {

    color:
        #a9a29c;

    font-family:
        Arial,
        sans-serif;

    font-size:
        13px;
}

.footer-links a:hover {

    color:
        white;
}

.copyright {

    padding-top:
        20px;

    border-top:
        1px solid rgba(255,255,255,0.1);

    color:
        #716b66;

    font-family:
        Arial,
        sans-serif;

    font-size:
        11px;

    text-align:
        center;
}


/* ================= DARK MODE ================= */

body.dark {

    --bg: #151311;
    --surface: #1e1b18;
    --surface-2: #24201d;

    --text: #eee8e1;
    --muted: #aaa19a;

    --border: #37312d;

    --accent: #d29a74;
    --accent-dark: #b47752;

    --accent-light: #49372c;
}

body.dark .header {

    background:
        rgba(21,19,17,0.92);
}

body.dark .hero-card {

    background:
        linear-gradient(
            145deg,
            #3b2d25,
            #2b211c
        );
}


/* ================= AUTH PAGE ================= */

.auth-section {

    min-height: calc(100vh - 83px);

    display: flex;
    align-items: center;

    padding: 70px 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(180, 120, 80, 0.13),
            transparent 35%
        ),
        var(--bg);
}

.auth-wrap {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.auth-intro .eyebrow {
    display: inline-block;

    color: var(--accent);

    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 16px;
}

.auth-intro h1 {

    font-size: clamp(36px, 5vw, 54px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    font-weight: 500;

    margin-bottom: 20px;
}

.auth-intro h1 span {
    color: var(--accent);
    font-style: italic;
}

.auth-intro p {

    max-width: 420px;

    color: var(--muted);

    font-size: 16px;
}

.auth-card {

    padding: 45px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.auth-tabs {

    display: flex;

    background: var(--surface-2);

    border-radius: 50px;

    padding: 4px;

    margin-bottom: 32px;
}

.auth-tab {

    flex: 1;

    padding: 11px 0;

    text-align: center;

    border: 0;
    border-radius: 50px;

    background: transparent;
    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;

    transition: 0.2s;
}

.auth-tab.active {

    background: var(--accent);
    color: white;
}

.auth-form {
    display: none;

    flex-direction: column;
    gap: 18px;
}

.auth-form.active {
    display: flex;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {

    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.field-group input {

    padding: 13px 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg);
    color: var(--text);

    outline: 0;

    transition: border-color 0.2s ease;
}

.field-group input:focus {
    border-color: var(--accent);
}

.field-hint {

    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #c0392b;

    min-height: 14px;
}

.auth-row {

    display: flex;

    align-items: center;
    justify-content: space-between;

    font-family: Arial, sans-serif;
    font-size: 13px;

    color: var(--muted);
}

.auth-row a {
    color: var(--accent);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-submit {

    margin-top: 6px;

    border: 0;

    padding: 14px 22px;

    border-radius: 50px;

    background: var(--accent);
    color: white;

    font-family: Arial, sans-serif;
    font-size: 14px;

    cursor: pointer;

    transition: 0.2s;
}

.auth-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.auth-divider {

    display: flex;
    align-items: center;
    gap: 14px;

    margin: 26px 0;

    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}

.auth-social {

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {

    display: flex;

    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    font-family: Arial, sans-serif;
    font-size: 13px;

    cursor: pointer;

    transition: 0.2s;
}

.social-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.auth-success {

    display: none;

    align-items: center;
    gap: 8px;

    margin-top: 18px;

    padding: 12px 16px;

    border-radius: 12px;

    background: var(--accent-light);
    color: var(--accent-dark);

    font-family: Arial, sans-serif;
    font-size: 13px;
}

.auth-success.active {
    display: flex;
}

@media (max-width: 900px) {

    .auth-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-intro p {
        margin-inline: auto;
    }
}

@media (max-width: 650px) {

    .auth-card {
        padding: 30px;
    }
}


/* ================= SEARCH RESULTS ================= */

.search-hidden {

    display:
        none !important;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-content {

        grid-template-columns:
            1fr;

        gap:
            50px;

        padding:
            80px 0;
    }

    .hero-card {

        max-width:
            550px;

        min-height:
            300px;
    }

    .content-grid {

        grid-template-columns:
            1fr 1fr;
    }

    .about-grid {

        grid-template-columns:
            1fr;

        gap:
            40px;
    }
}


@media (max-width: 650px) {

    .container {

        width:
            min(
                calc(100% - 28px),
                var(--max-width)
            );
    }

    .navbar {

        height:
            70px;
    }

    .mobile-menu {

        top:
            70px;
    }

    .brand-text small {
        display:
            none;
    }

    .hero {

        min-height:
            auto;
    }

    .hero h1 {

        font-size:
            52px;

        letter-spacing:
            -2px;
    }

    .hero-text > p {

        font-size:
            16px;
    }

    .hero-buttons {

        flex-direction:
            column;

        align-items:
            stretch;
    }

    .hero-card {

        padding:
            35px;

        border-radius:
            80px 20px 80px 20px;
    }

    .hero-card p {

        font-size:
            22px;
    }

    .section {

        padding:
            75px 0;
    }

    .section-heading {

        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .content-grid {

        grid-template-columns:
            1fr;
    }

    .shayari-grid {

        grid-template-columns:
            1fr;
    }

    .story-item {

        grid-template-columns:
            1fr;

        gap:
            10px;
    }

    .story-content h3 {

        font-size:
            27px;
    }

    .about-section h2 {

        font-size:
            42px;
    }

    .footer-grid {

        flex-direction:
            column;

        gap:
            30px;

        align-items:
            flex-start;
    }

    .footer-links {

        flex-wrap:
            wrap;
    }
}

