/* RiPro-V5 激励广告解锁 - 前端样式
   复用 RiPro 主题 CSS 变量并带 fallback，主题未定义变量时也能正常显示 */

.rrad-ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s;
    margin-top: 10px;
    width: 100%;
}
.rrad-ad-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}
.rrad-ad-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.rrad-ad-box {
    padding: 20px;
    background: var(--body-bg-color, #ffffff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
}
.rrad-ad-tip {
    color: var(--text-muted-color, #999999);
    font-size: 13px;
    margin-bottom: 12px;
}

/* 弹窗 */
.rrad-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rrad-modal {
    width: 400px;
    max-width: 92%;
    background: var(--card-bg-color, #ffffff);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-color, #333333);
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.rrad-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.rrad-modal-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted-color, #999999);
}
.rrad-modal-close:hover {
    color: var(--text-color, #333333);
}
.rrad-modal-body {
    padding: 30px 20px;
    text-align: center;
}
.rrad-ad-area {
    width: 100%;
    min-height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}
/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .rrad-ad-area {
        background: rgba(255,255,255,.06);
    }
}
.rrad-ad-area .rrad-ad-placeholder {
    color: var(--text-muted-color, #999999);
    font-size: 14px;
    padding: 20px;
}
.rrad-status-text {
    font-size: 14px;
    color: var(--text-muted-color, #999999);
}
.rrad-status-text.rrad-status-success {
    color: #52c41a;
    font-weight: 600;
}
.rrad-unlocked-content {
    animation: fadeIn .3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
