:root {
    --salmon: #ff8e7a;
    --salmon-dark: #e87a67;
    --slate: #3d405b;
    --glass: rgba(255, 255, 255, 0.45);
    --white: #ffffff;
}

* { box-sizing: border-box; }
body {
    margin: 0; font-family: 'Outfit', sans-serif;
    background: #fdfaf5; color: var(--slate);
    overflow-x: hidden;
}

/* HIGH-END ANIMATED WAVES */
.wave-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: linear-gradient(180deg, #fdfaf5 0%, #fae8e0 100%);
    overflow: hidden;
}
.wave {
    position: absolute; width: 250%; height: 250%; top: -150%; left: -75%;
    border-radius: 40%; background: white; opacity: 0.3;
    animation: rotate 40s linear infinite;
}
.wave.w2 { animation-duration: 55s; opacity: 0.2; background: var(--salmon); }
.wave.w3 { animation-duration: 70s; opacity: 0.15; background: #81b29a; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; z-index: 10; position: relative; }

/* MASONRY GRID */
.masonry-layout {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}
@media (max-width: 1100px) { .masonry-layout { column-count: 2; } }
@media (max-width: 700px) { .masonry-layout { column-count: 1; } }

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.card { display: inline-block; width: 100%; margin-bottom: 20px; padding: 25px; }

/* HEADERS */
.main-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.weather-pill { display: flex; align-items: center; padding: 12px 20px; gap: 15px; width: fit-content; margin-bottom: 15px; }
.portal-title { font-size: 3.5rem; margin: 0; font-weight: 700; color: var(--slate); }

.card-head { 
    display: flex; justify-content: space-between; align-items: center; 
    font-weight: 700; color: var(--salmon-dark); margin-bottom: 20px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 10px; 
}

/* BUTTONS */
.btn-main { background: var(--salmon); color: white; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-main:hover { background: var(--salmon-dark); transform: translateY(-2px); }
.btn-icon { background: var(--slate); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }

/* MOOD TRACKER */
.mood-row { display: flex; justify-content: space-between; margin-bottom: 15px; width: 100%; }
.mood-btn { border: 2px solid transparent; background: white; font-size: 2rem; border-radius: 15px; padding: 10px; cursor: pointer; flex: 1; margin: 0 2px; }
.mood-btn.active { border-color: var(--salmon); background: #fffaf0; transform: scale(1.1); }
.mood-note-display { text-align: center; font-weight: 600; color: var(--slate); font-style: italic; margin: 15px 0; padding: 10px; background: rgba(0,0,0,0.03); border-radius: 12px; }

/* MUSICALS */
.musical-card { background: white; padding: 15px; border-radius: 15px; margin-bottom: 10px; border-left: 5px solid var(--salmon); }
.star-rating { color: #f1c40f; font-size: 1rem; margin: 5px 0; }
.review-text { font-size: 0.85rem; color: #666; font-style: italic; }

/* CALENDAR */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; border-radius: 10px; cursor: pointer; }
.cal-day.today { background: var(--slate); color: white; font-weight: bold; }
.cal-day.has-e { background: var(--salmon); color: white; }

/* MODALS & FORMS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(10px); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal { width: 95%; max-width: 500px; padding: 30px; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #ddd; font-family: inherit; }

.hidden { display: none !important; }
.full-width { width: 100%; }