/**
 * WBC Cert Frontend Styles
 */

.wbc-cert-verification-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wbc-cert-verification-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.wbc-cert-form {
    margin-bottom: 20px;
}

.wbc-cert-form-group {
    margin-bottom: 20px;
}

.wbc-cert-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.wbc-cert-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wbc-cert-form-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.wbc-cert-form-group .description {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.wbc-cert-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wbc-cert-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wbc-cert-btn-primary::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 ease;
}

.wbc-cert-btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.wbc-cert-btn-primary:hover::before {
    left: 100%;
}

.wbc-cert-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.wbc-cert-btn-secondary:hover {
    background-color: #545b62;
}

.wbc-cert-spinner {
    display: inline-block;
    margin-left: 10px;
    color: #666;
    font-style: italic;
}

.wbc-cert-result {
    margin-top: 30px;
}

.wbc-cert-certificate {
    background-color: white;
    border: 2px solid #28a745;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    position: relative;
}

.wbc-cert-certificate::before {
    content: "✓";
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.wbc-cert-certificate-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.wbc-cert-certificate-header::after {
    content: "VERIFIED";
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wbc-cert-certificate-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wbc-cert-certificate-body {
    padding: 35px 30px;
    background: linear-gradient(180deg, #f8fff9 0%, #ffffff 100%);
}

.wbc-cert-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e8f5e8;
    position: relative;
}

.wbc-cert-field:last-child {
    border-bottom: none;
}

.wbc-cert-field::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
}

.wbc-cert-field label {
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbc-cert-field span {
    color: #28a745;
    font-weight: 600;
    font-size: 16px;
    text-align: right;
    max-width: 60%;
}

.wbc-cert-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.wbc-cert-error::before {
    content: "⚠";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
}

.wbc-cert-error p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wbc-cert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.wbc-cert-success::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
}

.wbc-cert-success p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .wbc-cert-verification-container {
        margin: 10px;
        padding: 15px;
    }
    
    .wbc-cert-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wbc-cert-field label {
        margin-bottom: 5px;
    }
} 