:root {
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --secondary: #334155;
    --bg-image: url('./bg.png');
    --card-bg: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --text-main: #f8fafc;
    --text-dim: #cbd5e1;
    --input-bg: rgba(255, 255, 255, 0.1);
    --success: #22c55e;
    --radius-lg: 32px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: #042f2e var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -1rem;
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.icon-btn:hover {
    transform: scale(1.1);
    background: var(--glass-bg);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

h1 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mcp-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.mcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.mcp-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.mcp-icon {
    font-size: 1.1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.glass {
    background: var(--glass-bg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 0.25rem;
}

input, select {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.primary-btn {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: #1e293b;
}

.primary-btn:active {
    transform: translateY(0);
}

.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

.weather-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.temp-display {
    font-size: 3rem;
    font-weight: 700;
}

.weather-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.weather-info p {
    color: var(--text-dim);
    text-transform: capitalize;
}

.recommendation-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--secondary);
}

.content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    line-height: 1.5;
}

.suggestion-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.suggestion-item::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 1rem 0;
}

footer p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Loading Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 480px) {
    .app-container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}
