/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #8a2be2;
    --secondary-color: #ff69b4;
    --background-start: #f9f4ff;
    --background-end: #e6f7ff;
    --text-color: #333;
    --shadow-color: rgba(138, 43, 226, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px 0 rgba(138, 43, 226, 0.1);
    --border-radius: 24px;
    --transition-speed: 0.3s;
}

body {
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Container and Wrapper */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

/* Typography */
.title {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.subsection-title {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.key-feature {
    padding: 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.key-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-text {
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.icon-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    background: white;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.icon-btn i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.paste-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.1);
}

.paste-btn:active {
    transform: translateY(0);
}

.paste-btn.success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border-color: transparent;
    animation: success-pulse 0.5s ease;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.input-container.focused {
    transform: scale(1.01);
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(138, 43, 226, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    transition: all var(--transition-speed);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px var(--shadow-color);
}

textarea::placeholder {
    color: #aaa;
    opacity: 0;
    animation: placeholder-wave 3s infinite;
}

@keyframes placeholder-wave {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Formatting Toolbar */
.formatting-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    justify-content: center;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.format-group {
    display: flex;
    gap: 5px;
}

.format-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.format-btn:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
}

.format-btn:active {
    transform: translateY(0) scale(0.95);
}

.format-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.format-btn i {
    font-size: 1rem;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn i {
    margin-right: 8px;
}

.copy-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    flex: 1;
}

.copy-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 20px var(--shadow-color);
}

.copy-btn:active {
    transform: translateY(0) scale(0.98);
}

.copy-btn.success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    animation: success-pulse 0.5s ease;
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.clear-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #777;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.clear-btn.active {
    background: #f5f5f5;
    transform: scale(0.95);
}

/* Preview Section */
.preview-section {
    margin-bottom: 30px;
}

.preview-container {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    min-height: 100px;
    border: 1px solid rgba(138, 43, 226, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.preview-text {
    white-space: pre-wrap;
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
    font-family: inherit;
}

/* Unicode Font Support for Preview */
.preview-text {
    /* Ensure all browsers can render special Unicode characters */
    font-feature-settings: "kern", "liga", "clig", "calt";
    -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Bold, Italic, etc. Text Styles for Preview */
.preview-text .bold {
    font-weight: bold;
}

.preview-text .italic {
    font-style: italic;
}

.preview-text .monospace {
    font-family: monospace;
}

.preview-text .smallcaps {
    font-variant: small-caps;
}

.preview-text .strikethrough {
    text-decoration: line-through;
}

.preview-text .underline {
    text-decoration: underline;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.info-section p {
    line-height: 1.6;
    color: #666;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.toast.show {
    bottom: 30px;
    animation: toast-bounce 0.5s ease;
}

@keyframes toast-bounce {
    0% {
        transform: translateX(-50%) translateY(10px);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast i {
    margin-right: 10px;
    color: #4CAF50;
}

/* Ad Spaces */
.ad-space-top,
.ad-space-bottom {
    width: 100%;
    max-width: 800px;
    height: 90px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem;
    box-shadow: var(--glass-shadow);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-wrapper {
        padding: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .formatting-toolbar {
        flex-direction: column;
        padding: 10px;
    }

    .format-group {
        justify-content: center;
    }

    .ad-space-top,
    .ad-space-bottom {
        height: 70px;
    }

    .about-section {
        padding: 15px;
    }

    .key-features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .subsection-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .app-wrapper {
        padding: 15px;
    }

    .title {
        font-size: 1.8rem;
    }

    textarea {
        padding: 15px;
    }

    .format-btn {
        width: 35px;
        height: 35px;
    }

    .icon-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .input-header {
        justify-content: center;
    }

    .ad-space-top,
    .ad-space-bottom {
        height: 60px;
    }

    .about-section {
        padding: 12px;
    }

    .section-title {
        font-size: 1.5rem;
        padding-bottom: 10px;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .feature-list li {
        font-size: 0.95rem;
    }

    .key-feature {
        padding: 15px;
    }
}

/* User Section */
.user-section {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.user-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.user-type {
    padding: 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.user-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.12);
}

.user-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.user-icon i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-text {
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.15);
}

.cta-icon i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.cta-text p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    margin-bottom: 0;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(138, 43, 226, 0.03);
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question i.fa-question-circle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    transition: all 0.4s ease;
}

.faq-toggle i {
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: all 0.5s cubic-bezier(0.5, 0, 0.1, 1);
    opacity: 0;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    padding-bottom: 20px;
}

/* FAQ Open State */
.faq-item.active {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.12);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.faq-item.active .faq-toggle {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle i {
    color: white;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding-top: 15px;
}

.faq-question:hover h4 {
    color: var(--primary-color);
}

.faq-question:hover i.fa-question-circle {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .faq-question-content {
        gap: 8px;
    }

    .faq-question i.fa-question-circle {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .faq-item {
        padding: 0;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-question i.fa-question-circle {
        font-size: 1.2rem;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-answer p {
        padding-bottom: 15px;
    }
}

/* SEO Section */
.seo-section {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.seo-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.seo-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.1);
}

.seo-tag i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Responsive Styles for New Sections */
@media (max-width: 768px) {
    .user-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text p {
        font-size: 1rem;
    }

    .faq-question {
        align-items: flex-start;
    }

    .faq-question i {
        margin-top: 3px;
    }
}

@media (max-width: 480px) {
    .user-types-grid {
        grid-template-columns: 1fr;
    }

    .user-type {
        padding: 15px;
    }

    .user-icon {
        width: 50px;
        height: 50px;
    }

    .cta-section {
        padding: 20px;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
    }

    .cta-icon i {
        font-size: 2rem;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .seo-tags {
        gap: 8px;
    }

    .seo-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}