/* HTML to Text Converter Styles */

/* Main Tool Container */
.html-to-text-tool {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tool-container {
    width: 100%;
}

/* Header */
.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tool-header h1 i {
    color: #e74c3c;
}

.tool-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Converter Interface */
.converter-interface {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards */
.converter-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.converter-content {
    padding: 25px;
}

/* Input/Output Sections */
.input-section, .output-section {
    margin-bottom: 25px;
}

.section-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.input-container, .output-container {
    position: relative;
}

.html-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.html-textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.html-textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Copy Button */
.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-copy:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

/* Stats */
.input-stats, .output-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-item i {
    color: #007bff;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Options */
.converter-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding: 0 25px;
    padding-top: 25px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 25px 25px;
}

.option-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.option-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.option-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Examples */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 0 25px 25px;
}

.example-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.example-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.example-description {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .html-to-text-tool {
        padding: 15px;
    }

    .tool-header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }

    .tool-description {
        font-size: 1rem;
    }

    .converter-content {
        padding: 20px;
    }

    .html-textarea {
        min-height: 150px;
        font-size: 13px;
    }

    .btn-copy {
        position: static;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .input-stats, .output-stats {
        gap: 15px;
        justify-content: center;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .html-to-text-tool {
        padding: 30px;
    }

    .tool-header h1 {
        font-size: 2.5rem;
    }

    .controls {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .btn {
        min-width: 140px;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* SEO Content Styles */
.seo-content {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.content-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.content-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.content-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-section ul, .content-section ol {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 25px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.feature-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item h3 i {
    color: #007bff;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Usage Steps */
.usage-steps {
    counter-reset: step-counter;
}

.usage-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.usage-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #007bff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Use Cases */
.use-cases h3 {
    color: #007bff;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.use-cases h3:first-child {
    margin-top: 0;
}

/* Elements Grid */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.element-category {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.element-category h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.element-category ul {
    margin: 0;
    padding-left: 20px;
}

.element-category li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Entities Table */
.entities-table {
    overflow-x: auto;
    margin-top: 20px;
}

.entities-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.entities-table th,
.entities-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.entities-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.entities-table tr:last-child td {
    border-bottom: none;
}

.entities-table tr:hover {
    background: #f8f9ff;
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
}

.tips-list li strong {
    color: #2c3e50;
}

/* Tech Specs */
.tech-specs h3 {
    color: #007bff;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.tech-specs h3:first-child {
    margin-top: 0;
}

/* FAQ Section */
.faq-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.faq-section h3:first-child {
    margin-top: 0;
}

/* Related Tools */
.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-category {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.tool-category h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.tool-category ul {
    margin: 0;
    padding-left: 20px;
}

.tool-category li {
    margin-bottom: 8px;
}

.tool-category a {
    color: #007bff;
    text-decoration: none;
}

.tool-category a:hover {
    text-decoration: underline;
}
