/**
 * Lifestories.in - Rose Gold & Burgundy Theme
 * Mobile-first responsive design
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Rose Gold & Burgundy Color Palette */
    --primary: #722F37;
    /* Deep Burgundy Wine */
    --secondary: #F59E8B;
    /* Rose Gold */
    --accent: #FE6B8B;
    /* Coral Pink */
    --background: #FDF2F8;
    /* Soft Blush Pink */
    --surface: #FFFFFF;
    --text-main: #2D0E12;
    /* Deep Brown */
    --text-muted: #8B6B6E;
    /* Muted Rose Brown */
    --gradient-main: linear-gradient(135deg, #722F37 0%, #F59E8B 100%);
    --gradient-soft: linear-gradient(135deg, #FDF2F8 0%, #FFE4E6 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-handwritten: 'Caveat', cursive;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(114, 47, 55, 0.08);
    --shadow-md: 0 4px 16px rgba(114, 47, 55, 0.12);
    --shadow-lg: 0 8px 24px rgba(114, 47, 55, 0.16);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--space-md);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.story-body {
    font-family: var(--font-main);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.story-body p {
    margin-bottom: var(--space-lg);
}

.story-body blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary);
    border-left: 3px solid var(--secondary);
    padding-left: var(--space-md);
    margin: var(--space-xl) 0;
}

/* Removed incorrect background-clip: text from .section */

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: sticky;
    top: 0;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--space-md) 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-main);
    border-radius: 50%;
}

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s;
    }

    .nav-links.active {
        right: 0;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-2xl) 0;
    background: var(--gradient-soft);
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PAGE HEADER ===== */
.page-header,
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.page-header h1,
.section-header h2 {
    margin-bottom: var(--space-md);
}

.page-header p,
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary);
    color: white;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.card,
.content-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover,
.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.content-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.text-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto var(--space-lg);
}

.shayari-card,
.quote-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.shayari-card p,
.quote-card blockquote {
    font-size: 1.125rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: var(--space-md);
}

.author,
cite {
    display: block;
    text-align: right;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FORMS ===== */
.form-container {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5D9DB;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}

.form-check label {
    margin: 0;
    font-weight: 400;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle input:checked+.toggle-slider {
    background-color: var(--primary);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    margin: var(--space-md) 0;
    transition: all 0.3s ease;
}

/* ===== LIKE BUTTON ===== */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--primary);
}

.like-btn:hover {
    background: var(--primary);
    color: white;
}

.like-btn.liked {
    background: var(--primary);
    color: white;
}

.heart-icon {
    font-size: 1.25rem;
    transition: transform 0.2s;
}

/* ===== FOOTER ===== */
footer {
    background: var(--surface);
    padding: var(--space-xl) 0;
    text-align: center;
    border-top: 1px solid #E5D9DB;
    margin-top: var(--space-2xl);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: bottom 0.3s;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* ===== ADSENSE UTILITIES ===== */
.ad-container {
    padding: var(--space-xl) 0;
    text-align: center;
    width: 100%;
    margin: var(--space-xl) auto;
}

.ad-placeholder {
    background: #f1f1f1;
    border: 1px dashed #ccc;
    color: #999;
    padding: var(--space-xl);
    font-size: 0.85rem;
    font-family: var(--font-main);
    display: inline-block;
    min-width: 320px;
    min-height: 100px;
    border-radius: var(--radius-sm);
}

.ad-long .ad-placeholder {
    width: 100%;
    max-width: 970px;
    min-height: 90px;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-lg {
    margin-top: var(--space-xl);
}

.mb-md {
    margin-bottom: var(--space-md);
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-xl) 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}