:root {
    --primary-font: 'Poppins', sans-serif;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.15);
    --button-bg: #e91e63;
    --button-hover-bg: #c2185b;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #9a2ab5, #6d41c1, #4c5fd7);
    background-size: 400% 400%;
    animation: gradientBG 40s ease infinite;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 1rem;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

textarea#user-input {
    width: 100%;
    padding: 1rem;
    font-family: var(--primary-font);
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    color: var(--text-color);
    resize: vertical;
}

textarea#user-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

textarea#user-input:focus {
    outline: 2px solid var(--button-bg);
}

button#submit-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--button-bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow);
}

button#submit-button:hover {
    background-color: var(--button-hover-bg);
}

.results-section {
    margin-top: 2rem;
}

.results-section h2 {
    margin-bottom: 1.5rem;
}

/* Swiper Carousel Styling */
.swiper {
    width: 100%;
    padding-bottom: 50px; /* Space for pagination */
}

.swiper-slide {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 220px;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Swiper navigation and pagination colors */
.swiper-button-next, .swiper-button-prev {
    color: var(--text-color);
}

.swiper-pagination-bullet-active {
    background: var(--text-color);
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* --- Footer Styling --- */
footer {
    margin-top: 3rem;      /* Adds space between the results and the footer */
    padding-bottom: 1rem;  /* Ensures some space at the very bottom */
    font-size: 0.9rem;     /* Makes it slightly smaller than body text */
    opacity: 0.8;          /* Makes it less prominent and visually pleasing */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Matches the header text style */
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    header h1 { font-size: 2.5rem; }
    header p { font-size: 1rem; }
    
    /* --- NEW MODIFICATION FOR MOBILE --- */
    /* This rule hides the navigation arrows on screens 600px or less */
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
    /* --- END OF MODIFICATION --- */
}
