:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 { width: 400px; height: 400px; background: #4f46e5; top: -100px; left: -100px; }
.blob-2 { width: 350px; height: 350px; background: #7c3aed; bottom: -50px; right: -50px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #ec4899; top: 40%; left: 60%; animation-delay: -10s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.input-section label {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-left: 4px;
}

/* Liquid Date Picker */
.liquid-date-picker {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    height: 250px; /* Taller for more context */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 0 10px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.liquid-date-picker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 50px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.wheel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
}

#yearWheel { flex: 1.6; } /* Year needs more space */

.wheel-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.1s cubic-bezier(0.1, 0.7, 0.1, 1);
    padding: 0;
}

.wheel-item {
    height: 50px;
    line-height: 50px;
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
    width: 100%;
    text-align: center;
    flex-shrink: 0;
}

.wheel-item.selected {
    color: white;
    font-weight: 600;
    font-size: 1.6rem;
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Fortune Section Styling */
.fortune-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    animation: fadeIn 1s ease forwards;
}

.zodiac-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(99, 102, 241, 0.1);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid var(--primary-glow);
}

.zodiac-icon { font-size: 2.5rem; }
.zodiac-box h3 { font-size: 1.4rem; color: white; }

.description-box h4, .weekly-fortune h4 {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.description-box p { font-size: 0.95rem; line-height: 1.6; color: var(--text-dim); }

.fortune-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.fortune-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.fortune-item span { width: 60px; }

.bar { flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.fill { height: 100%; background: var(--primary); width: 0; transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 10px var(--primary-glow); }

.fortune-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    background: rgba(255,255,255,0.02);
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px var(--primary-glow); }
button:active { transform: translateY(0); }

/* Result Area */
.result-area {
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.8s ease forwards;
}

.hidden { display: none; }

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

.days-display { margin: 16px 0; }
#daysCount { font-size: 4rem; font-weight: 600; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.unit { font-size: 1.2rem; color: var(--text-dim); margin-left: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.stat-item { background: rgba(255, 255, 255, 0.03); padding: 12px; border-radius: 16px; }
.stat-item span:first-child { display: block; font-size: 1.2rem; font-weight: 600; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); }

.quote { font-style: italic; font-size: 0.85rem; color: var(--text-dim); margin-top: 24px; }
