/* === Global Styles === */
/* === Unified Design Style CSS File ==*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(135deg, #FAFBF7 0%, #EFE7E0 100%);
    min-height: 100vh;
    color: #2C3E1F;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 10.8px 24px;
    background: #427D2B;
    color: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 0;
    margin-top: 0;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #0276447b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.logo {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7.2px;
}

.logo h1 {
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav a:hover {
    color: #a8e6cf;
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #a8e6cf;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.bookmarks-open-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bookmarks-open-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.scroll-header .bookmarks-open-btn-scroll {
    margin-left: auto;
    background: rgba(27, 94, 32, 0.12);
    border-color: rgba(27, 94, 32, 0.25);
    color: #1B5E20;
}

.page-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(27, 94, 32, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: #1B5E20;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.page-bookmark-btn:hover {
    background: #e8f5e8;
    transform: translateY(-1px);
}

.page-bookmark-btn.added {
    background: #1B5E20;
    color: #ffffff;
    border-color: #1B5E20;
}

.hero-section .page-bookmark-btn {
    display: flex;
    margin: 14px auto 0;
}

.bookmarks-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2600;
    padding: 18px;
}

.bookmarks-overlay.visible {
    display: flex;
}

.bookmarks-panel {
    width: min(560px, 100%);
    max-height: min(80vh, 680px);
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.bookmarks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bookmarks-title {
    color: #1B5E20;
    font-size: 1.2rem;
    font-weight: 800;
}

.bookmarks-close {
    border: 1px solid #d9e7d3;
    background: #f8fff5;
    color: #1B5E20;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    cursor: pointer;
}

.bookmarks-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.bookmarks-item {
    border: 1px solid #e1ebdb;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fbfef9;
}

.bookmarks-name {
    font-weight: 700;
    color: #1B5E20;
}

.bookmarks-actions {
    display: flex;
    gap: 8px;
}

.bookmark-link-btn,
.bookmark-delete-btn {
    border: 1px solid #d2e3cb;
    border-radius: 9px;
    background: #ffffff;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.bookmark-link-btn {
    color: #1B5E20;
}

.bookmark-delete-btn {
    color: #8c2f2f;
}

.bookmarks-empty {
    border: 1px dashed #c7d9bf;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #4f6c43;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 27, 16, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1500;
}

.leaf-icon {
    font-size: 16.8px;
}

.tagline {
    font-size: 1.1em;
    color: #558B2F;
    font-weight: 400;
}


/* === Scroll Header === */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.7);
    color: #1b5e20;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-left, .scroll-right, .scroll-header h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #1b5e20;
}

/* === Main Content === */
.main-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 90px;
    margin-bottom: 30px;
}

/* === Search Section === */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-section h2 {
    font-size: 1.8em;
    color: #1B5E20;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1em;
    border: 2px solid rgba(27, 94, 32, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #1B5E20;
    background: white;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* === Search Suggestions === */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(27, 94, 32, 0.2);
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    color: #555;
}

.suggestion-item:hover {
    background-color: linear-gradient(135deg, #f8fff5 0%, #e8f5e8 100%);
    color: #558B2F;
    padding-left: 25px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* === Buttons === */
.btn {
    padding: 14px 36px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #7CB342, #558B2F);
    color: white;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(123, 179, 66, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(123, 179, 66, 0.6);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: linear-gradient(45deg, #558B2F, #1B5E20);
    color: white;
    width: 100%;
    border: 2px solid transparent;
    padding: 25px 0;
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(27, 94, 32, 0.5);
}

/* === Divider === */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* === Explore Section === */
.explore-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.explore-section h2 {
    font-size: 1.8em;
    color: #1B5E20;
    margin-bottom: 12px;
    font-weight: 700;
}

.explore-section p {
    font-size: 1em;
    color: #558B2F;
    margin-bottom: 20px;
    font-weight: 400;
}

/* === Features Section === */
.features {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.features h3 {
    font-size: 1.6em;
    color: #1B5E20;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #f8fff5 0%, #e8f5e8 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(123, 179, 66, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 179, 66, 0.2);
    border-color: #7CB342;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.1em;
    color: #1B5E20;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95em;
    color: #558B2F;
    line-height: 1.5;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9em;
    margin-top: auto;
    background: #1B5E20;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        margin: 0 auto;
    }

    .header {
        padding: 10px 12px;
        margin: 0;
        text-align: left;
    }

    .logo {
        font-size: 1.02rem;
        margin-bottom: 0;
    }

    .tagline {
        font-size: 0.6em;
    }

    .main-content {
        padding: 25px 20px;
        margin-top: 84px;
        margin-bottom: 20px;
    }

    .search-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .search-section h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .search-container {
        margin-bottom: 15px;
    }

    .search-input {
        padding: 12px 18px;
        font-size: 0.95em;
    }

    .search-suggestions {
        max-height: 250px;
    }

    .suggestion-item {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.95em;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 15px;
    }

    .divider {
        font-size: 0.9em;
        margin: 25px 0;
    }

    .divider::before,
    .divider::after {
        width: 30%;
    }

    .explore-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .explore-section h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .explore-section p {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    .features {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .features h3 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2.5em;
        margin-bottom: 12px;
    }

    .feature-card h4 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.9em;
    }

    .footer {
        padding: 15px;
        font-size: 0.85em;
        margin-bottom: 5px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -270px;
        height: 100vh;
        width: 270px;
        flex-direction: column;
        gap: 12px;
        padding: 80px 20px 20px;
        background: #1B5E20;
        box-shadow: -16px 0 30px rgba(0, 0, 0, 0.25);
        transition: right 0.25s ease;
        z-index: 2100;
    }

    .nav a {
        font-size: 1.05rem;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
    }

    .bookmarks-open-btn {
        width: 100%;
        border-radius: 10px;
        text-align: left;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.08);
        border: 0;
        font-size: 1.05rem;
    }

    .nav a::after {
        display: none;
    }

    body.nav-open .nav {
        right: 0;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        padding: 9px 10px;
        margin: 0;
    }

    .logo {
        font-size: 0.96rem;
    }

    .tagline {
        font-size: 0.54em;
    }

    .main-content,
    .search-section,
    .explore-section,
    .features {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .search-section h2,
    .explore-section h2,
    .features h3 {
        font-size: 1.3em;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9em;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        font-size: 2em;
    }

    .bookmarks-panel {
        padding: 14px;
        border-radius: 12px;
    }

    .bookmarks-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .bookmarks-actions {
        width: 100%;
    }

    .bookmark-link-btn,
    .bookmark-delete-btn {
        flex: 1;
    }
}

/* === Mobile Enhancements === */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(82, 183, 136, 0.1);
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .plant-btn,
    .btn-stage,
    .cta-primary,
    .cta-secondary {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    *, *::before, *::after {
        animation-duration: 0.2s !important;
        animation-delay: 0s !important;
        transition-duration: 0.2s !important;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .feature-icon,
    .care-icon,
    .stage-icon,
    .plant-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}
