/**
 * Frontend styles for WP Product Verification
 */

.wpv-verification-widget {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 20px;
}

.wpv-heading {
    font-size: 32px;
    font-weight: 600;
    color: #5FC1E8;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.wpv-description {
    font-size: 16px;
    color: #7A7A7A;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.wpv-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.wpv-verification-form {
    margin: 0;
}

.wpv-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .wpv-form-row {
        flex-direction: column;
    }
}

.wpv-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.wpv-input:focus {
    border-color: #5FC1E8;
    box-shadow: 0 0 0 3px rgba(95, 193, 232, 0.1);
}

.wpv-input::placeholder {
    color: #aaa;
    text-transform: none;
    font-family: inherit;
}

.wpv-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #5CB85C;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wpv-button:hover {
    background-color: #4CAE4C;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(92, 184, 92, 0.3);
}

.wpv-button:active {
    transform: translateY(0);
}

.wpv-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wpv-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpv-message.wpv-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpv-message.wpv-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wpv-message.wpv-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.wpv-verification-details {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.wpv-verification-details h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.wpv-verification-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.wpv-verification-details strong {
    color: #333;
}

.wpv-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Product Logo */
.wpv-product-logo {
    text-align: center;
    margin-bottom: 20px;
}

.wpv-product-logo img {
    max-width: 200px;
    height: auto;
    display: inline-block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
