/* DJ Subscription Control - Domain Checker Styles */

.djsc-domain-checker {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.djsc-checker-header {
    text-align: center;
    margin-bottom: 40px;
}

.djsc-checker-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.djsc-checker-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.djsc-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.djsc-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.djsc-input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.djsc-input-group input::placeholder {
    color: #bdc3c7;
}

.djsc-btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.djsc-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.djsc-btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.djsc-checker-result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 授权成功样式 */
.djsc-result-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #b8daff;
    color: #155724;
}

.djsc-result-success .djsc-result-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.djsc-result-success h3 {
    color: #155724;
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

/* 授权失败样式 */
.djsc-result-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.djsc-result-error .djsc-result-icon {
    width: 60px;
    height: 60px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.djsc-result-error h3 {
    color: #721c24;
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

/* 授权信息样式 */
.djsc-license-info {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.djsc-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.djsc-info-row:last-child {
    border-bottom: none;
}

.djsc-info-label {
    font-weight: 600;
    color: #495057;
}

.djsc-info-value {
    color: #6c757d;
}

.djsc-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.djsc-status-active {
    background: #28a745;
    color: white;
}

.djsc-status-expired {
    background: #ffc107;
    color: #212529;
}

.djsc-purchase-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.djsc-purchase-btn:hover {
    background: linear-gradient(135deg, #20c997, #198754);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 加载状态 */
.djsc-loading {
    text-align: center;
    padding: 40px;
}

.djsc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .djsc-domain-checker {
        padding: 20px 15px;
        margin: 15px 10px;
    }
    
    .djsc-checker-header h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .djsc-checker-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .djsc-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .djsc-domain-input {
        width: 100%;
        margin-bottom: 0;
    }
    
    .djsc-check-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .djsc-result-success,
    .djsc-result-error {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .djsc-result-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .djsc-result-success h3,
    .djsc-result-error h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .djsc-license-info {
        margin: 20px 0;
    }
    
    .djsc-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    .djsc-info-label {
        font-weight: 600;
        color: #666;
        margin-bottom: 3px;
    }
    
    .djsc-info-value {
        color: #333;
        word-break: break-all;
    }
    
    .djsc-purchase-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        margin-top: 20px;
    }
    
    .djsc-status-badge {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .djsc-domain-checker {
        padding: 15px 10px;
        margin: 10px 5px;
    }
    
    .djsc-checker-header h2 {
        font-size: 20px;
    }
    
    .djsc-checker-header p {
        font-size: 13px;
    }
    
    .djsc-domain-input {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .djsc-check-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .djsc-result-success,
    .djsc-result-error {
        padding: 15px 10px;
    }
    
    .djsc-result-icon {
        font-size: 35px;
    }
    
    .djsc-result-success h3,
    .djsc-result-error h3 {
        font-size: 16px;
    }
    
    .djsc-info-row {
        padding: 10px 0;
    }
    
    .djsc-purchase-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .djsc-domain-checker {
        margin: 10px;
    }
    
    .djsc-input-group {
        flex-direction: row;
        gap: 10px;
    }
    
    .djsc-domain-input {
        flex: 1;
        margin-bottom: 0;
    }
    
    .djsc-check-btn {
        width: auto;
        min-width: 120px;
        margin-bottom: 0;
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .djsc-result-icon {
        transform: scale(0.9);
    }
    
    .djsc-status-badge {
        border-width: 0.5px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .djsc-domain-checker {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .djsc-checker-header h2 {
        color: #f7fafc;
    }
    
    .djsc-checker-header p {
        color: #cbd5e0;
    }
    
    .djsc-domain-input {
        background: #4a5568;
        border-color: #718096;
        color: #f7fafc;
    }
    
    .djsc-domain-input:focus {
        border-color: #63b3ed;
        box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
    }
    
    .djsc-result-success {
        background: #2d5a3d;
        border-color: #38a169;
        color: #f0fff4;
    }
    
    .djsc-result-error {
        background: #5a2d2d;
        border-color: #e53e3e;
        color: #fff5f5;
    }
    
    .djsc-info-row {
        border-bottom-color: #4a5568;
    }
    
    .djsc-info-label {
        color: #a0aec0;
    }
    
    .djsc-info-value {
        color: #e2e8f0;
    }
}

.djsc-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}
