/* Line Breaker Tools CSS */

/* Main tool section */
.line-breaker-tool-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    max-width: 1000px;
    margin: 0 auto 40px;
}

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

/* Spacing type section */
.spacing-type-section {
    margin-bottom: 40px;
    text-align: center;
}

.spacing-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Spacing type buttons - centered flex layout */
.spacing-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.spacing-btn {
    position: relative;
    padding: 12px 22px;
    border: 2px solid #f9a8d4;
    border-radius: 50px;
    background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
    color: #be185d;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.spacing-btn:hover {
    border-color: #ec4899;
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -5px rgba(236, 72, 153, 0.35);
}

.spacing-btn.active {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 30px -5px rgba(236, 72, 153, 0.5);
    transform: translateY(-3px);
}

.spacing-btn .btn-icon {
    font-size: 18px;
    line-height: 1;
}

.spacing-btn .btn-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.spacing-btn .btn-preview {
    display: none;
}

.spacing-btn.active .btn-icon,
.spacing-btn.active .btn-label {
    color: #fff;
}

/* Legacy support */
.spacing-types-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

/* Presets section */
.presets-section {
    margin-bottom: 44px;
}

.presets-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Presets grid */
.presets-container {
    margin-bottom: 30px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.preset-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 24px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.preset-card:hover {
    transform: translateY(-8px);
}

.preset-card:hover::before {
    transform: scaleX(1);
}

.preset-card .preset-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 10px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-card .preset-title {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    line-height: 44px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-card .preset-preview {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

/* Preset card color accents */
.preset-card[data-preset="community"]::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.preset-card[data-preset="event"]::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.preset-card[data-preset="question"]::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.preset-card[data-preset="appreciation"]::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.preset-card[data-preset="promo"]::before { background: linear-gradient(90deg, #10b981, #34d399); }
.preset-card[data-preset="tips"]::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.preset-card[data-preset="story"]::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.preset-card[data-preset="quote"]::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.preset-card[data-preset="community"]:hover { box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2); }
.preset-card[data-preset="event"]:hover { box-shadow: 0 20px 50px rgba(245, 158, 11, 0.2); }
.preset-card[data-preset="question"]:hover { box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2); }
.preset-card[data-preset="appreciation"]:hover { box-shadow: 0 20px 50px rgba(236, 72, 153, 0.2); }
.preset-card[data-preset="promo"]:hover { box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2); }
.preset-card[data-preset="tips"]:hover { box-shadow: 0 20px 50px rgba(6, 182, 212, 0.2); }
.preset-card[data-preset="story"]:hover { box-shadow: 0 20px 50px rgba(249, 115, 22, 0.2); }
.preset-card[data-preset="quote"]:hover { box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2); }

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

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

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

.text-area-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-area-label {
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    letter-spacing: 0.3px;
}

/* Text area actions - button group */
.text-area-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.action-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.action-btn.small {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.action-btn.small:hover {
    background: #fdf2f8;
    border-color: #f9a8d4;
    color: #be185d;
}

.action-btn.primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

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

.action-btn.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.action-btn.copy-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.action-btn.clear-btn {
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.action-btn.clear-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Output actions row */
.output-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.output-actions .action-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
}

.output-actions .action-btn.primary {
    flex: 1.5;
}

/* Textarea styles */
.line-breaker-textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.25s ease;
    min-height: 220px;
    line-height: 1.7;
    background: #fff;
}

.line-breaker-textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.line-breaker-textarea.output-textarea {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

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

.char-count {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

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

.char-count.over-limit .current {
    color: #dc2626;
}

/* Download section */
.download-section {
    display: flex;
    justify-content: center;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.45);
}

.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: 16px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 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 */
#line-breaker-features {
    padding: 60px 0;
}

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

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

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

#line-breaker-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 #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    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: #fafafa;
}

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

.faq-question i {
    color: #9ca3af;
    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;
    }

    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .line-breaker-tool-section {
        padding: 28px 20px;
        margin: 0 15px 30px;
        border-radius: 20px;
    }

    .spacing-buttons,
    .spacing-types-container {
        gap: 8px;
    }

    .spacing-btn {
        padding: 10px 16px;
        min-width: auto;
        font-size: 12px;
    }

    .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) {
    .line-breaker-textarea {
        font-size: 14px;
        padding: 14px;
        min-height: 160px;
    }

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

    .presets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .preset-card {
        padding: 18px 12px 16px;
        border-radius: 16px;
    }

    .preset-card .preset-icon {
        font-size: 32px;
        margin-bottom: 6px;
        height: 40px;
    }

    .preset-card .preset-title {
        font-size: 10px;
    }
}

/* Usage Counter */
.usage-counter-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
}

.usage-counter-wrapper i {
    font-size: 12px;
}

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

/* 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: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.share-modal.visible .share-modal-content {
    transform: translateY(0);
}

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

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

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

.share-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.share-modal-icon i {
    font-size: 32px;
    color: #92400e;
}

.share-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.share-modal-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 8px;
}

.share-modal-subtext {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin: 0 0 28px;
}

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

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

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

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

.share-btn-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8ed9 100%);
}

.share-btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.share-btn-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005a8c 100%);
}

.share-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.share-btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

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

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

.share-modal-footer a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.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: 16px 28px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 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: 20px;
}

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

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

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

    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .share-btn span {
        display: none;
    }

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