/* ==============================================
   WP Request — フロントエンドスタイル（ダークモード）
   ============================================== */

/* リセット */
.wpm-wrap * {
    box-sizing: border-box;
}

/* ラッパー */
.wpm-wrap {
    max-width: 600px;
    margin: 2rem auto;
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    color: #f3f4f6;
}

/* アラート */
.wpm-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.9rem;
    font-weight: 600;
}
.wpm-success {
    background: #064e3b;
    color: #6ee7b7;
    border-left: 5px solid #10b981;
}
.wpm-error {
    background: #4c0519;
    color: #fca5a5;
    border-left: 5px solid #ef4444;
}

/* カード（フォーム本体） */
.wpm-card {
    background: #1e1e24;
    border: 1px solid #2e2e38;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    padding: 2rem 2rem 1.5rem;
}

/* ヘッダー */
.wpm-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.wpm-icon {
    font-size: 6rem;
    display: block;
    margin-bottom: .5rem;
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.35));
}
.wpm-subtitle {
    color: #9ca3af;
    font-size: 1.86rem;
    margin: 0;
    line-height: 1.6;
}

/* フォーム */
.wpm-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.wpm-field {
    position: relative;
}
.wpm-input {
    width: 100%;
    padding: .9rem 1rem;
    border: 2px solid #32323e;
    border-radius: 12px;
    font-size: 1.9rem;
    color: #f3f4f6;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    line-height: 1.4;
    background: #121216;
}
.wpm-input:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: #16161b;
}
.wpm-input::placeholder {
    color: #6b7280;
}
.wpm-textarea {
    width: 100%;
    padding: .9rem 1rem;
    border: 2px solid #32323e;
    border-radius: 12px;
    font-size: 1.9rem;
    color: #f3f4f6;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    line-height: 1.6;
    background: #121216;
}
.wpm-textarea:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: #16161b;
}
.wpm-textarea::placeholder {
    color: #6b7280;
}
.wpm-counter {
    text-align: right;
    font-size: 1.56rem;
    color: #808595;
    margin-top: .3rem;
}

/* 送信ボタン */
.wpm-btn {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: .85rem 2rem;
    border-radius: 999px;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    letter-spacing: .05em;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}
.wpm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(236, 72, 153, 0.45);
}
.wpm-btn:active {
    transform: translateY(0);
}
.wpm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 注意書き */
.wpm-note {
    text-align: center;
    color: #808595;
    font-size: 1.56rem;
    margin-top: .75rem;
    margin-bottom: 0;
}

/* =============================================
   公開リクエスト一覧
   ============================================= */
.wpm-public-list {
    max-width: 640px;
}

.wpm-list-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f3f4f6;
    letter-spacing: .02em;
}

.wpm-empty {
    color: #6b7280;
    text-align: center;
    padding: 2rem 0;
    font-size: 1.6rem;
}

/* メッセージバブル */
.wpm-bubble {
    background: #1e1e24;
    border: 1px solid #2e2e38;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.wpm-bubble-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px dashed #32323e;
}
.wpm-sender-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d1d5db;
}

.wpm-bubble-message {
    font-size: 1.94rem;
    color: #f3f4f6;
    line-height: 1.7;
    margin: 1rem 0;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 返答エリア */
.wpm-bubble-reply {
    background: linear-gradient(135deg, #252338 0%, #1c1c28 100%);
    border-left: 3px solid #a855f7;
    border-radius: 0 10px 10px 0;
    padding: .85rem 1.15rem;
    margin-top: .75rem;
    font-size: 1.8rem;
    color: #e5e7eb;
    line-height: 1.6;
}
.wpm-reply-label {
    display: block;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: .3rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* フッター（ボタンエリア） */
.wpm-bubble-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

/* 投票ボタン & スクリーンショットボタン（同一デザイン装飾） */
.wpm-vote-btn,
.wpm-screenshot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid #3e3e4e;
    color: #a1a1aa;
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: 1.56rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.wpm-vote-btn:hover,
.wpm-screenshot-btn:hover {
    border-color: #a855f7;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
}

.wpm-vote-btn:active,
.wpm-screenshot-btn:active {
    transform: translateY(0);
}

/* 投票済み状態 */
.wpm-vote-btn.voted {
    border-color: #a855f7;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.18);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
    animation: wpmPop .3s ease-out;
}

.wpm-vote-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes wpmPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* スマホ対応 */
@media (max-width: 480px) {
    .wpm-card {
        padding: 1.5rem 1rem;
    }
    .wpm-bubble {
        padding: 1rem 1rem;
    }
}
