/* Import Montserrat font for clean, modern look */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* Fresh and Beautiful Theme Colors */
    --primary-color: #f995c2; /* Soft Blue Sky */
    --secondary-color: #FFF9C4; /* Light Creamy Yellow */
    --accent-color: #af4c4c; /* Fresh Green */
    --text-color: #363535;
    --background-light: #F8F8FF; /* Off-White/Lavender Hint */
    --shadow-light: rgba(253, 109, 140, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1000px;
    padding: 20px 0;
}

/* --- Header Section --- */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.header h1 {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-left: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    /* Simple spin animation for the logo */
    animation: rotate-icon 4s infinite linear; 
}

/* --- Section Titles --- */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-color);
    padding-left: 10px;
}

/* --- Activity Input (Search Box) --- */
.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 15px; /* Added padding for height */
    box-shadow: 0 4px 10px var(--shadow-light);
    margin-bottom: 30px;
}

.search-icon {
    font-size: 1.5rem; /* Larger icon */
    color: var(--primary-color);
    margin-right: 15px;
}

.prompt-text {
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

/* --- Category and Options Buttons --- */
.category-buttons, .options-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn, .option-btn {
    flex: 1;
    padding: 15px 10px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn i, .option-btn i {
    margin-right: 8px;
    color: var(--primary-color);
}

.category-btn:hover, .option-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.category-btn:hover i, .option-btn:hover i {
    color: white;
}

.category-btn.active, .option-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    /* Slight pulse animation for active button */
    animation: active-pulse 0.8s ease-in-out;
}

.category-btn.active i, .option-btn.active i {
    color: white;
}

.initial-prompt {
    font-style: italic;
    color: #999;
    width: 100%;
    text-align: center;
}

/* --- Recommendation Button --- */
.recommend-button {
    width: 100%;
    padding: 18px 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px var(--shadow-light);
    margin-top: 20px;
}

.recommend-button:hover:not(:disabled) {
    background-color: #b2587d;
    box-shadow: 0 10px 20px var(--shadow-light);
}

.recommend-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.recommend-button i {
    margin-right: 10px;
}


/* --- Results Display --- */
.results-area {
    min-height: 250px;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.initial-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Result Card Styling */
.result-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: #f7faff;
    width: 100%;
    text-align: left;
    /* Fade-in animation for results */
    animation: fadeIn 0.8s ease-out; 
}

.result-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.card-info h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.card-info p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px dashed var(--primary-color);
    font-size: 0.8rem;
    color: #888;
}

/* --- Animations --- */
@keyframes rotate-icon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes active-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsiveness: Mobile Optimization --- */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 2rem;
    }
    
    .category-buttons, .options-buttons {
        flex-direction: column; /* Stack buttons vertically on small screens */
    }

    .category-btn, .option-btn {
        margin-bottom: 10px;
        padding: 12px;
    }

    .result-card {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
    }

    .result-card img {
        margin: 0 auto 10px auto;
    }
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
}