/* css/tools/instagram-bio-fonts.css */

/* Base tool page styling (can be largely inherited or copied from other tool 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 .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;
}

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

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

#charCountInsta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.output-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.output-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow-light);
    transition: box-shadow 0.2s ease;
}

.output-item:hover {
    box-shadow: var(--box-shadow);
}

.output-item .style-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.output-item .insta-font-preview {
    /* Specific class for this tool */
    font-size: 1.15rem;
    /* Instagram bios are often smaller */
    background-color: var(--light-color);
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) - 3px);
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-break: break-all;
    min-height: 60px;
    /* Suitable for bio snippets */
    flex-grow: 1;
    display: flex;
    align-items: center;
    line-height: 1.5;
    /* Good line height for bios */
    border: 1px solid #e9ecef;
}

.output-item .copy-insta-font-btn {
    /* Specific class */
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    align-self: flex-start;
}

.output-item .copy-insta-font-btn:hover {
    background-color: #0056b3;
}

.output-item .copy-insta-font-btn:active {
    transform: scale(0.97);
}

.output-item .copy-insta-font-btn.copied {
    background-color: #28a745;
    cursor: default;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

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

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

/* Space after tool area */
#insta-bio-examples+.content-section {
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

/* Adjust spacing if bio examples are followed by another section */

.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 ol,
.steps-list ul {
    padding-left: 20px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* For nested lists in how-to */
.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;
    /* Adjusted for better alignment with text */
    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;
}

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

.features-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    font-size: 1.1rem;
}

/* Styles for Instagram Bio Examples Section */
#insta-bio-examples .section-intro {
    margin-bottom: 2rem;
}

.bio-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bio-example-item {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bio-example-item .bio-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    /* Preserve line breaks in examples */
    flex-grow: 1;
}

.btn.btn-outline {
    /* Example for an outline button style */
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

@media (max-width: 576px) {
    .tool-header h1 {
        font-size: 1.6rem;
    }

    .tool-header .tool-subtitle {
        font-size: 0.95rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .output-item .insta-font-preview {
        font-size: 1.05rem;
    }

    .bio-example-item .bio-text {
        font-size: 0.95rem;
    }
}