/* =========================================================
   eLocal Info Network
   Public Homepage Styles
   File: public/assets/css/home.css
========================================================= */


/* =========================================================
   1. ROOT & PAGE BASE
========================================================= */

:root {
    --home-green: #15803D;
    --home-green-dark: #006B25;
    --home-green-light: #22C55E;
    --home-lime: #A3E635;
    --home-black: #111827;
    --home-white: #FFFFFF;
    --home-border: #DCE5EA;
    --home-text: #1F2937;
    --home-muted: #64748B;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--home-text);
    font-family: Arial, Helvetica, sans-serif;
}

.homepage {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
}


/* =========================================================
   4. HERO SECTION
========================================================= */

.homepage-hero {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    padding: 55px 30px 45px;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 45%,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.85) 35%,
            rgba(219, 239, 255, 0.5) 75%
        ),
        linear-gradient(
            180deg,
            #B9E1FF 0%,
            #F8FCFF 52%,
            #FFE8D9 100%
        );
}

.homepage-hero__content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin: 0 auto;
    text-align: center;
}


/* =========================================================
   5. JOURNEY BANNER
========================================================= */

.homepage-journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    min-height: 230px;
    margin: 0 auto 35px;
}

.homepage-journey__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 30px;
    border-right: 2px solid var(--home-green);
}

.homepage-journey__label {
    display: inline-block;
    padding: 4px 18px;
    color: var(--home-green-dark);
    border: 2px solid var(--home-green);
    border-radius: 20px;
    font-size: 15px;
    font-style: italic;
    font-weight: 800;
}

.homepage-journey h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px 0 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.homepage-journey__green {
    color: var(--home-green);
}

.homepage-journey__black {
    color: var(--home-black);
}

.homepage-journey__highlight {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 12px;
    color: #075B1F;
    background: #FDE047;
    border-radius: 18px;
}

.homepage-journey__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 190px;
    flex-shrink: 0;
}

.homepage-journey__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =========================================================
   6. HERO DESCRIPTION
========================================================= */

.homepage-hero__description {
    margin: 25px 0;
    color: var(--home-black);
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.5;
}


/* =========================================================
   7. MAIN SEARCH
========================================================= */

.homepage-search {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 74px;
    padding: 7px 9px 7px 30px;
    background: var(--home-white);
    border: 1px solid #D9E2EC;
    border-radius: 50px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}

.homepage-search__input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 24px;
}

.homepage-search__icon {
    flex-shrink: 0;
    color: var(--home-green);
    font-size: 34px;
}

.homepage-search input {
    width: 100%;
    min-width: 0;
    height: 55px;
    padding: 0;
    color: #123B76;
    background: transparent;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 21px;
}

.homepage-search input::placeholder {
    color: #16427F;
    opacity: 1;
}

.homepage-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 210px;
    min-height: 58px;
    padding: 0 30px;
    color: var(--home-white);
    background: linear-gradient(
        135deg,
        #16A34A,
        #008020
    );
    border: 0;
    border-radius: 40px;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.homepage-search__button:hover {
    background: var(--home-green-dark);
    transform: translateY(-1px);
}

.homepage-search__button i {
    font-size: 23px;
}


/* =========================================================
   8. QUICK NAVIGATION
========================================================= */

.homepage-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px auto 0;
}

.homepage-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 25px;
    color: var(--home-black);
    border-right: 1px solid #C9D5E3;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.homepage-quick-links a:last-child {
    border-right: 0;
}

.homepage-quick-links a:hover {
    color: var(--home-green);
}

.homepage-quick-links a i {
    color: var(--home-green);
    font-size: 25px;
}


/* =========================================================
   9. POPULAR SEARCHES
========================================================= */

.homepage-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px auto 0;
}

.homepage-popular__title {
    color: var(--home-black);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.homepage-popular__items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.homepage-popular__items a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 5px 16px;
    color: var(--home-black);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #7CCB8B;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.homepage-popular__items a:hover {
    color: var(--home-white);
    background: var(--home-green);
    border-color: var(--home-green);
}


/* =========================================================
   10. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    /* Hero */

    .homepage-hero {
		min-height: 0;
		padding: 30px 16px 35px;
	}

    .homepage-journey {
        min-height: 155px;
        gap: 15px;
        margin-bottom: 25px;
    }

    .homepage-journey__text {
        padding-right: 15px;
    }

    .homepage-journey__label {
        padding: 3px 12px;
        font-size: 11px;
    }

    .homepage-journey h1 {
        font-size: clamp(25px, 6vw, 36px);
        letter-spacing: -1px;
    }

    .homepage-journey__avatar {
        width: 115px;
        height: 125px;
    }

    .homepage-hero__description {
        margin: 15px 0 20px;
        font-size: 17px;
        line-height: 1.45;
    }


    /* Search */

    .homepage-search {
        min-height: 58px;
        padding: 5px 6px 5px 15px;
        border-radius: 35px;
    }

    .homepage-search__input-wrapper {
        gap: 10px;
    }

    .homepage-search__icon {
        font-size: 23px;
    }

    .homepage-search input {
        height: 45px;
        font-size: 14px;
    }

    .homepage-search input::placeholder {
        font-size: 13px;
    }

    .homepage-search__button {
        min-width: 48px;
        min-height: 46px;
        padding: 0 14px;
        gap: 0;
    }

    .homepage-search__button i {
        font-size: 20px;
    }

    .homepage-search__button span {
        display: none;
    }


    /* Quick Navigation */

    .homepage-quick-links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 5px;
        margin-top: 22px;
    }

    .homepage-quick-links a {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-height: 65px;
        padding: 7px 3px;
        border-right: 0;
        font-size: 12px;
    }

    .homepage-quick-links a i {
        font-size: 23px;
    }


    /* Popular Searches */

    .homepage-popular {
        flex-direction: column;
        gap: 12px;
        margin-top: 22px;
    }

    .homepage-popular__title {
        font-size: 15px;
    }

    .homepage-popular__items {
        gap: 8px;
    }

    .homepage-popular__items a {
        min-height: 31px;
        padding: 4px 12px;
        font-size: 12px;
    }

}


/* =========================================================
   11. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .homepage-journey {
        gap: 9px;
    }

    .homepage-journey__text {
        padding-right: 9px;
    }

    .homepage-journey h1 {
        font-size: 24px;
    }

    .homepage-journey__avatar {
        width: 95px;
        height: 110px;
    }

    .homepage-search {
        padding-left: 10px;
    }

    .homepage-search__input-wrapper {
        gap: 7px;
    }

    .homepage-search input {
        font-size: 12px;
    }

    .homepage-search__button {
        min-width: 42px;
        padding: 0 11px;
    }

}
