/**
 * VIPパスワードプロンプト専用スタイル
 * ゴールド×ブラックの高級感あるデザイン
 */

/* ========================================
   コンテンツロック状態（VIP用）
   ======================================== */

body.content-locked {
    overflow: hidden;
}

body.content-locked > *:not(#vip-password-prompt-overlay) {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

body.content-unlocked {
    overflow: auto;
}

/* ========================================
   パスワードプロンプト オーバーレイ
   ======================================== */

.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.password-overlay.fade-out {
    animation: fadeOut 0.3s ease;
    opacity: 0;
}

/* VIPオーバーレイ */
.vip-overlay {
    background: rgba(26, 26, 46, 0.95);
}

/* パスワードプロンプト コンテナ（基本） */
.password-prompt-container {
    background: linear-gradient(135deg, #FFFFFF, #FFF5FB);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
    text-align: center;
    animation: slideUp 0.4s ease;
    position: relative;
}

/* VIPプロンプトコンテナ */
.vip-prompt-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid #FFD700;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
}

/* ========================================
   タイトル・説明文
   ======================================== */

.password-prompt-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2D1B3D;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.password-prompt-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 35px;
}

.vip-prompt-container h2 {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.vip-prompt-container .password-prompt-description {
    color: #E5E4E2;
}

/* ========================================
   アイコン
   ======================================== */

.password-prompt-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #FF6B9D, #C9A0FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.password-prompt-icon i {
    font-size: 48px;
    color: #FFFFFF;
}

/* VIPプロンプトアイコン */
.vip-prompt-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
}

.vip-prompt-icon i {
    color: #1a1a2e;
}

/* ========================================
   パスワード入力エリア
   ======================================== */

.password-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.password-input {
    flex: 1;
    padding: 18px 24px;
    font-size: 16px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.password-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.password-input::placeholder {
    color: #999;
}

.password-submit-btn {
    padding: 18px 32px;
    background: linear-gradient(135deg, #FF6B9D, #C9A0FF);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
}

.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.password-submit-btn:active {
    transform: translateY(0);
}

.password-submit-btn i {
    margin-right: 8px;
}

/* VIPサブミットボタン */
.vip-submit-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-weight: 700;
}

.vip-submit-btn:hover {
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.5);
}

/* VIPヘルプ */
.vip-help {
    background: linear-gradient(135deg, #0f3460, #16213e);
    border-left: 4px solid #FFD700;
}

.vip-help p {
    color: #E5E4E2;
}

.vip-help i {
    color: #FFD700;
}

/* VIPアップグレードセクション */
.vip-upgrade-section {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
}

.vip-upgrade-section .upgrade-text {
    color: #1a1a2e;
    font-weight: 700;
}

.vip-upgrade-btn {
    background: #1a1a2e;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.vip-upgrade-btn:hover {
    background: #16213e;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* ========================================
   エラーメッセージ
   ======================================== */

.password-error {
    background: linear-gradient(135deg, #FFE5E5, #FFF0F0);
    color: #D32F2F;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #D32F2F;
    animation: slideIn 0.3s ease;
}

.password-error i {
    margin-right: 8px;
}

/* ========================================
   シェイクアニメーション（エラー時）
   ======================================== */

.password-input-group.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========================================
   戻るリンク
   ======================================== */

.back-to-free {
    margin-top: 20px;
}

.back-to-free a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-to-free a:hover {
    color: #FFD700;
}

.back-to-free i {
    margin-right: 6px;
}

/* ========================================
   成功トースト
   ======================================== */

.success-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50, #45B649);
    color: #FFFFFF;
    padding: 18px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    font-size: 15px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.success-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.success-toast i {
    margin-right: 10px;
    font-size: 18px;
}

/* VIP成功トースト */
.vip-success-toast {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

/* ========================================
   アニメーション
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 768px) {
    .password-prompt-container {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .password-input-group {
        flex-direction: column;
    }
    
    .password-submit-btn {
        width: 100%;
    }
    
    .success-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .password-prompt-container {
        padding: 30px 20px;
    }
    
    .password-prompt-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .password-prompt-icon i {
        font-size: 36px;
    }
}
