/* stories.css */

:root {
    --color-leaf-green: #2E7D32;
    --color-soil-brown: #5D4037;
    --color-soft-cream: #F7F6F3;
    --color-charcoal-black: #0B1220;
    --color-accent-glow: rgba(46, 204, 113, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Overrides */
html.dark-mode {
    --color-soft-cream: #0f172a;
    /* Deep Botanical Dark Base */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--color-soft-cream);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.top-nav {
    background: rgba(46, 125, 50, 0.85);
    /* Bio-Glass Green */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    height: 61px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -61px;
    /* Compensate for fixed header */
    padding-top: 61px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    background: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: translateY(0);
    will-change: transform;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(247, 246, 243, 0.4) 0%, rgba(247, 246, 243, 0.9) 80%);
    z-index: 1;
}

html.dark-mode .hero-overlay {
    background: radial-gradient(circle at center, rgba(11, 18, 32, 0.4) 0%, rgba(11, 18, 32, 0.9) 80%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-leaf-green);
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-primary);
    opacity: 0;
    animation: growUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.hero-title .highlight {
    color: var(--color-leaf-green);
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-leaf-green);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.4);
    background: #388e3c;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fadePulse 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(46, 125, 50, 0.2);
    border-radius: 50%;
}

/* --- Featured Section --- */
.featured-section {
    padding: 80px 20px;
    background: var(--color-soft-cream);
    display: flex;
    justify-content: center;
}

.section-container {
    max-width: 1200px;
    width: 100%;
}

.featured-card {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-leaf-green);
}

.featured-media {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-card:hover .featured-img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.featured-media:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.featured-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--color-leaf-green);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    align-self: flex-start;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.nursery-meta {
    margin-bottom: 25px;
}

.nursery-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nursery-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-leaf-green);
}

.nursery-name {
    font-weight: 600;
    display: block;
    color: var(--text-primary);
}

.verified-badge {
    color: #3b82f6;
    margin-left: 5px;
}

.nursery-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.read-more-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--color-leaf-green);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.read-more-btn:hover {
    gap: 15px;
}

/* --- Filter Bar --- */
.filter-bar-wrapper {
    position: sticky;
    top: 60px;
    /* Below header */
    z-index: 100;
    padding: 15px 0;
    background: rgb(247, 246, 243);
    /* Matches soft cream */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

html.dark-mode .filter-bar-wrapper {
    background: rgba(15, 23, 42, 0.85);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 0 20px;
    white-space: nowrap;
    scrollbar-width: none;
}

.filter-item {
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item:hover {
    background: rgba(46, 125, 50, 0.1);
    transform: translateY(-2px);
    color: var(--color-leaf-green);
}

.filter-item.active {
    background: var(--color-leaf-green);
    color: white;
    border-color: var(--color-leaf-green);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* --- Masonry Feed --- */
.stories-feed {
    padding: 60px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.masonry-grid {
    column-count: 3;
    column-gap: 25px;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .top-nav {
        padding: 0 15px;
        gap: 10px;
    }

    .stories-nav-pill {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 30px;
        display: flex;
        /* padding: 4px;*/
    }

    .nav-center {
        flex: 1;
        display: flex;
        justify-content: center;
        margin: none;
    }

    .filter-item.active {
        margin-left: 760px;
        background: var(--color-leaf-green);
        color: white;
        border-color: var(--color-leaf-green);
        box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    }

    .nav-title {
        font-size: 20px !important;
        /* Smaller on mobile */
    }

    .stories-nav-pill {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 30px;
        display: flex;
        padding: 2px;
        transform: scale(0.85);
        /* Slightly smaller */
        margin-right: -10px;
        /* Pull right slightly */
    }

    .masonry-grid {
        column-count: 1;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-info {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

.story-card {
    break-inside: avoid;
    background: var(--glass-bg);
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-leaf-green);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15);
}

.story-media {
    position: relative;
    width: 100%;
    /* No fixed height, let image dictate */
}

.story-media img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.story-media:hover img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-media:hover .story-overlay {
    opacity: 1;
}

.story-video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 2;
}

.read-btn {
    background: white;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.story-media:hover .read-btn {
    transform: translateY(0);
}

.story-content {
    padding: 20px;
}

.story-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.micro-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-leaf-green);
    letter-spacing: 1px;
}

.story-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.story-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.story-author img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.story-author span {
    font-size: 13px;
    color: var(--text-secondary);
}

.story-actions {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
}

.story-actions .action {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.story-actions .action:hover {
    color: var(--color-leaf-green);
}

.story-actions .right {
    margin-left: auto;
}

/* --- Modals (Full & Submit) --- */
.story-modal-overlay,
.submit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Mobile friendly slide up */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.story-modal-overlay.active,
.submit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.story-modal-container,
.submit-modal-container {
    background: var(--color-soft-cream);
    width: 100%;
    max-width: 900px;
    height: 95vh;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.story-modal-overlay.active .story-modal-container,
.submit-modal-overlay.active .submit-modal-container {
    transform: translateY(0);
}

@media (min-width: 768px) {

    .story-modal-overlay,
    .submit-modal-overlay {
        align-items: center;
        padding: 40px;
    }

    .story-modal-container,
    .submit-modal-container {
        height: 85vh;
        border-radius: 30px;
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Story Detail Specifics */
.story-modal-header {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 40px;
    overflow: hidden;
}

.story-modal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-soft-cream) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

html.dark-mode .story-modal-header::before {
    background: linear-gradient(to top, #0f172a 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.header-content {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.8s ease;
}

.modal-story-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal-story-title {
        font-size: 2rem;
    }

    .story-modal-header {
        height: 300px;
        padding: 30px 20px;
    }
}

.header-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

html.dark-mode .header-content {
    color: #fff;
}

.modal-nursery-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-nursery-badge img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
}

.modal-story-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.story-modal-body {
    padding: 40px 15%;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.story-modal-body p {
    margin-bottom: 25px;
}

.drop-cap:first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 3.5rem;
    margin-right: 15px;
    color: var(--color-leaf-green);
    font-weight: 700;
}

.story-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--color-leaf-green);
    padding-left: 20px;
    margin: 40px 0;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 0 20px 20px 0;
}

.story-inline-img {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
}

/* Modal Tags */
.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.modal-tags .micro-tag {
    background: rgba(46, 125, 50, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-leaf-green);
    letter-spacing: 1px;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

html.dark-mode .modal-tags .micro-tag {
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.3);
}

/* Modal Story Subtitle */
.modal-story-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
}

html.dark-mode .modal-story-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Section Title in Modal Body */
.story-modal-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.story-modal-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-leaf-green);
    border-radius: 2px;
}

/* Linked Products Section */
.story-products-linked {
    margin: 50px 0 30px 0;
    padding: 30px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.story-products-linked h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 700;
}

.linked-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .linked-products-grid {
        grid-template-columns: 1fr;
    }
}

.linked-product {
    background: var(--color-soft-cream);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.linked-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.15);
    border-color: var(--color-leaf-green);
}

.linked-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.lp-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-info span:first-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
}

.lp-price {
    color: var(--color-leaf-green);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Submit Wizard Styles */
.submit-modal-container {
    display: flex;
    flex-direction: column;
    background: var(--color-soft-cream);
}

.submit-progress {
    padding: 30px 40px;
    border-bottom: 1px solid var(--glass-border);
}

.progress-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    margin-bottom: 15px;
}


.progress-fill {
    height: 100%;
    background: var(--color-leaf-green);
    width: 33%;
    border-radius: 2px;
    transition: width 0.4s ease;
    position: relative;
}

.progress-fill::after {
    content: '\f06c';
    /* FontAwesome Leaf */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    top: -8px;
    color: var(--color-leaf-green);
    font-size: 14px;
    transform: rotate(45deg);
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
}


.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    top: -32px;
    /* Pull into progress bar */
    transition: all 0.3s ease;
}

.step.active {
    background: var(--color-leaf-green);
    color: white;
    transform: scale(1.2);
}

.submit-content-wrapper {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.submit-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.submit-step.active {
    display: block;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.premium-input,
.premium-textarea,
.premium-select {
    width: 100%;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s;
}

.premium-input:focus,
.premium-textarea:focus {
    outline: none;
    border-color: var(--color-leaf-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.premium-textarea {
    height: 300px;
    resize: none;
}

.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.02);
}

.upload-area:hover {
    border-color: var(--color-leaf-green);
    background: rgba(46, 125, 50, 0.05);
}

.upload-area i {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.step-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-bloom {
    position: relative;
    overflow: hidden;
}

.btn-bloom::after {
    content: '🌸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: var(--text-primary);
    color: var(--color-soft-cream);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Nav Pill */
.stories-nav-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    padding: 4px;
}

.stories-nav-pill span {
    padding: 6px 16px;
    font-size: 13px;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    transition: background 0.3s;
}

.stories-nav-pill span.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.stories-nav-pill span:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Dynamic Interactions --- */
@keyframes likeBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.liked {
    color: #e74c3c !important;
}

.saved {
    color: var(--color-leaf-green) !important;
}

/* --- Comment Section Styles --- */
.story-comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.story-comments-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.comments-list {
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.2);
    border-radius: 10px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--color-leaf-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-body {
    background: var(--glass-bg);
    padding: 12px 18px;
    border-radius: 0 15px 15px 15px;
    border: 1px solid var(--glass-border);
    flex: 1;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.comment-meta strong {
    color: var(--text-primary);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.comment-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.comment-box input:focus {
    border-color: var(--color-leaf-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.comment-box button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-leaf-green);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-box button:hover {
    transform: scale(1.05);
}

/* Category Badges in Wizard */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-badges .badge {
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.category-badges .badge.active {
    background: var(--color-leaf-green);
    color: white;
    border-color: var(--color-leaf-green);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.category-badges .badge:hover {
    border-color: var(--color-leaf-green);
    color: var(--color-leaf-green);
}

.category-badges .badge.active:hover {
    color: white;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Nested Replies Styles */
.replies-container {
    margin-left: 50px;
    margin-top: -10px;
}

.reply-item {
    margin-top: 10px;
    background: rgba(46, 125, 50, 0.03);
    border-radius: 12px;
    padding: 10px 15px;
    border-left: 3px solid var(--color-leaf-green);
    transform: scale(0.98);
    transform-origin: left;
}

.reply-avatar {
    background: var(--color-leaf-green) !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 10px !important;
}

.author-reply {
    color: var(--color-leaf-green) !important;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .replies-container {
        margin-left: 20px;
    }
}