/* Color Palette and Variables */
:root {
    --bg-color-1: #0f172a;
    --bg-color-2: #1e1b4b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-primary: #8b5cf6;
    --accent-hover: #7c3aed;
    --error-color: #ef4444;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-color-1), var(--bg-color-2));
    background-size: 400% 400%;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

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

/* Background Animated Orbs */
.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.background-animation::before {
    background: rgba(139, 92, 246, 0.3);
    top: -100px;
    left: -100px;
}

.background-animation::after {
    background: rgba(56, 189, 248, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* Layout Container */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed) ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
}

/* Typography */
header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #e2e8f0, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Custom Select */
.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none; /* Removes default arrow */
    outline: none;
    transition: border-color var(--transition-speed) ease;
}

select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

option {
    background: var(--bg-color-1);
    color: var(--text-primary);
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

/* Buttons */
button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    outline: none;
}

.cta-button {
    background: var(--accent-primary);
    color: white;
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(139, 92, 246, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Results Container */
.hidden {
    display: none;
}

#results-container {
    animation: fadeIn 0.5s ease-out;
}

#results-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

#suggestions-list {
    list-style: none;
    margin-bottom: 2rem;
}

#suggestions-list li {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--accent-primary);
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(-10px);
}

/* Stagger animation based on index */
#suggestions-list li:nth-child(1) { animation-delay: 0.1s; }
#suggestions-list li:nth-child(2) { animation-delay: 0.2s; }
#suggestions-list li:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tertiary-button {
    background: transparent;
    color: var(--text-secondary);
    border: 1px dashed var(--glass-border);
}

.tertiary-button:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .glass-panel {
        padding: 1.5rem;
        width: 95%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
