/**
 * Steam验证码采集器 - 前端样式
 * 
 * @package Steam_Code_Collector
 */

/* 采集器容器 */
.scc-collect-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 卡片样式 */
.scc-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scc-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-bottom: none;
}

.scc-badge {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.scc-badge i {
    margin-right: 8px;
    font-size: 16px;
}

.scc-card-body {
    padding: 20px;
}

/* 账号列表 */
.scc-account-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scc-account-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.scc-account-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.scc-label {
    color: #6c757d;
    font-size: 13px;
    min-width: 100px;
}

.scc-value {
    flex: 1;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.scc-code {
    color: #e53935;
    font-weight: 600;
}

.scc-code-success {
    color: #28a745;
    animation: scc-pulse 2s ease-in-out infinite;
}

@keyframes scc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 复制按钮 */
.scc-copy-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scc-copy-btn:hover {
    background: #5a6268;
}

.scc-copy-btn.scc-copy-success {
    background: #28a745;
}

/* 操作按钮 */
.scc-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dee2e6;
}

.scc-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scc-btn i {
    margin-right: 6px;
}

.scc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.scc-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.scc-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.scc-btn.loading {
    opacity: 0.8;
}

/* 登录提示 */
.scc-login-required {
    text-align: center;
    padding: 30px 20px;
}

.scc-login-required p {
    color: #6c757d;
    margin-bottom: 15px;
}

.scc-no-account {
    text-align: center;
    padding: 20px;
}

.scc-no-account p {
    color: #6c757d;
    margin-bottom: 15px;
}

/* 弹窗样式 */
.scc-modal-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.scc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.scc-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: scc-modal-in 0.3s ease;
}

@keyframes scc-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.scc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.scc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.scc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.scc-modal-close:hover {
    color: #333;
}

.scc-modal-body {
    padding: 20px;
    text-align: center;
}

.scc-qrcode-wrap {
    margin-bottom: 15px;
}

.scc-qrcode-wrap img {
    max-width: 200px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.scc-modal-body p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.scc-verify-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.scc-verify-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.scc-verify-form input:focus {
    outline: none;
    border-color: #667eea;
}

.scc-verify-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.scc-verify-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#scc-verify-message {
    margin-top: 15px;
    font-size: 14px;
}

#scc-verify-message .scc-success {
    color: #28a745;
}

#scc-verify-message .scc-error {
    color: #dc3545;
}

/* 消息提示 */
.scc-notice {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    animation: scc-notice-in 0.3s ease;
}

@keyframes scc-notice-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scc-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scc-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式 */
@media (max-width: 576px) {
    .scc-card-header {
        padding: 12px 15px;
    }
    
    .scc-card-body {
        padding: 15px;
    }
    
    .scc-account-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scc-label {
        min-width: auto;
    }
    
    .scc-verify-form {
        flex-direction: column;
    }
    
    .scc-modal {
        width: 95%;
        margin: 10px;
    }
}
