/* ai-detector-style.css
 * Visual refresh: align with WebSEOkit toolset styles
 * Design-only changes - functionality untouched
 */
 body {
background-color: #D1D1D1;
 }

:root{
    --wsk-bg: #ffffff;
    --wsk-surface: #f6f7fb;
    --wsk-muted: #6b7280;
    --wsk-text: #0f172a;
    --wsk-accent-start: #0ea5e9; /* primary button color */
    --wsk-accent-end: #0ea5e9;   /* solid to match requested */
    --wsk-success-start: #34d399;
    --wsk-success-end: #059669;
    --wsk-radius: 12px;
}

.ai-detector-widget, .ai-detector-card, .result-item, #ai-text-input, .button.button-primary{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ai-detector-widget{
    max-width: 1200px;
    margin: 18px auto;
    padding: 0 16px;
    font-family: Poppins, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--wsk-text);
    line-height: 1.5;
}

/* Headings & description keep WP defaults but get tighter spacing */
.ai-detector-widget h1,
.ai-detector-widget h3{
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #031B4B;
}
.ai-detector-widget p{ margin: 0 0 12px 0; color: var(--wsk-muted); }

/* Textarea input styled to match WebSEOkit inputs */
#ai-text-input{
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    border-radius: calc(var(--wsk-radius) - 2px);
    border: 1px solid #e5e7eb;
    background: var(--wsk-bg);
    box-shadow: 0 1px 0 rgba(15,23,42,0.02) inset;
    resize: vertical;
    font-size: 15px;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

#ai-text-input:focus{
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 6px 18px rgba(14,165,233,0.12);
}

/* Primary button tuned to WebSEOkit sizing */
.button.button-primary{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 12px 28px;
    border-radius: 10px;
    background: var(--wsk-accent-start);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(99,102,241,0.12);
    margin: 20px 0px;
}

.button.button-primary:hover{
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(14,165,233,0.18);
}

.button.button-primary:focus{
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.25), 0 8px 20px rgba(14,165,233,0.14);
}

.button.button-primary:active{
    transform: translateY(0.5px);
    box-shadow: 0 6px 16px rgba(14,165,233,0.12);
}

.button.button-primary:disabled{ opacity: 0.6; cursor: not-allowed; }

/* Card container */
.ai-detector-card{
    background: #fff;
    border-radius: var(--wsk-radius);
    padding: 20px;
    box-shadow: 0 8px 30px rgba(15,23,42,0.06);
    margin-top: 18px;
    border: 1px solid #e5e7eb;
}

.ai-result-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.result-item{
    background: #fff;
    padding: 16px 18px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(15,23,42,0.04);
}

.result-item .icon{
    font-size: 22px;
    border-radius: 8px;
    padding: 6px;
    background: rgba(15,23,42,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.result-item .label{
    font-size: 13px;
    color: var(--wsk-muted);
}

.result-item .percentage{
    font-size: 34px;
    font-weight: 700;
    color: var(--wsk-text);
    margin-top: 6px;
}

.progress{
    background: rgba(15,23,42,0.06);
    height: 12px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.06);
}

.progress-fill{
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--wsk-accent-start), var(--wsk-accent-end));
    border-radius: 8px 0 0 8px;
    transition: width 700ms cubic-bezier(.2,.9,.2,1);
}

.human-item .progress-fill{
    background: linear-gradient(90deg, var(--wsk-success-start), var(--wsk-success-end));
}

.note{
    margin-top: 14px;
    font-size: 13px;
    color: var(--wsk-muted);
    text-align: center;
}

/* Small tweaks for very narrow screens */
@media (max-width: 640px){
    .ai-detector-widget{ padding: 0 12px; }
    .ai-result-grid{ grid-template-columns: 1fr; }
    .result-item{ align-items: stretch; }
    .result-item .percentage{ font-size: 28px; }
}

/* Preserve legacy IDs/classes used by JS: visual only */
.ai-detector-card[style]{ /* keep inline show/hide behavior intact */ }

.elementor-element-11d15ea {
    background: white;
    border-radius: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.ai-detecter-description {
    font-size: 0.95rem;
}
.elementor-element-35f81ac .e-con-inner {
    max-width: 1424px;
}