/**
 * LearnDash Certificate Verify Pro - Public Styles
 */

/* Container */
.ldcvp-verification-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.ldcvp-verification-header {
    text-align: center;
    margin-bottom: 30px;
}

.ldcvp-verification-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px;
}

.ldcvp-verification-header p {
    color: #666;
    margin: 0;
}

/* Search Form */
.ldcvp-verification-form {
    margin-bottom: 30px;
}

.ldcvp-search-box {
    display: flex;
    gap: 10px;
    max-width: 100%;
}

.ldcvp-cert-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.ldcvp-cert-input:focus {
    border-color: #2271b1;
}

.ldcvp-verify-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.ldcvp-verify-btn:hover {
    background: #135e96;
}

.ldcvp-verify-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* CAPTCHA */
.ldcvp-captcha {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* Results */
.ldcvp-verification-result {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.ldcvp-result-icon {
    margin-bottom: 20px;
}

.ldcvp-result-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
}

.ldcvp-result-valid .ldcvp-result-title {
    color: #22c55e;
}

.ldcvp-result-revoked .ldcvp-result-title {
    color: #f59e0b;
}

.ldcvp-result-invalid .ldcvp-result-title {
    color: #ef4444;
}

.ldcvp-result-message {
    color: #666;
    margin: 0 0 30px;
}

/* Certificate Details */
.ldcvp-certificate-details {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.ldcvp-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ldcvp-detail-row:last-child {
    border-bottom: none;
}

.ldcvp-detail-label {
    flex: 0 0 150px;
    font-weight: 600;
    color: #374151;
}

.ldcvp-detail-value {
    flex: 1;
    color: #1f2937;
}

.ldcvp-cert-code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Social Share */
.ldcvp-social-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.ldcvp-share-label {
    display: block;
    color: #666;
    margin-bottom: 15px;
}

.ldcvp-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ldcvp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.ldcvp-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.ldcvp-share-linkedin {
    background: #0077b5;
}

.ldcvp-share-facebook {
    background: #1877f2;
}

.ldcvp-share-twitter {
    background: #1da1f2;
}

/* Footer */
.ldcvp-verification-footer {
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Certificate Template Shortcodes */
.ldcvp-certificate-id {
    font-family: 'Monaco', 'Consolas', monospace;
}

.ldcvp-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.ldcvp-qr-code {
    display: block;
    max-width: 100%;
    height: auto;
}

.ldcvp-button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.ldcvp-button:hover {
    background: #135e96;
    color: #fff;
}

.ldcvp-certificate-details dl {
    margin: 0;
}

.ldcvp-certificate-details dt {
    font-weight: 600;
    margin-top: 10px;
}

.ldcvp-certificate-details dd {
    margin: 0 0 10px;
    padding: 0;
}

/* RTL Support */
[dir="rtl"] .ldcvp-detail-label {
    text-align: right;
}

[dir="rtl"] .ldcvp-search-box {
    flex-direction: row-reverse;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .ldcvp-verification-container {
        margin: 20px auto;
    }
    
    .ldcvp-search-box {
        flex-direction: column;
    }
    
    .ldcvp-verify-btn {
        width: 100%;
    }
    
    .ldcvp-verification-result {
        padding: 25px;
    }
    
    .ldcvp-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .ldcvp-detail-label {
        flex: none;
    }
}
