/* Bold & Italic Text Styling Tools CSS */

/* Main tool section */
.bold-italic-tool-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    margin: 40px auto;
    width: calc(100% - 80px);
    box-sizing: border-box;
}

/* Section titles */
.bold-italic-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style type buttons */
.style-types-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.style-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.style-btn:hover {
    border-color: #4a90d9;
    color: #4a90d9;
}

.style-btn.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

.style-btn i {
    font-size: 14px;
}

/* Style preview in button */
.style-btn .style-preview {
    font-size: 16px;
    margin-left: 5px;
}

/* Text areas container - two column layout */
.text-areas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.text-area-column {
    display: flex;
    flex-direction: column;
}

.text-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.text-area-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Action buttons row */
.action-buttons-row {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.action-btn.primary {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

.action-btn.primary:hover {
    background: #3a7fc8;
}

.action-btn.copy-btn {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.action-btn.copy-btn:hover {
    background: #218838;
}

.action-btn.clear-btn {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.action-btn.clear-btn:hover {
    background: #c82333;
}

/* Textarea styles */
.bold-italic-textarea {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 200px;
    line-height: 1.6;
}

.bold-italic-textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.bold-italic-textarea.output-textarea {
    background-color: #f9fafb;
}

/* Character count */
.char-count-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.char-count {
    font-size: 12px;
    color: #888;
}

.char-count .current {
    font-weight: 600;
}

/* Download section */
.download-section {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

.download-btn i {
    font-size: 18px;
}

/* Copy success message */
.copy-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #28a745;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-success-message.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.copy-success-message i {
    font-size: 18px;
}

/* Features section styling */
#bold-italic-features {
    padding: 60px 0;
}

#bold-italic-features .intro-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

#bold-italic-features .heading-description-3 {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: #444;
}

#bold-italic-features .content-grey-2 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

#bold-italic-features .content-grey-2 strong {
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

/* FAQ section styling */
.faq-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 15px;
}

.faq-question i {
    color: #888;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

/* SEO content section */
.seo-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.seo-content-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333;
}

.seo-content-container h2:first-child {
    margin-top: 0;
}

.seo-content-container p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive styles */
@media (max-width: 900px) {
    .text-areas-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bold-italic-tool-section {
        padding: 25px 20px;
        margin: 0 15px 30px;
        border-radius: 12px;
    }

    .style-types-container {
        flex-direction: column;
    }

    .style-btn {
        width: 100%;
        justify-content: center;
    }

    .action-buttons-row {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
        justify-content: center;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .seo-content-container {
        padding: 40px 15px;
    }

    .seo-content-container h2 {
        font-size: 18px;
    }

    .download-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bold-italic-textarea {
        font-size: 14px;
        padding: 12px;
        min-height: 150px;
    }

    .text-area-label {
        font-size: 13px;
    }
}

/* Usage Counter */
.usage-counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 15px;
    margin-top: 8px;
    width: fit-content;
    margin-left: auto;
}

.usage-counter-wrapper i {
    font-size: 11px;
    color: #4a90d9;
}

.usage-counter {
    font-weight: 600;
}

.usage-counter.low {
    color: #dc3545;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.visible {
    opacity: 1;
    visibility: visible;
}

.share-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.visible .share-modal-content {
    transform: scale(1);
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #e0e0e0;
}

.share-modal-close i {
    font-size: 16px;
    color: #666;
}

.share-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.share-modal-icon i {
    font-size: 28px;
    color: #fff;
}

.share-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.share-modal-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 5px;
}

.share-modal-subtext {
    font-size: 14px;
    color: #4a90d9;
    font-weight: 600;
    margin: 0 0 25px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn i {
    font-size: 16px;
}

.share-btn-twitter {
    background: #1da1f2;
}

.share-btn-facebook {
    background: #1877f2;
}

.share-btn-linkedin {
    background: #0a66c2;
}

.share-btn-whatsapp {
    background: #25d366;
}

.share-btn-telegram {
    background: #0088cc;
}

.share-modal-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-modal-footer p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.share-modal-footer a {
    color: #4a90d9;
    font-weight: 600;
    text-decoration: none;
}

.share-modal-footer a:hover {
    text-decoration: underline;
}

/* Unlock success message */
.unlock-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
    z-index: 10001;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.unlock-success-message.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.unlock-success-message i {
    font-size: 18px;
}

/* Modal open body state */
body.modal-open {
    overflow: hidden;
}

/* Responsive share modal */
@media (max-width: 480px) {
    .share-modal-content {
        padding: 30px 20px;
    }

    .share-modal-title {
        font-size: 20px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
