@charset "utf-8";

.mdm-section { background: rgb(255, 255, 255); padding: var(--section-gap) 0; }

.mdm-header { text-align: center; margin-bottom: 48px; }

.mdm-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; }

.mdm-title { font-family: Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: rgb(255, 255, 255); margin-bottom: 10px; }

.mdm-sub { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); max-width: 480px; margin: 0px auto; line-height: 1.8; }

.mdm-mood-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.mdm-mood-pill { display: flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: 50px; border: 2px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: 0.2s; font-family: inherit; backdrop-filter: blur(6px); }

.mdm-mood-pill:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.14); color: rgb(255, 255, 255); }

.mdm-mood-pill.active { border-color: rgb(255, 255, 255); background: rgb(255, 255, 255); color: var(--char); box-shadow: rgba(255, 255, 255, 0.2) 0px 4px 20px; }

.mdm-feeling-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.mdm-feel-chip { padding: 7px 16px; border-radius: 50px; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: 0.18s; font-family: inherit; }

.mdm-feel-chip:hover { background: rgba(255, 255, 255, 0.15); color: rgb(255, 255, 255); }

.mdm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 900px) {
  .mdm-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .mdm-grid { grid-template-columns: 1fr; }
}

.mdm-slot { background: rgba(255, 255, 255, 0.07); border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, 0.1); overflow: hidden; transition: transform 0.2s, border-color 0.2s; backdrop-filter: blur(8px); }

.mdm-slot:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); }

.mdm-slot-label { display: flex; align-items: center; gap: 7px; padding: 12px 14px 0px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.45); }

.mdm-slot-emoji { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; }

.mdm-slot-body { padding: 0px 14px 16px; }

.mdm-slot-moods { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 7px; }

.mdm-slot-mood { font-size: 0.58rem; font-weight: 800; padding: 2px 7px; border-radius: 50px; background: rgba(255, 255, 255, 0.14); color: rgb(255, 255, 255); }

.mdm-slot-title { font-weight: 800; font-size: 0.88rem; color: rgb(255, 255, 255); margin-bottom: 5px; line-height: 1.3; }

.mdm-slot-meta { font-size: 0.7rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }

.mdm-slot-meta span { display: flex; align-items: center; gap: 4px; }

.mdm-scores { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }

.mdm-score-row { display: flex; align-items: center; gap: 6px; }

.mdm-score-label { font-size: 0.6rem; color: rgba(255, 255, 255, 0.5); width: 42px; flex-shrink: 0; }

.mdm-score-bar { flex: 1 1 0%; height: 4px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }

.mdm-score-fill { height: 100%; background: linear-gradient(90deg, rgba(36, 52, 71, 0.6), rgba(200, 220, 180, 0.9)); border-radius: 2px; transition: width 0.8s; }

.mdm-score-val { font-size: 0.6rem; color: rgba(255, 255, 255, 0.6); width: 16px; text-align: right; flex-shrink: 0; }

.mdm-slot-btns { display: flex; flex-direction: column; gap: 6px; }

.mdm-slot-btn { padding: 7px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: 0.18s; border: 1.5px solid; }

.mdm-slot-btn-save { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); color: rgb(255, 255, 255); }

.mdm-slot-btn-save:hover { background: rgba(255, 255, 255, 0.25); }

.mdm-slot-btn-plan { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.75); }

.mdm-slot-btn-plan:hover { border-color: rgba(255, 255, 255, 0.45); color: rgb(255, 255, 255); }

.mdm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.mdm-btn-regen { display: flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.25); color: rgb(255, 255, 255); font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: 0.2s; }

.mdm-btn-regen:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.5); }

.mdm-btn-save-all { display: flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; background: rgb(255, 255, 255); border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; color: var(--char); font-size: 0.88rem; font-weight: 800; cursor: pointer; font-family: inherit; transition: 0.2s; }

.mdm-btn-save-all:hover { background: var(--sage-lt); }

.mdm-empty { text-align: center; padding: 60px 20px; color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; }

.mdm-empty-icon { font-size: 3rem; margin-bottom: 12px; }

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

.mdm-spinning { animation: 0.7s linear 0s infinite normal none running mdm-spin; display: inline-block; }