/*
=========================================================
My Home Living Collection
Version : 2.1 — Playful 3D Myco
Authors
-------
Anand
ChatGPT
All Mates 🌿🍄🐠🐦🦋

Main Stylesheet
=========================================================
*/


/* ======================================================
   RESET
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ======================================================
   BODY
====================================================== */

body {
    font-family: "Source Sans 3", sans-serif;
    background: #EEF5EF;
    color: #37443B;
    min-height: 100vh;
}


/* ======================================================
   HEADINGS
====================================================== */

h1,
h2,
h3 {
    font-family: "Merriweather", serif;
    font-weight: 700;
}


/* ======================================================
   PAGE
====================================================== */

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}


/* ======================================================
   HIDDEN
====================================================== */

.hidden {
    display: none;
}


/* ======================================================
   LANDING PAGE
====================================================== */

#landing-page {
    text-align: center;

    background:
        radial-gradient(
            circle at 15% 20%,
            #E2F0D9 0%,
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            #E0EDF3 0%,
            transparent 32%
        ),
        #EEF5EF;
}


.landing-content {
    width: 100%;
    max-width: 720px;

    padding: 52px 45px;

    background: #FFFFFF;

    border: 1px solid #D6E3D8;
    border-radius: 34px;

    box-shadow:
        0 20px 45px rgba(64, 83, 70, 0.12),
        0 6px 12px rgba(64, 83, 70, 0.07),
        inset 0 1px 0 #FFFFFF;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.landing-content:hover {
    transform: translateY(-3px);

    box-shadow:
        0 25px 50px rgba(64, 83, 70, 0.15),
        0 8px 15px rgba(64, 83, 70, 0.08),
        inset 0 1px 0 #FFFFFF;
}


/* ======================================================
   MYCO LOGO
====================================================== */

.logo {
    margin-bottom: 20px;
}


.logo-img {
    width: 115px;
    height: 115px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 9px 7px rgba(70, 85, 75, 0.18)
        );

    transition:
        transform 0.3s ease;
}


.logo-img:hover {
    transform:
        translateY(-7px)
        rotate(2deg);
}


/* ======================================================
   LANDING TEXT
====================================================== */

h1 {
    font-size: 2.75rem;
    color: #46634D;
    margin-bottom: 14px;
}


.subtitle {
    font-size: 1.15rem;
    color: #6D7971;
    line-height: 1.7;
    margin-bottom: 30px;
}


hr {
    width: 125px;
    margin: 28px auto;

    border: none;
    border-top: 2px solid #D5E2D8;
}


h2 {
    font-size: 1.95rem;
    color: #55705D;
    margin-bottom: 12px;
}


.tagline {
    font-size: 1.08rem;
    color: #77817A;
    line-height: 1.7;
    margin-bottom: 35px;
}


.quote {
    margin-top: 40px;
    color: #7E8981;
    font-style: italic;
    line-height: 1.8;
}


/* ======================================================
   BUTTONS
====================================================== */

button {
    cursor: pointer;

    border: 1px solid #C7D9CA;
    border-radius: 20px;

    padding: 14px 30px;

    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#begin-button,
#send-button {
    background:
        linear-gradient(
            145deg,
            #D0E4D3,
            #BAD5BF
        );

    color: #354A3B;

    box-shadow:
        0 7px 0 #A8C3AD,
        0 12px 20px rgba(67, 91, 73, 0.12);
}


#begin-button:hover,
#send-button:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            145deg,
            #D5E8D8,
            #C0DAC5
        );

    box-shadow:
        0 9px 0 #A8C3AD,
        0 16px 25px rgba(67, 91, 73, 0.16);
}


#begin-button:active,
#send-button:active {
    transform: translateY(3px);

    box-shadow:
        0 3px 0 #A8C3AD,
        0 6px 12px rgba(67, 91, 73, 0.10);
}


/* ======================================================
   CHAT PAGE
====================================================== */

#chat-page {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 28px 20px;

    background:
        radial-gradient(
            circle at 10% 10%,
            #E3F1D8 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            #DDECF3 0%,
            transparent 30%
        ),
        #EEF5EF;
}


/* ======================================================
   CHAT HEADER
====================================================== */

#chat-header {
    width: 100%;
    max-width: 900px;

    text-align: center;

    padding: 20px 25px;

    background: #FFFFFF;

    border: 1px solid #D5E2D8;
    border-radius: 28px;

    box-shadow:
        0 10px 22px rgba(66, 85, 72, 0.10),
        0 3px 6px rgba(66, 85, 72, 0.06);
}


.chat-title {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0 0 5px 0;

    color: #4C6A53;
}


.header-icon {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #D5E4D8;

    background: #EEF5EF;

    padding: 2px;

    filter:
        drop-shadow(
            0 4px 4px rgba(60, 75, 65, 0.15)
        );
}


#chat-header p {
    color: #77827A;
    font-size: 0.98rem;
}


/* ======================================================
   CHAT WINDOW
====================================================== */

#chat-window {
    width: 100%;
    max-width: 900px;

    height: 65vh;

    /*
       Soft lime / leaf-green conversation background
    */

    background: #EAF4D9;

    border: 1px solid #D2E2C2;
    border-radius: 30px;

    box-shadow:
        0 18px 35px rgba(66, 85, 72, 0.12),
        0 5px 10px rgba(66, 85, 72, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    overflow-y: auto;

    padding: 28px;

    margin-top: 18px;
    margin-bottom: 18px;

    scroll-behavior: smooth;
}


/* ======================================================
   GENERAL MESSAGE
====================================================== */

.message {
    width: fit-content;
    max-width: 80%;

    margin-bottom: 19px;

    padding: 18px 21px;

    border-radius: 24px;

    line-height: 1.65;

    animation:
        fadeIn 0.35s ease;
}


/* ======================================================
   MYCO MESSAGE
====================================================== */

.myco-message {
    background: #F4FAF1;

    border: 1px solid #D3E3D2;

    color: #38443B;

    margin-right: auto;

    box-shadow:
        0 8px 15px rgba(67, 91, 73, 0.09);
}


.myco-header {
    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 700;

    color: #4C6B53;

    margin-bottom: 9px;
}


.myco-avatar {
    width: 29px;
    height: 29px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

    border: 1px solid #D3E2D5;

    filter:
        drop-shadow(
            0 3px 3px rgba(60, 75, 65, 0.16)
        );
}


/* ======================================================
   VISITOR MESSAGE
====================================================== */

.user-message {
    background: #E8F1F7;

    border: 1px solid #CFDFE9;

    color: #38444B;

    margin-left: auto;

    text-align: left;

    box-shadow:
        0 8px 15px rgba(66, 85, 98, 0.08);
}


.user-header {
    font-weight: 700;

    color: #587487;

    margin-bottom: 9px;
}


/* ======================================================
   SPECIAL MYCO CARDS
====================================================== */

.eureka-card,
.notebook-card,
.reflection-card,
.partners-card,
.download-card {

    margin-right: auto;

    border-radius: 22px;

    padding: 17px 20px;

    box-shadow:
        0 6px 13px rgba(70, 82, 70, 0.08);

    border: 1px solid;

}


/* ======================================================
   EUREKA / CURIOSITY
====================================================== */

.eureka-card {

    background: #FFF8E8;

    border-color: #E9DDBD;

    box-shadow:
        0 7px 15px rgba(125, 105, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.eureka-card .card-title {
    color: #8A7650;
}


/* ======================================================
   CURATOR'S NOTEBOOK
====================================================== */

.notebook-card {

    background: #EDF4F8;

    border-color: #D2E0E8;

    box-shadow:
        0 7px 15px rgba(70, 90, 105, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.notebook-card .card-title {
    color: #587386;
}


/* ======================================================
   REFLECTION
====================================================== */

.reflection-card {

    background: #EEF6EE;

    border-color: #D1E1D2;

    box-shadow:
        0 7px 15px rgba(70, 95, 75, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.reflection-card .card-title {
    color: #58745D;
}


/* ======================================================
   PARTNERS
====================================================== */

.partners-card {

    background: #F1F6E9;

    border-color: #D9E3C8;

    box-shadow:
        0 7px 15px rgba(80, 95, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.partners-card .card-title {
    color: #657451;
}


/* ======================================================
   DOWNLOAD
====================================================== */

.download-card {

    background: #EDF3F7;

    border-color: #D2DFE7;

    box-shadow:
        0 7px 15px rgba(70, 90, 105, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.download-card .card-title {
    color: #587386;
}


/* ======================================================
   SPECIAL CARD TITLES
====================================================== */

.card-title {
    font-weight: 700;

    margin-bottom: 8px;

    font-size: 1.02rem;
}


.card-body {
    color: #465149;

    line-height: 1.65;
}


/* ======================================================
   MESSAGE CONTENT
====================================================== */

.message p {
    margin-bottom: 10px;
}


.message p:last-child {
    margin-bottom: 0;
}


.message ul {
    margin-top: 8px;
    margin-left: 24px;
}


.message li {
    margin-bottom: 8px;
}


/* ======================================================
   INPUT AREA
====================================================== */

#chat-input {
    width: 100%;
    max-width: 900px;

    display: flex;

    gap: 12px;

    padding: 9px;

    background: #FFFFFF;

    border: 1px solid #D5E2D8;

    border-radius: 24px;

    box-shadow:
        0 12px 24px rgba(66, 85, 72, 0.10);
}


#message {
    flex: 1;

    padding: 14px 18px;

    border: 1px solid #D2DED5;

    border-radius: 19px;

    background: #F8FBF9;

    color: #38443B;

    font-family: "Source Sans 3", sans-serif;

    font-size: 1rem;

    outline: none;

    transition: 0.2s;
}


#message::placeholder {
    color: #9AA59D;
}


#message:focus {
    border-color: #AFC8B5;

    box-shadow:
        0 0 0 3px rgba(175, 200, 181, 0.18);
}


/* ======================================================
   ASK MYCO
====================================================== */

#send-button {
    min-width: 170px;
}


.ask-myco-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;
}


.button-icon {
    width: 20px;
    height: 20px;

    object-fit: cover;

    border-radius: 50%;

    filter:
        drop-shadow(
            0 2px 2px rgba(60, 75, 65, 0.12)
        );
}


/* ======================================================
   DOWNLOAD BUTTON
====================================================== */

.download-button {
    margin-top: 14px;

    padding: 10px 18px;

    border-radius: 16px;

    background: #D7E7DD;

    color: #405A47;

    box-shadow:
        0 4px 8px rgba(65, 85, 70, 0.10);
}


.download-button:hover {
    background: #CDE0D4;

    transform: translateY(-2px);
}


/* ======================================================
   ANIMATION
====================================================== */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform:
            translateY(7px)
            scale(0.99);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 650px) {

    .page {
        padding: 20px 12px;
    }


    .landing-content {
        padding: 35px 22px;
        border-radius: 26px;
    }


    h1 {
        font-size: 2.15rem;
    }


    h2 {
        font-size: 1.55rem;
    }


    .logo-img {
        width: 90px;
        height: 90px;
    }


    #chat-page {
        padding: 18px 10px;
    }


    #chat-header {
        border-radius: 22px;
    }


    .header-icon {
        width: 34px;
        height: 34px;
    }


    #chat-window {
        height: 64vh;

        padding: 18px;

        border-radius: 24px;

        /* Slightly softer lime on mobile */
        background: #EAF4D9;
    }


    .message {
        max-width: 90%;

        padding: 15px 16px;
    }


    #chat-input {
        flex-direction: column;

        border-radius: 22px;
    }


    #send-button {
        width: 100%;

        min-width: 0;
    }
}
