/* ═══════════════════════════════════════════
 *  GW MyLog — 気持ちクイックウィジェット
 *  TOPページ配置用
 * ═══════════════════════════════════════════ */

.gw-mood-widget {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.5rem 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF0F3 50%, #F0F0FF 100%);
    border-radius: 16px;
}
@media (min-width: 420px) {
    .gw-mood-widget { padding: 1.5rem 1.25rem; }
}

/* ── ヘッダー ── */
.gw-mood-widget__header {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}
.gw-mood-widget__sub {
    font-size: 13px;
    color: #777;
    margin-bottom: 1.25rem;
}

/* ── ボタン行 ── */
.gw-mood-widget__row {
    display: flex;
    justify-content: center;
    gap: 6px;
}
@media (min-width: 380px) {
    .gw-mood-widget__row { gap: 10px; }
}
@media (min-width: 420px) {
    .gw-mood-widget__row { gap: 14px; }
}

/* ── 個別ボタン ── */
.gw-mood-widget__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.4s ease, filter 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background: none;
    border: none;
    padding: 4px;
    position: relative;
}
.gw-mood-widget__btn:hover { transform: scale(1.08); }
.gw-mood-widget__btn:active { transform: scale(0.95); }

/* 顔ラッパー */
.gw-mood-widget__face {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: box-shadow 0.2s ease;
}
@media (min-width: 380px) {
    .gw-mood-widget__face { width: 56px; height: 56px; }
}
@media (min-width: 420px) {
    .gw-mood-widget__face { width: 64px; height: 64px; }
}
.gw-mood-widget__btn:hover .gw-mood-widget__face {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.gw-mood-widget__face-svg {
    width: 42px;
    height: 42px;
}
@media (min-width: 380px) {
    .gw-mood-widget__face-svg { width: 50px; height: 50px; }
}
@media (min-width: 420px) {
    .gw-mood-widget__face-svg { width: 58px; height: 58px; }
}

/* ラベル */
.gw-mood-widget__label {
    font-size: 11px;
    color: #777;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s, font-weight 0.3s;
}
@media (min-width: 420px) {
    .gw-mood-widget__label { font-size: 12px; }
}

/* ── 状態クラス ── */
.gw-mood-widget__btn.is-dimmed {
    opacity: 0.15;
    pointer-events: none;
    filter: grayscale(1);
}
.gw-mood-widget__btn.is-selected .gw-mood-widget__label {
    color: #333;
    font-weight: 600;
}
.gw-mood-widget__btn.is-locked {
    pointer-events: none;
}
.gw-mood-widget__btn.is-locked.is-dimmed {
    opacity: 0.08;
}

/* ── リングバースト ── */
.gw-mood-widget__ring {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

/* ── パーティクル ── */
.gw-mood-widget__particles {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.gw-mood-widget__particles .mw-p {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

/* ── アニメーション ── */
@keyframes mwPopBig {
    0%   { transform: scale(0.3); opacity: 0; }
    20%  { transform: scale(1.6); opacity: 1; }
    35%  { transform: scale(0.85); }
    50%  { transform: scale(1.2); }
    65%  { transform: scale(0.95); }
    80%  { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes mwRingExpand {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
    50%  { opacity: 0.8; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}
@keyframes mwParticleFly {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    60%  { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}
@keyframes mwSparkle {
    0%   { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0) rotate(0deg); }
    20%  { opacity: 1; transform: translate(var(--sx), var(--sy)) scale(1.2) rotate(90deg); }
    60%  { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(0.8) rotate(180deg); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg); }
}
@keyframes mwFadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mwCheckPop {
    0%   { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.gw-mood-widget__btn.is-selected .gw-mood-widget__face {
    animation: mwPopBig 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.gw-mood-widget__btn.is-selected .gw-mood-widget__ring {
    animation: mwRingExpand 0.5s ease-out forwards;
}

/* ── 記録完了メッセージ ── */
.gw-mood-widget__recorded {
    padding: 0.75rem 0 0;
    animation: mwFadeSlideUp 0.4s ease-out;
}
.gw-mood-widget__check {
    display: inline-block;
    animation: mwCheckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    vertical-align: -3px;
    margin-right: 4px;
}
.gw-mood-widget__recorded-text {
    font-size: 13px;
    color: #666;
}

/* ── 理由エリア ── */
.gw-mood-widget__reasons {
    padding: 0.75rem 0 0;
    animation: mwFadeSlideUp 0.35s ease-out;
}
.gw-mood-widget__reason-q {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.gw-mood-widget__reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}
.gw-mood-widget__reason-chip {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gw-mood-widget__reason-chip:hover {
    background: #f8f8f8;
    border-color: #ccc;
}
.gw-mood-widget__skip {
    font-size: 12px;
    color: #bbb;
    cursor: pointer;
    margin-top: 4px;
}
.gw-mood-widget__skip:hover {
    text-decoration: underline;
    color: #999;
}

/* ── その他チップ ── */
.gw-mood-widget__reason-chip--other {
    border-style: dashed;
}
.gw-mood-widget__reason-chip--other.is-active {
    background: #f0f0f0;
    border-style: solid;
    border-color: #bbb;
}

/* ── その他テキスト入力 ── */
.gw-mood-widget__other-input {
    padding: 0 0 4px;
    animation: mwFadeSlideUp 0.3s ease-out;
}
.gw-mood-widget__other-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
}
.gw-mood-widget__other-row input {
    flex: 1;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.gw-mood-widget__other-row input:focus {
    border-color: #E8899A;
}
.gw-mood-widget__other-send {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #FFF0F3;
    color: #993556;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.gw-mood-widget__other-send:hover {
    background: #FFE4EB;
}

/* ── 完了エリア ── */
.gw-mood-widget__done,
.gw-mood-widget__nav {
    padding: 0.75rem 0 0;
    animation: mwFadeSlideUp 0.35s ease-out;
}
.gw-mood-widget__done-tag .gw-mood-widget__tag-pill {
    display: inline-block;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 16px;
    background: #FFF0F3;
    color: #993556;
    margin-bottom: 10px;
}
.gw-mood-widget__done-text {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 10px;
}

/* ── CTA ── */
.gw-mood-widget__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #993556;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 24px;
    background: #FFF0F3;
    border: 1px solid #E8899A;
    transition: all 0.15s;
    text-decoration: none;
}
.gw-mood-widget__cta:hover {
    background: #FFE4EB;
    text-decoration: none;
    color: #993556;
}
.gw-mood-widget__cta--small {
    font-size: 12px;
    padding: 6px 14px;
    margin-top: 6px;
}

/* ── 本日記録済み ── */
.gw-mood-widget__already {
    padding: 0.5rem 0 0;
}
.gw-mood-widget__already-text {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

/* ── ログイン促進 ── */
.gw-mood-widget__login-prompt {
    padding: 1rem 0 0;
    animation: mwFadeSlideUp 0.35s ease-out;
}
.gw-mood-widget__login-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
