/* css/tools/mirror-reverse-text.css */

.tool-page-main {
    padding: 1.5rem 0 2.5rem 0;
}

.tool-article {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .tool-article {
        padding: 2rem;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.tool-header h1 .fas {
    margin-right: 0.5rem;
}

.tool-header .tool-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.tool-interactive-area {
    margin-bottom: 2.5rem;
}

.text-input-area {
    margin-bottom: 2rem;
}

.text-input-area textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
    border: 2px solid #ccd0d5;
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .20);
}

.input-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}

#clearTextBtnTransform {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

#clearTextBtnTransform:hover {
    background-color: darken(var(--secondary-color), 10%);
}

/* Manual hex or SASS */
#charCountTransform {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.output-container-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for smaller screens */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {

    /* Two or three columns on larger screens */
    .output-container-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.output-box {
    background-color: var(--white-color);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
}

.output-box-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #eee);
    padding-bottom: 0.5rem;
}

.transformed-text-preview {
    background-color: var(--light-color, #f8f9fa);
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) - 2px);
    margin-bottom: 1rem;
    min-height: 70px;
    overflow-wrap: break-word;
    word-break: break-all;
    line-height: 1.7;
    flex-grow: 1;
    border: 1px solid #e9ecef;
    font-size: 1.1rem;
    /* Slightly larger for these effects */
}

.copy-transformed-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    align-self: flex-start;
}

.copy-transformed-btn .fas {
    margin-right: 0.35rem;
}

.copy-transformed-btn.copied {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: var(--white-color) !important;
}

.copy-transformed-btn:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.char-support-note,
.info-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    background-color: var(--light-color, #f8f9fa);
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.info-note {
    margin-top: 0;
}


/* Content Sections Styling (general structure) */
.content-section {
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.tool-interactive-area+.content-section {
    margin-top: 3rem;
}

.content-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.75rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.alt-bg-tool {
    background-color: var(--section-alt-bg);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-radius: var(--border-radius);
}

.steps-list,
.features-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.steps-list li {
    background-color: #fff;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    position: relative;
    border: 1px solid var(--border-color);
}

.steps-list {
    counter-reset: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 1rem;
    top: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.steps-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

#about-transformed-text .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

#about-transformed-text .info-item {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    border-left: 4px solid var(--primary-color);
}

#about-transformed-text .info-item h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.related-tools-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}