/* =========================================
   Mali Jeevan - Modern Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F8BBD0;
    --accent: #FF4081;

    /* Neutral Colors */
    --bg-body: #FFF0F5;
    /* Very light pink tint */
    --bg-surface: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --border-light: #FCE4EC;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E91E63 0%, #FF4081 100%);
    --gradient-hero: linear-gradient(135deg, #FFF0F5 0%, #FFFFFF 100%);
    --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.08);
    --shadow-md: 0 8px 24px rgba(233, 30, 99, 0.12);
    --shadow-lg: 0 16px 48px rgba(233, 30, 99, 0.18);

    /* Spacing */
    --container-max: 1200px;
    --header-height: 70px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
    /* Space for mobile nav */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   Header & Navigation
   ========================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
    border-left: 1px solid var(--border-light);
    padding-left: 20px;
    margin-left: 10px;
}

.lang-switch a {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.6;
}

.lang-switch a.active {
    opacity: 1;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(233, 30, 99, 0.05);
}

.btn-text {
    background: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

/* =========================================
   Hero Section
   ========================================= */

.hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(135deg, #2D3436 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Floating Elements (Decoration) */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.6;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: #F8BBD0;
    top: -50px;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: #E1F5FE;
    bottom: -100px;
    right: -100px;
}

/* =========================================
   Features Grid
   ========================================= */

.features-section {
    padding: 80px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   Stories / Matches Slider (Grid for now)
   ========================================= */

.stories-section {
    padding: 80px 20px;
    background: var(--bg-body);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.story-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

.story-content {
    padding: 20px;
}

.story-names {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.story-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   Footer
   ========================================= */

.main-footer {
    background: #1A1A1A;
    color: white;
    padding: 60px 20px 30px;
    margin-top: 0;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #888;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   Mobile Navigation
   ========================================= */

.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 20px;
    /* Extra padding for safe area */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    border-top: 1px solid var(--border-light);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item i {
    font-size: 1.4rem;
}

/* Utility: Hide Desktop Nav on Mobile */
@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    .mobile-nav-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}
/* =========================================
   Auth Pages (Login/Register)
   ========================================= */

.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: url('../images/auth-bg-pattern.svg') no-repeat center center/cover;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
}

.auth-container h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.auth-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Checkbox Style */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-group input[type='checkbox'] {
    margin-top: 4px;
    accent-color: var(--primary);
}


/* Mobile Auth Refinements */
@media (max-width: 500px) {
    .auth-wrapper {
        padding: 0;
        background: white; /* Remove pattern on mobile for clean look */
        align-items: flex-start;
        padding-top: 20px;
    }

    .auth-container {
        box-shadow: none;
        border: none;
        padding: 20px 15px;
        border-radius: 0;
    }

    .auth-container h2 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 14px 16px; /* Larger touch target */
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

