/* 1. Global Styles */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #3f51b5;
    color: white;
    padding: 20px;
    text-align: center;
}

/* For main heading */
h1 {
    margin: 0;
    font-size: 2em;
    line-height: 1.2;
}

h2 {
    margin: 10px 0;
}

/* Container spacing */
main {
    padding: 20px;
    max-width: 1200px; /* restrict width on large screens */
    margin: 0 auto;    /* center it */
}

footer {
    text-align: center;
    color: #777;
    padding: 10px;
}

/* 2. Top prompts & chat area */
#top-section {
    margin-bottom: 20px;
}

#prompts {
    display: flex;
    flex-wrap: wrap; /* so it wraps on smaller screens */
    gap: 10px;
    margin-bottom: 15px;
}

button {
    margin: 5px 0;
    padding: 12px 18px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #2c3e91;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

/* 3. Chat input & history */
#chatInputBar {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on small screens */
    gap: 10px;       /* space between input & button */
    margin-bottom: 15px;
}

#userMessage {
    flex: 1;                 /* take remaining space */
    min-width: 200px;        /* so it doesn't shrink too small */
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#chatHistory {
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    max-height: 200px;   /* optional: limit chat box height */
    overflow-y: auto;    /* scroll if it gets too big */
    margin-bottom: 20px;
}

.user-message, .assistant-message {
    margin: 4px 0;
    line-height: 1.4;
}

.user-message strong {
    color: #2c3e91;
}

.assistant-message strong {
    color: #ff7043;
}

/* 4. Filters Container */
#filtersContainer {
    margin-bottom: 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
}

/* Grouping for each filter type */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    cursor: pointer;
    font-size: 14px;
}

/* 5. Calendar & day-card */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns on large screens */
    gap: 10px;
}

.day-card {
    border: 1px solid #ccc;
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    min-height: 150px;
}

/* 6. Movie cards */
.movie-card {
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.movie-card h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

.movie-card p {
    margin: 4px 0;
    line-height: 1.4;
}

.movie-card a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: bold;
}
.movie-card a:hover {
    text-decoration: underline;
}

/* 7. Responsive Media Queries */

/* For screens up to 900px wide, reduce the columns to 4 */
@media (max-width: 900px) {
    #calendar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For screens up to 600px wide, reduce the columns to 2 and make elements bigger */
@media (max-width: 600px) {
    #calendar {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Make day-cards fill more vertical space */
    .day-card {
        min-height: 200px;
    }

    /* Buttons full-width for easy tapping */
    button {
        width: 100%;
        margin: 8px 0;
        font-size: 18px;
    }

    /* Chat input full width */
    #chatInputBar {
        flex-direction: column;
    }
    #userMessage {
        margin-right: 0;
        width: 100%;
    }
}

