/* TP2E Member 內容限制樣式 */

.tp2e-content-restriction {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
}

.tp2e-content-restriction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d6, #007cba);
    background-size: 200% 100%;
    animation: tp2e-gradient-shift 3s ease-in-out infinite;
}

@keyframes tp2e-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tp2e-restriction-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: tp2e-pulse 2s ease-in-out infinite;
}

@keyframes tp2e-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tp2e-content-restriction h3 {
    color: #495057;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tp2e-content-restriction p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tp2e-restriction-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tp2e-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tp2e-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tp2e-btn:hover::before {
    left: 100%;
}

.tp2e-btn-primary {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.tp2e-btn-primary:hover {
    background: #005a87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
}

.tp2e-btn-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.tp2e-btn-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* 會員限制短代碼樣式 */
.tp2e-member-only-content,
.tp2e-paid-member-only-content {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-style: italic;
    text-align: center;
    position: relative;
}

.tp2e-member-only-content::before,
.tp2e-paid-member-only-content::before {
    content: '🔒';
    font-size: 20px;
    margin-right: 8px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .tp2e-content-restriction {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .tp2e-restriction-icon {
        font-size: 48px;
    }
    
    .tp2e-content-restriction h3 {
        font-size: 20px;
    }
    
    .tp2e-content-restriction p {
        font-size: 14px;
    }
    
    .tp2e-restriction-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tp2e-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tp2e-content-restriction {
        padding: 25px 15px;
    }
    
    .tp2e-restriction-icon {
        font-size: 40px;
    }
    
    .tp2e-content-restriction h3 {
        font-size: 18px;
    }
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
    .tp2e-content-restriction {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .tp2e-content-restriction h3 {
        color: #e2e8f0;
    }
    
    .tp2e-content-restriction p {
        color: #cbd5e0;
    }
    
    .tp2e-member-only-content,
    .tp2e-paid-member-only-content {
        background: linear-gradient(135deg, #744210 0%, #975a16 100%);
        border-color: #975a16;
        color: #fbd38d;
    }
}

/* 動畫效果 */
.tp2e-content-restriction {
    animation: tp2e-fade-in 0.5s ease-out;
}

@keyframes tp2e-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 高對比度支援 */
@media (prefers-contrast: high) {
    .tp2e-content-restriction {
        border-width: 3px;
        border-color: #000;
    }
    
    .tp2e-btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .tp2e-btn-secondary {
        border-color: #000;
        color: #000;
    }
}

/* 減少動畫效果（無障礙設計） */
@media (prefers-reduced-motion: reduce) {
    .tp2e-restriction-icon,
    .tp2e-content-restriction::before,
    .tp2e-btn::before,
    .tp2e-content-restriction {
        animation: none;
    }
    
    .tp2e-btn:hover {
        transform: none;
    }
}