/* ==========================================================================
   Email Size Checker Tool
   ========================================================================== */

/* Tool section */
.esc-tool {
    padding: 3em 0;
}

.esc-tool_grid {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

@media only screen and (min-width: 885px) {
    .esc-tool_grid {
        display: grid;
        grid-template-columns: 1fr 280px;
        column-gap: 1.5em;
        align-items: stretch;
        overflow: hidden;
    }
}

.esc-tool_panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.esc-tool_panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.esc-tool_panel-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin: 0;
}

/* Contenteditable editor */
.esc-tool_editor {
    width: 100%;
    box-sizing: border-box;
    min-height: 380px;
    max-height: 600px;
    padding: 1.25em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: auto;
    background: #fff;
    color: #272727;
    flex: 1;
    transition: border-color 0.2s ease;
    outline: none;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.esc-tool_editor:focus {
    border-color: #ffde00;
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.2);
}

.esc-tool_editor.esc-tool_editor--placeholder {
    color: #aaa;
}

.esc-tool_editor img {
    max-width: 100%;
    height: auto;
}

/* Sidebar with metrics */
.esc-tool_sidebar {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5em;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.esc-tool_metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6em 0;
    border-bottom: 1px solid #eee;
}

.esc-tool_metric:last-of-type {
    border-bottom: none;
}

.esc-tool_metric-label {
    font-size: 0.85rem;
    color: #888;
}

.esc-tool_metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #272727;
}

/* Score colors */
.esc-score--excellent { color: #27ae60; }
.esc-score--good { color: #27ae60; }
.esc-score--above-avg { color: #2980b9; }
.esc-score--average { color: #2980b9; }
.esc-score--poor { color: #e67e22; }
.esc-score--bad { color: #e74c3c; }

/* Feedback */
.esc-tool_feedback {
    margin-top: 0.75em;
}

.esc-tool_feedback-msg {
    padding: 0.75em;
    border-radius: 8px;
    background: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

/* Audience section */
.esc-audience {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.esc-audience_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.esc-audience_card {
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    height: 100%;
    box-sizing: border-box;
}

.esc-audience_card-heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.esc-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;
}

/* Clear button (shared) */
.converter-tool_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.converter-tool_btn:hover {
    border-color: #999;
    color: #272727;
    background: #f5f5f5;
}

.converter-tool_btn--clear {
    border: none;
    color: #999;
    font-size: 0.8rem;
}

.converter-tool_btn--clear:hover {
    color: #e74c3c;
    background: none;
}
