/* WageTools AI Resume Assistant */

.wt-ai-assistant {
    margin-top: 32px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.wt-ai-assistant h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1.3;
    color: #111827;
}

.wt-ai-assistant p {
    color: #4b5563;
    line-height: 1.7;
}

#wt-ai-input {
    display: block;
    width: 100%;
    min-height: 190px;
    margin-top: 18px;
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#wt-ai-input:focus {
    outline: none;
    border-color: #d99a00;
    box-shadow: 0 0 0 3px rgba(217, 154, 0, 0.16);
}

#wt-improve,
#wt-summary,
#wt-experience {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 14px;
    margin-right: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    background: #fbbf24;
    border: 1px solid #e5a900;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#wt-improve:hover,
#wt-summary:hover,
#wt-experience:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(245, 158, 11, 0.24);
}

#wt-improve:active,
#wt-summary:active,
#wt-experience:active {
    transform: translateY(0);
}

#wt-ai-result {
    margin-top: 24px;
}

#wt-ai-result:empty {
    display: none;
}

#wt-ai-result h3 {
    margin: 0;
    padding: 18px 20px;
    font-size: 20px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.wt-ai-response {
    padding: 22px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.wt-ai-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.wt-ai-copy-result,
.wt-ai-use-result {
    min-height: 42px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.wt-ai-copy-result {
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.wt-ai-copy-result:hover {
    background: #f1f5f9;
}

.wt-ai-use-result {
    color: #ffffff;
    background: #1f2937;
    border: 1px solid #1f2937;
}

.wt-ai-use-result:hover {
    background: #111827;
}

.wt-ai-copy-result:hover,
.wt-ai-use-result:hover {
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .wt-ai-assistant {
        padding: 20px;
        border-radius: 12px;
    }

    #wt-improve,
    #wt-summary,
    #wt-experience {
        width: 100%;
        margin-right: 0;
    }

    .wt-ai-result-actions {
        flex-direction: column;
    }

    .wt-ai-copy-result,
    .wt-ai-use-result {
        width: 100%;
    }
}