/* MathsKiller Premium 樣式 */

/* 付費牆 Modal */
.paywall-modal, .auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.paywall-content, .auth-content {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

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

.paywall-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.paywall-content h2, .auth-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.paywall-content p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.paywall-plans {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.paywall-plan {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    max-width: 200px;
}

.paywall-plan.featured {
    border-color: #f59e0b;
    position: relative;
}

.paywall-plan.featured::before {
    content: '推薦';
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.paywall-plan h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.paywall-price {
    font-size: 2rem;
    font-weight: 900;
    color: #6366f1;
    margin-bottom: 15px;
}

.paywall-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}

.paywall-plan button {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.paywall-plan.featured button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.paywall-plan button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.paywall-close {
    background: transparent;
    border: 1px solid #64748b;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.paywall-close:hover {
    border-color: white;
    color: white;
}

/* Auth Modal */
.auth-content {
    position: relative;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-close:hover {
    color: white;
}

.auth-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.auth-content input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
}

.auth-content input:focus {
    outline: none;
    border-color: #6366f1;
}

.auth-content input::placeholder {
    color: #64748b;
}

.auth-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.auth-switch {
    margin-top: 20px;
    color: #64748b;
}

.auth-switch a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 鎖定內容樣式 */
.premium-content.locked, .vip-content.locked {
    position: relative;
    pointer-events: none;
}

.premium-content.locked::after, .vip-content.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.premium-content.locked::before {
    content: '🔒 升級解鎖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 11;
    cursor: pointer;
    pointer-events: auto;
}

.vip-content.locked::before {
    content: '👑 VIP 專屬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 11;
    cursor: pointer;
    pointer-events: auto;
}

/* 導航欄按鈕 */
.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.5);
    background: transparent;
    color: #94a3b8;
    font-size: 0.9rem;
}

.nav-btn:hover {
    border-color: #6366f1;
    color: white;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Premium 標籤 */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* AI 使用次數提示 */
.ai-usage-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #fbbf24;
}

.ai-usage-notice.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* WhatsApp 浮動按鈕 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* 程式付費牆 */
.paywall-program {
    text-align: center;
}

.paywall-lock-icon {
    font-size: 4rem;
    margin: 30px 0;
    animation: pulse 2s infinite;
}

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

.paywall-message h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.paywall-message p {
    color: #94a3b8;
    margin-bottom: 15px;
}

.paywall-benefits {
    list-style: none;
    text-align: left;
    max-width: 250px;
    margin: 0 auto;
}

.paywall-benefits li {
    padding: 8px 0;
    color: #e2e8f0;
}

.paywall-pricing {
    margin: 30px 0;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.paywall-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.paywall-price {
    font-size: 3rem;
    font-weight: 900;
    color: #6366f1;
}

.paywall-period {
    font-size: 1.2rem;
    color: #64748b;
}

.paywall-note {
    margin-top: 10px;
    color: #f59e0b;
    font-weight: 600;
}

.paywall-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.paywall-upgrade-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.paywall-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.paywall-close-btn {
    background: transparent;
    border: 1px solid #64748b;
    color: #64748b;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.paywall-close-btn:hover {
    border-color: white;
    color: white;
}

.paywall-contact {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.paywall-contact a {
    color: #6366f1;
}

/* 付費等級標籤 */
.tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.tier-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tier-badge.vip {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* 響應式 */
@media (max-width: 600px) {
    .paywall-plans {
        flex-direction: column;
    }
    
    .paywall-plan {
        max-width: 100%;
    }
    
    .paywall-content, .auth-content {
        padding: 30px 20px;
    }
}

