@charset "utf-8";

/* TODO: Build out a Bootstrap theme instead of overriding the default Bootstrap CSS. */


body {
    font-family: "Bitstream Vera Sans", Verdana, Helvetica, Arial, sans-serif;
    background: url(../images/bg-wildflowers.gif) repeat-x top #1c371c;
    color: #FFF
}

/* Custom headings font */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: bold;
}

a {
    color: #60af60
}

hr {
    border-top: 2px solid #60af60;
}

.figure-caption {
    /* Override Bootstrap formatting. */
    color: #FFFFFF;
}

.text-muted {
    /* Override Bootstrap formatting. */
    color: #BBBBBB !important;
}

/* Keep thumbnails at their natural size on larger screens */
.plant-thumb img {
    max-width: none;
    height: auto;
}

/* Allow scaling of thumbnails on small screens to avoid overflow */
@media (max-width: 575.98px) {
    .plant-thumb img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all content images scale responsively */
.article img,
#content img:not(.plant-thumb img) {
    max-width: 100%;
    height: auto;
}


/* =====================================================================
   HOME PAGE CAROUSEL
   ===================================================================== */
#home-carousel .carousel-caption {
    left: .50rem;
    right: auto;
    bottom: .75rem;
    text-align: left;
}

@media (min-width: 768px) {
    #home-carousel .carousel-caption {
        left: 1rem;
        bottom: 1rem;
    }
}


/* =====================================================================
   SEARCH BAR
   ===================================================================== */
.search-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
}

.search-input {
    min-width: 0;       /* allows flex-shrink below 300px on small screens */
    flex: 1 1 150px;    /* grow to fill available space, shrink if needed */
    border-radius: 50px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

.search-button {
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-1%) scale(1.05);
}


/* =====================================================================
   PAGINATION
   ===================================================================== */
@media (max-width: 575.98px) {
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* =====================================================================
   HAMBURGER / NAV TOGGLE BUTTON
   ===================================================================== */
.btn-nav-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.btn-nav-toggle:hover,
.btn-nav-toggle:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}


/* =====================================================================
   SIDEBAR (desktop container)
   ===================================================================== */
#sidebar {
    display: flex;
    flex-direction: column;
}


/* =====================================================================
   SITE NAV — shared styles for desktop sidebar + mobile offcanvas
   ===================================================================== */
.site-nav {
    background-color: #152815;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-nav .accordion-item {
    border: none;
    background-color: transparent;
}

/* Remove rounded corners from all accordion elements in nav */
.site-nav .accordion,
.site-nav .accordion-item,
.site-nav .accordion-button {
    border-radius: 0 !important;
}

.site-nav .accordion-button {
    background-color: #152815;
    color: #ffffff;
    border: none;
    box-shadow: none;
    padding: 0.50rem 0.75rem;
    font-family: var(--bs-body-font-family, var(--bs-font-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif));
    transition: background-color 0.2s ease;
}

/* Make the Bootstrap chevron icon white */
.site-nav .accordion-button::after {
    filter: brightness(0) invert(1);
}

.site-nav .accordion-button:not(.collapsed) {
    background-color: #254d25;
    color: #ffffff;
    box-shadow: none;
}

.site-nav .accordion-button:hover {
    background-color: #2d5e2d;
}

.site-nav .accordion-body {
    background-color: #152815;
    border: none;
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    margin-left: 0.5rem;
}

.site-nav .accordion-body .nav-link {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #c8e6c8;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.site-nav .accordion-body .nav-link:hover {
    background-color: #2d5e2d;
    color: #ffffff;
}

/* Static sidebar links (Buy the App, About, etc.) */
.site-nav .sidebar-link {
    display: block;
    padding: 0.50rem 0.75rem;
    font-size: 1rem;
    color: #c8e6c8;
    background-color: #152815;
    border: none;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.site-nav .sidebar-link:hover {
    background-color: #2d5e2d;
    color: #ffffff;
    text-decoration: none;
}


/* =====================================================================
   MOBILE OFFCANVAS — green theme to match sidebar
   ===================================================================== */
#mobileNav {
    background-color: #152815;
    max-width: 280px;
}

#mobileNav .offcanvas-header {
    background-color: #163016;
    border-bottom: 1px solid #2d5e2d;
}

#mobileNav .offcanvas-title {
    color: #ffffff;
}

/* Make the close (×) button white */
#mobileNav .btn-close {
    filter: brightness(0) invert(1);
}


/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer {
        font-size: 0.65rem;
    }
}
