@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background: linear-gradient(to bottom, #F2EAE0, #DDD0F5);
    background-attachment: fixed; 
    color: #2B2B2B;
    font-family: 'Inter', "Segoe UI", Arial, sans-serif;
    font-size: 18px; /* 👈 was 16px */
    line-height: 1.65;
}

.page-content {
    flex: 1;
}


/* Navbar */
.navbar-custom {
    background-color: #E4DBF8;
    border-color: #CFC3EB;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav > li > a {
    color: #4A4A4A;
}

.navbar-custom .navbar-nav > li > a:hover {
    color: #9C8ACF;
}

/* Cards / Panels */
.panel-feels {
    background-color: #FFFFFF;
    border: 1px solid #E0D8F0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.panel-feels > .panel-heading {
    background-color: #E6F0F7;
    border-bottom: 1px solid #D0E2F0;
    color: #4A4A4A;
}

/* Buttons */
.btn-feels {
    background-color: #8E7AE6; /* more vibrant purple */
    border-color: #7A66D4;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-feels:hover,
.btn-feels:focus {
    background-color: #6F5CC9;
    border-color: #8B79C0;
    color: #fff;
}


/* Secondary button */
.btn-feels-alt {
    background-color: #E6F0F7;
    border-color: #D0E2F0;
    color: #4A4A4A;
}

.btn-feels-alt:hover {
    background-color: #D6E8F2;
}

/* Inputs */
.form-control {
    border-radius: 6px;
    border: 1px solid #DDD;
    box-shadow: none;
}

.form-control:focus {
    border-color: #C5B3E6;
    box-shadow: 0 0 4px rgba(197, 179, 230, 0.5);
}

/* Mood buttons (core feature idea) */
.mood-option {
    background-color: #FFFFFF;
    border: 1px solid #E0D8F0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mood-option:hover {
    background-color: #F4F0FA;
    border-color: #C5B3E6;
}

.mood-option.active {
    background-color: #EDE7F6;
    border-color: #9C8ACF;
}

/* Suggestions box */
.suggestion-box {
    background-color: #E6F0F7;
    border-left: 4px solid #9C8ACF;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

/* Footer */
.footer {
    margin-top: 20px;
    padding: 20px;
    background-color: #EDE7F6;
    text-align: center;
    color: #777;
}


/* Mood Card */
.mood-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 22px 12px;
    margin: 10px 0;
    cursor: pointer;
    border: 1px solid #D8CCE8; /* darker border */
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.mood-card .label {
    font-size: 16px;
    font-weight: 500;
    color: #2F2F2F;
}

.mood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.mood-card.active {
    background: #E4DBF8; 
    border-color: #8E7AE6;
}


/* Emoji */
.mood-card .emoji {
    font-size: 32px;
    margin-bottom: 5px;
}

/* Suggestion Card */
.suggestion-card {
    margin-top: 30px;
    padding: 25px;
    border-radius: 16px;
    background: #FFFFFF;
   /* border: 1px solid #E0D8F0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);*/
    border: 1px solid #D8CCE8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#suggestion-list li {
    margin: 12px 0;
    list-style: none;
    padding: 14px 16px;
    border-radius: 10px;
    background: #F1ECFB; /* slightly more contrast */
    color: #2B2B2B;
    font-size: 16px;
    font-weight: 500;

    opacity: 0;
    transform: translateY(5px);
    animation: fadeInUp 0.3s ease forwards;
}





.suggestion-card.show {
    opacity: 1;
    transform: translateY(0);
}



/* stagger animation */
#suggestion-list li:nth-child(1) { animation-delay: 0.05s; }
#suggestion-list li:nth-child(2) { animation-delay: 0.1s; }
#suggestion-list li:nth-child(3) { animation-delay: 0.15s; }
#suggestion-list li:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility */
.hidden {
    display: none;
}

ul {
    display:inline-block;
    text-align:left;
}

h2, h3, h4 {
    font-weight: 600;
    color: #2A2A2A;
}

p {
    color: #555;
}

.container {
    max-width: 720px;
}

.sources-block {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #D8CCE8;
    color: #666;
}

.sources-block h4 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

.sources-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.source-link {
    color: #7F6BB8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #5F4FA3;
    text-decoration: underline;
}

#pre-selection-space {
    height: 60px;
}



.shuffle-btn {
    background: none;
    border: none;
    color: #7F6BB8;
    margin-top: 15px;
    font-weight: 500;
}

.shuffle-btn:hover {
    text-decoration: underline;
    color: white;/*#5F4FA3;*/
}

@media (max-width: 768px) {
    body {
        font-size: 19px;
    }

    h2 {
        font-size: 26px;
    }

    .mood-card .label {
        font-size: 16px;
    }

    #suggestion-list li {
        font-size: 16px;
        padding: 14px;
    }

    .btn-feels,
    .shuffle-btn {
        font-size: 16px;
    }
}

.col-md-12 {
    text-align:center;
    margin-top:25px;
}
.back-btn {
    display: inline-block;
    margin: 15px 0 10px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #F1ECFB;
    color: #6F5CC9;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #E4DBF8;
    color: #4F3FB0;
    text-decoration: none;
}