/* Post Formatter Tools CSS */

/* Main tool section */
.post-formatter-tool-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.04);
    max-width: 1100px;
    margin: 0 auto 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Section titles */
.post-formatter-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Account type section (Twitter Free vs Premium) */
.account-type-section {
    margin-bottom: 32px;
    text-align: center;
}

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

.account-type-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.account-type-btn {
    position: relative;
    padding: 12px 24px;
    border: 2px solid #e0e7ff;
    border-radius: 50px;
    background: #ffffff;
    color: #6366f1;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.account-type-btn:hover {
    border-color: #a5b4fc;
    background: #faf5ff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), 0 2px 4px rgba(99, 102, 241, 0.1);
}

.account-type-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3), 0 2px 4px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.account-type-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Post type section */
.post-type-section {
    margin-bottom: 32px;
    text-align: center;
}

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

/* Post type buttons */
.post-type-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.post-type-btn {
    position: relative;
    padding: 12px 24px;
    border: 2px solid #e0e7ff;
    border-radius: 50px;
    background: #ffffff;
    color: #6366f1;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-type-btn:hover {
    border-color: #a5b4fc;
    background: #faf5ff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), 0 2px 4px rgba(99, 102, 241, 0.1);
}

.post-type-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3), 0 2px 4px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.post-type-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Category section (for Pinterest) */
.category-section {
    margin-bottom: 32px;
    text-align: center;
}

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

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #dbeafe;
    border-radius: 24px;
    background: #ffffff;
    color: #1e40af;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.category-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3), 0 2px 4px rgba(59, 130, 246, 0.2);
}

.category-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Text formatting toolbar */
.formatting-section,
.formatting-toolbar-section {
    margin-bottom: 32px;
    text-align: center;
}

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

.formatting-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.format-btn {
    padding: 10px 18px;
    border: 2px solid #fce7f3;
    border-radius: 12px;
    background: #ffffff;
    color: #be123c;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.format-btn:hover {
    border-color: #fda4af;
    background: #fff1f2;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
}

.format-btn.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3), 0 2px 4px rgba(244, 63, 94, 0.2);
}

.format-btn:focus {
    outline: 2px solid #f43f5e;
    outline-offset: 2px;
}

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

/* Quick templates section */
.templates-section {
    margin-bottom: 36px;
}

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

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

.template-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.template-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: transparent;
}

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

.template-card:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.template-card .template-icon {
    display: none;
}

.template-card .template-title {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
}

.template-card .template-preview {
    display: none;
}

/* Template card color accents */
.template-card[data-template="product-launch"]::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.template-card[data-template="behind-scenes"]::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.template-card[data-template="motivational"]::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.template-card[data-template="user-generated"]::before { background: linear-gradient(90deg, #10b981, #34d399); }
.template-card[data-template="tutorial"]::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.template-card[data-template="throwback"]::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.template-card[data-template="question"]::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.template-card[data-template="gratitude"]::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.template-card[data-template="product-launch"]:hover { box-shadow: 0 20px 50px rgba(245, 158, 11, 0.2); }
.template-card[data-template="behind-scenes"]:hover { box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2); }
.template-card[data-template="motivational"]:hover { box-shadow: 0 20px 50px rgba(236, 72, 153, 0.2); }
.template-card[data-template="user-generated"]:hover { box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2); }
.template-card[data-template="tutorial"]:hover { box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2); }
.template-card[data-template="throwback"]:hover { box-shadow: 0 20px 50px rgba(249, 115, 22, 0.2); }
.template-card[data-template="question"]:hover { box-shadow: 0 20px 50px rgba(6, 182, 212, 0.2); }
.template-card[data-template="gratitude"]:hover { box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2); }

/* Hashtag categories section */
.hashtags-section {
    margin-bottom: 32px;
}

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

.hashtag-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hashtag-category-btn {
    padding: 9px 18px;
    border: 2px solid #d1fae5;
    border-radius: 24px;
    background: #ffffff;
    color: #059669;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hashtag-category-btn:hover {
    border-color: #6ee7b7;
    background: #f0fdf4;
    color: #059669;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.hashtag-category-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3), 0 2px 4px rgba(16, 185, 129, 0.2);
}

.hashtag-category-btn.active:hover {
    background: linear-gradient(135deg, #0da574 0%, #047857 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.hashtag-category-btn:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.hashtag-category-btn i {
    font-size: 12px;
}

/* Hashtag input area */
.hashtag-input-container {
    max-width: 600px;
    margin: 0 auto;
}

.hashtag-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hashtag-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(16, 185, 129, 0.08);
    background: #ffffff;
}

.hashtag-count {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

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

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

/* 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-label {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
}

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

/* Textarea styles */
.post-formatter-textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
    line-height: 1.7;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.post-formatter-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), 0 4px 12px rgba(99, 102, 241, 0.08);
    background: #ffffff;
}

.post-formatter-textarea.output-textarea {
    background: #fafbfc;
    border-color: #f3f4f6;
}

.post-formatter-textarea.output-textarea:focus {
    background: #ffffff;
    border-color: #6366f1;
}

/* Character count */
.char-count-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

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

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

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

.word-count {
    font-size: 12px;
    color: #9ca3af;
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 20px;
    border: none;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.action-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

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

.action-btn.small:hover {
    background: #faf5ff;
    border-color: #c4b5fd;
    color: #6366f1;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.1);
}

.action-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px) scale(1.02);
}

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

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

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

.action-btn.clear-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.1);
}

.action-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.action-btn.copy-btn:focus {
    outline-color: #10b981;
}

.action-btn.clear-btn:focus {
    outline-color: #dc2626;
}

/* 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;
}

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

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25), 0 2px 4px rgba(99, 102, 241, 0.15);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35), 0 4px 8px rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%);
}

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

.post-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25), 0 2px 4px rgba(236, 72, 153, 0.15);
    text-decoration: none;
}

.post-social-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35), 0 4px 8px rgba(236, 72, 153, 0.2);
    background: linear-gradient(135deg, #e23d8c 0%, #be185d 100%);
    color: #fff;
}

.download-btn:focus,
.post-social-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Copy success message */
.copy-success-message {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.2);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* 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;
}

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

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

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

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

#post-formatter-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;
}

/* Share Modal (reuse from line-breaker) */
.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: #6366f1;
    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, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 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 styles */
@media (max-width: 1024px) {
    .templates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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

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

    .account-type-toggle {
        gap: 8px;
        flex-direction: column;
    }

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

    .post-type-buttons {
        gap: 8px;
    }

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

    .category-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .formatting-toolbar {
        gap: 6px;
    }

    .format-btn {
        padding: 8px 12px;
        min-width: 60px;
        font-size: 12px;
    }

    .hashtag-categories {
        gap: 8px;
    }

    .hashtag-category-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .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-section {
        flex-direction: column;
        align-items: center;
    }

    .download-btn,
    .post-social-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .post-formatter-textarea {
        font-size: 14px;
        padding: 14px;
        min-height: 160px;
    }

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

    .templates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .template-card {
        padding: 8px 6px;
        border-radius: 10px;
    }

    .template-card .template-title {
        font-size: 9px;
    }

    .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;
    }
}
