/* ==========================================================================
   SMTP Tester Tool
   ========================================================================== */

/* Tool section */
.smtp-tool {
    padding: 3em 0;
}

.smtp-tool_grid {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

@media only screen and (min-width: 885px) {
    .smtp-tool_grid {
        display: grid;
        grid-template-columns: 380px 1fr;
        column-gap: 2em;
        align-items: start;
    }
}

/* Form */
.smtp-tool_form {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.smtp-tool_form-title {
    font-size: 1.2rem;
    margin: 0 0 0.25em;
    color: #272727;
}

.smtp-tool_section-heading {
    font-size: 0.95rem;
    margin: 0;
    color: #272727;
}

.smtp-tool_divider {
    height: 1px;
    background: #eee;
    margin: 0.5em 0;
}

.smtp-tool_row--2col {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 0.75em;
}

.smtp-tool_field {
    display: flex;
    flex-direction: column;
}

.smtp-tool_label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3em;
}

.smtp-tool_required {
    color: #e74c3c;
}

.smtp-tool_input,
.smtp-tool_select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6em 0.8em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #272727;
    background: #fff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.smtp-tool_input:focus,
.smtp-tool_select:focus {
    outline: none;
    border-color: #ffde00;
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.2);
}

.smtp-tool_select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    padding-right: 2.2em;
}

/* Submit button */
.smtp-tool_submit {
    margin-top: 0.5em;
    font-size: 1rem;
    padding: 0.75em 2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.smtp-tool_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Output / Log panel */
.smtp-tool_output {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.smtp-tool_output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em 1.25em;
    background: #272737;
    border-bottom: 1px solid #333;
}

.smtp-tool_output-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.smtp-tool_status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.75em;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smtp-tool_status--waiting {
    background: #333;
    color: #888;
}

.smtp-tool_status--running {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    animation: smtpPulse 1.5s ease-in-out infinite;
}

.smtp-tool_status--success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.smtp-tool_status--error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

@keyframes smtpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Log area */
.smtp-tool_log {
    flex: 1;
    padding: 0.75em 1.25em;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #cdd6f4;
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-all;
    overflow-wrap: break-word;
    max-height: 600px;
}

.smtp-log_hint {
    color: #666;
    font-style: italic;
    font-family: inherit;
}

/* Log line types */
.smtp-log_line {
    display: block;
    padding: 0;
    margin: 0;
}

.smtp-log_line--info {
    color: #89b4fa;
}

.smtp-log_line--send {
    color: #a6e3a1;
}

.smtp-log_line--recv {
    color: #cdd6f4;
}

.smtp-log_line--ok {
    color: #a6e3a1;
    font-weight: 600;
}

.smtp-log_line--error {
    color: #f38ba8;
    font-weight: 600;
}

.smtp-log_line--warn {
    color: #fab387;
}

.smtp-log_line--separator {
    color: #444;
    border: none;
    margin: 0.5em 0;
}

/* Audience */
.smtp-audience {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.smtp-audience_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.smtp-audience_card {
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    height: 100%;
    box-sizing: border-box;
}

.smtp-audience_card-heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.smtp-audience_card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}


/* ==========================================================================
   Shared Tool Styles (copied for standalone use)
   ========================================================================== */

/* Features */
.tool-features {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-features_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-feature {
    text-align: center;
    padding: 1.5em 1em;
}

.tool-feature_icon {
    margin-bottom: 1em;
}

.tool-feature_heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.tool-feature_desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* How it works */
.tool-how-it-works {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-how-it-works_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-step {
    text-align: center;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tool-step_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffde00;
    color: #272727;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1em;
}

.tool-step_heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.tool-step_desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* FAQ */
.tool-faq {
    padding: 3em 0;
    border-top: 1px solid #eee;
    max-width: 720px;
    margin: 0 auto;
}

.tool-faq_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-faq_item {
    border-bottom: 1px solid #eee;
}

.tool-faq_question {
    padding: 1.25em 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2em;
    color: #272727;
}

.tool-faq_question::-webkit-details-marker {
    display: none;
}

.tool-faq_question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s ease;
}

details[open] .tool-faq_question::after {
    content: '\2212';
}

.tool-faq_answer {
    padding: 0 0 1.25em;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tool-faq_answer p {
    margin: 0;
}
