/**
 * WooCommerce Health Scanner Styles
 * Store Owner Tips Branding - Purple #6B2D8B / Orange #F26522
 */

/* Container */
.woo-health-scanner {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
}

.woo-health-scanner__header {
    text-align: center;
    margin-bottom: 30px;
}

.woo-health-scanner__header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #6B2D8B;
}

.woo-health-scanner__header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Form */
.woo-health-scanner__form {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e5e0ed;
}

.woo-health-scanner__input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.woo-health-scanner__input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woo-health-scanner__input:focus {
    outline: none;
    border-color: #6B2D8B;
    box-shadow: 0 0 0 3px rgba(107, 45, 139, 0.1);
}

.woo-health-scanner__btn {
    padding: 12px 30px;
    background: #6B2D8B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.woo-health-scanner__btn:hover {
    background: #5a2575;
    transform: translateY(-1px);
}

.woo-health-scanner__btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.woo-health-scanner__btn--secondary {
    background: #F26522;
}

.woo-health-scanner__btn--secondary:hover {
    background: #d95a1e;
}

/* Messages */
.woo-health-scanner__error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #dc2626;
}

.woo-health-scanner__success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #16a34a;
}

/* Report */
.woo-health-report {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.woo-health-report__header {
    background: linear-gradient(135deg, #6B2D8B 0%, #8B4DB3 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.woo-health-report__header h3 {
    margin: 0 0 20px;
    font-size: 20px;
    word-break: break-all;
    font-weight: 500;
}

.woo-health-report__overall-score {
    display: flex;
    justify-content: center;
}

/* Score display */
.woo-health-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: bold;
}

.woo-health-score--large {
    width: 120px;
    height: 120px;
    font-size: 36px;
}

.woo-health-score__value {
    line-height: 1;
}

.woo-health-score__label {
    font-size: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.woo-health-score--large .woo-health-score__label {
    font-size: 12px;
    margin-top: 5px;
}

/* Score colors - updated with warmer tones */
.woo-health-score--excellent {
    background: #10b981;
    color: white;
}

.woo-health-score--good {
    background: #3b82f6;
    color: white;
}

.woo-health-score--needs-improvement {
    background: #F26522;
    color: white;
}

.woo-health-score--critical {
    background: #dc2626;
    color: white;
}

/* Warning banner - updated with orange accent */
.woo-health-report__warning {
    background: #fff7ed;
    color: #c2410c;
    padding: 15px 30px;
    border-bottom: 1px solid #fed7aa;
}

/* Score cards grid */
.woo-health-report__scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
}

.woo-health-report__card {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    border-top: 4px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.woo-health-report__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.woo-health-report__card--excellent {
    border-top-color: #10b981;
}

.woo-health-report__card--good {
    border-top-color: #3b82f6;
}

.woo-health-report__card--needs-improvement {
    border-top-color: #F26522;
}

.woo-health-report__card--critical {
    border-top-color: #dc2626;
}

.woo-health-report__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.woo-health-report__card-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Findings */
.woo-health-report__findings {
    font-size: 14px;
}

.woo-health-finding {
    display: flex;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: white;
    border-left: 3px solid #ddd;
}

.woo-health-finding--error,
.woo-health-finding--critical {
    border-left-color: #dc2626;
}

.woo-health-finding--warning {
    border-left-color: #F26522;
}

.woo-health-finding--info {
    border-left-color: #3b82f6;
}

.woo-health-finding--success {
    border-left-color: #10b981;
}

.woo-health-finding__icon {
    flex-shrink: 0;
    font-size: 18px;
}

.woo-health-finding__content h5 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #333;
}

.woo-health-finding__content p {
    margin: 0 0 5px;
    color: #666;
    line-height: 1.5;
}

.woo-health-finding__rec {
    font-size: 13px;
    color: #555;
}

.woo-health-report__success {
    color: #10b981;
    font-weight: 600;
}

/* CTA Section - updated with purple theme */
.woo-health-report__cta {
    background: linear-gradient(135deg, #faf5fc 0%, #f3e8f7 100%);
    padding: 30px;
    text-align: center;
    border-top: 1px solid #e5d4ed;
}

.woo-health-report__cta h4 {
    margin: 0 0 10px;
    color: #6B2D8B;
    font-size: 18px;
}

.woo-health-report__cta p {
    color: #666;
    margin: 0 0 15px;
}

.woo-health-report__email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.woo-health-report__email-form .woo-health-scanner__input {
    max-width: 300px;
}

/* Products section - Rymera CTAs */
.woo-health-report__products {
    padding: 30px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.woo-health-report__products h4 {
    margin: 0 0 20px;
    text-align: center;
    color: #333;
}

.woo-health-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.woo-health-product {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e0ed;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.woo-health-product__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: contain;
}

.woo-health-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 45, 139, 0.1);
}

.woo-health-product h5 {
    margin: 0 0 10px;
    color: #6B2D8B;
    font-size: 16px;
}

.woo-health-product p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.woo-health-product__link {
    color: #F26522;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.woo-health-product__link:hover {
    color: #d95a1e;
    text-decoration: underline;
}

/* Powered by */
.woo-health-scanner__powered-by {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

.woo-health-scanner__powered-by a {
    color: #6B2D8B;
    text-decoration: none;
}

.woo-health-scanner__powered-by a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .woo-health-scanner__input-group {
        flex-direction: column;
    }
    
    .woo-health-scanner__input {
        width: 100%;
    }
    
    .woo-health-scanner__btn {
        width: 100%;
    }
    
    .woo-health-report__email-form {
        flex-direction: column;
        align-items: center;
    }
    
    .woo-health-report__email-form .woo-health-scanner__input,
    .woo-health-report__email-form .woo-health-scanner__btn {
        width: 100%;
        max-width: none;
    }
    
    .woo-health-report__scores {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .woo-health-report__header {
        padding: 20px;
    }
    
    .woo-health-score--large {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }
}
