/* ============================================
   Facebook Text Formatter - Styles
   Modern, Clean, and Fully Responsive
   ============================================ */

/* ==================== Main Container ==================== */
.facebook-text-formatter-tool {
    min-height: 100vh;
    padding: 1.5rem 1rem;
    background: #f0f2f5; /* Facebook-like background */
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ==================== Tool Header ==================== */
.tool-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tool-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #1877f2; /* Facebook blue */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.tool-header h1 i {
    font-size: 1.8rem;
}

.tool-description {
    font-size: 0.95rem;
    color: #65676b;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== Formatter Card ==================== */
.formatter-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* ==================== Section Labels ==================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #050505;
    margin-bottom: 0.8rem;
}

.section-label i {
    color: #1877f2;
}

/* ==================== Section Header ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.char-counter {
    font-size: 0.85rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.char-counter i {
    color: #1877f2;
}

/* ==================== Text Section ==================== */
.text-section {
    margin-bottom: 1.5rem;
}

.text-input {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
    border: 2px solid #dddfe2;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease, background 0.5s ease, border-color 0.5s ease;
    color: #050505;
    line-height: 1.5;
}

.text-input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.text-input::placeholder {
    color: #8a8d91;
}

/* ==================== Style Selection ==================== */
.style-selection {
    margin-bottom: 1.5rem;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}

.style-btn {
    padding: 1rem 0.8rem;
    background: #f0f2f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.style-btn:hover {
    background: #e4e6eb;
    transform: translateY(-2px);
}

.style-btn.active {
    background: #e7f3ff;
    border-color: #1877f2;
}

.style-preview {
    font-size: 1.2rem;
    font-weight: 600;
    color: #050505;
}

.style-name {
    font-size: 0.8rem;
    color: #65676b;
    font-weight: 600;
}

/* ==================== Format Button ==================== */
.format-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
    margin-bottom: 1.5rem;
}

.format-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.format-btn:active {
    transform: translateY(0);
}

/* ==================== Copy Button ==================== */
.copy-btn {
    padding: 0.5rem 1rem;
    background: #42b72a; /* Facebook green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #36a420;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 183, 42, 0.3);
}

.copy-btn.copied {
    background: #1877f2;
}

/* ==================== Examples Section ==================== */
.examples-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.examples-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.examples-section h3 i {
    color: #1877f2;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.example-card {
    background: #f0f2f5;
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #e4e6eb;
}

.example-preview {
    font-size: 1.1rem;
    color: #050505;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.example-label {
    font-size: 0.8rem;
    color: #65676b;
    font-weight: 600;
}

/* ==================== Guide Section ==================== */
.guide-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.guide-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.guide-section h3 i {
    color: #1877f2;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.3rem;
}

.step-content p {
    font-size: 0.85rem;
    color: #65676b;
    line-height: 1.5;
}

/* ==================== Related Tools Section ==================== */
.related-tools-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.related-tools-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.related-tools-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.related-tools-header p {
    color: #65676b;
    font-size: 0.9rem;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.related-tool-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: #f0f2f5;
    border-radius: 8px;
    color: #050505;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-tool-link:hover {
    background: #1877f2;
    color: white;
    transform: translateX(3px);
}

.related-tool-link i {
    font-size: 1.1rem;
}

/* ==================== SEO Content Section ==================== */
.seo-content {
    background: white;
    margin-top: 2rem;
    padding: 2rem 1rem;
}

.seo-content .container {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 1rem;
}

.seo-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #050505;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #050505;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.seo-content p {
    color: #65676b;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-content li {
    color: #65676b;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.seo-content strong {
    color: #050505;
    font-weight: 600;
}

.mb-10 {
    margin-bottom: 2rem;
}

/* ==================== Responsive Design for Mobile ==================== */
@media (max-width: 768px) {
    .facebook-text-formatter-tool {
        padding: 1rem 0.8rem;
    }

    .tool-header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
    }

    .tool-description {
        font-size: 0.9rem;
    }

    .formatter-card,
    .preview-section,
    .examples-section,
    .guide-section,
    .related-tools-section {
        padding: 1.2rem;
    }

    /* Style grid becomes 2 columns on mobile */
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .style-btn {
        padding: 0.8rem 0.5rem;
    }

    .style-preview {
        font-size: 1rem;
    }

    .style-name {
        font-size: 0.75rem;
    }

    /* Section header adjusts on mobile */
    .section-header {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .copy-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Examples grid becomes single column */
    .examples-grid {
        grid-template-columns: 1fr;
    }

    /* Guide steps stack on mobile */
    .guide-steps {
        grid-template-columns: 1fr;
    }

    /* Related tools stack on mobile */
    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    /* Header actions stack on mobile */
    .header-actions {
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.3rem;
    }

    .formatter-card {
        padding: 1rem;
    }

    .text-input,
    .text-output {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .format-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }

    .char-counter {
        font-size: 0.8rem;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .facebook-text-formatter-tool {
        background: white;
    }

    .format-btn,
    .copy-btn,
    .style-selection,
    .examples-section,
    .guide-section,
    .related-tools-section {
        display: none;
    }

    .formatter-card {
        box-shadow: none;
        border: 1px solid #dddfe2;
    }
}


