/**
 * Adaptog Product Verifier - Frontend Styles
 * Brand: #11A2A8 (teal), #020101 (text), 40px radius buttons
 */

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

/* Form Section */
.adaptog-verifier-form {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

.adaptog-verifier-title {
    font-size: 28px;
    font-weight: 600;
    color: #020101;
    margin: 0 0 10px 0;
}

.adaptog-verifier-description {
    font-size: 16px;
    color: #020101;
    opacity: 0.7;
    margin: 0 0 25px 0;
}

/* Input Group */
.adaptog-input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.adaptog-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adaptog-input:focus {
    border-color: #11A2A8;
    box-shadow: 0 0 0 3px rgba(17, 162, 168, 0.1);
}

.adaptog-input::placeholder {
    color: #999;
}

/* Verify Button */
.adaptog-button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: #11A2A8 !important;
    border: none !important;
    border-radius: 40px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.adaptog-button:hover {
    background: #0e8a8f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 162, 168, 0.3);
    border: none !important;
    color: #fff !important;
}

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

.adaptog-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.adaptog-spinner {
    width: 20px;
    height: 20px;
    animation: adaptog-spin 1s linear infinite;
}

@keyframes adaptog-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Result Section */
.adaptog-result {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: adaptog-fadeIn 0.3s ease;
}

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

/* Verified Banner */
.adaptog-verified-banner {
    padding: 20px;
    text-align: center;
    color: #fff;
}

.adaptog-verified-banner.success {
    background: #11A2A8;
}

.adaptog-verified-banner.error {
    background: #dc3545;
}

.adaptog-verified-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.adaptog-verified-text {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Product Card */
.adaptog-product-card {
    padding: 30px;
}

.adaptog-product-header {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.adaptog-product-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 10px;
    flex-shrink: 0;
}

.adaptog-product-info {
    flex: 1;
}

.adaptog-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #020101;
    margin: 0 0 15px 0;
}

.adaptog-product-code-display {
    display: inline-block;
    background: #e6f5f5;
    color: #11A2A8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Product Details Grid */
.adaptog-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.adaptog-detail-item {
    display: flex;
    flex-direction: column;
}

.adaptog-detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 5px;
}

.adaptog-detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #020101;
}

/* Custom Message */
.adaptog-custom-message {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #11A2A8;
}

.adaptog-custom-message-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
}

.adaptog-custom-message-text {
    font-size: 15px;
    color: #020101;
    line-height: 1.6;
    margin: 0;
}

/* COA Button */
.adaptog-coa-section {
    margin-top: 25px;
    text-align: center;
}

.adaptog-coa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #11A2A8;
    background: #fff;
    border: 2px solid #11A2A8;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.adaptog-coa-btn:hover {
    background: #11A2A8;
    color: #fff;
}

.adaptog-coa-btn svg {
    width: 20px;
    height: 20px;
}

/* Error State */
.adaptog-error-card {
    padding: 40px 30px;
    text-align: center;
}

.adaptog-error-message {
    font-size: 16px;
    color: #020101;
    line-height: 1.6;
    margin: 0;
}

/* Try Again Button */
.adaptog-try-again {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #11A2A8;
    background: transparent;
    border: 2px solid #11A2A8;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adaptog-try-again:hover {
    background: #11A2A8;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .adaptog-input-group {
        flex-direction: column;
    }
    
    .adaptog-button {
        width: 100%;
    }
    
    .adaptog-product-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .adaptog-product-image {
        width: 120px;
        height: 120px;
    }
    
    .adaptog-details-grid {
        grid-template-columns: 1fr;
    }
}
