/* ============================================
   TEXT TO PROMPT PAGE STYLES — TOOL SPECIFIC
   ============================================ */

.text-prompt-page {
    background: #020408;
}

/* Ensure the hero container from home is centered correctly */
.text-prompt-page .hero {
    text-align: center;
}

.text-prompt-page .hero-title {
    animation: fadeInUp 0.8s ease 0.1s both;
}

.text-prompt-page .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Studio UI - Specific for Text-to-Prompt */
/* Overriding or complementing studio styles from style.css */

.text-prompt-page .studio-container {
    background: rgba(18, 22, 33, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.studio-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    height: 520px;
    /* Fixed height to allow internal scrolling */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s ease;
}

.panel-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.panel-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Ensure content starts from top for scrolling */
    overflow-y: auto;
    position: relative;
    /* For scan-line positioning */
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 92, 252, 0.3) transparent;
}

.panel-body::-webkit-scrollbar {
    width: 6px;
}

.panel-body::-webkit-scrollbar-thumb {
    background: rgba(124, 92, 252, 0.3);
    border-radius: 10px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-1);
}

.panel-footer {
    padding: 20px 24px 24px;
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.panel-footer.result-footer {
    padding: 18px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-studio {
    margin-top: 0 !important;
    height: 54px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(124, 92, 252, 0.2);
}

.btn-studio:not(:disabled):hover {
    box-shadow: 0 0 25px rgba(124, 92, 252, 0.4);
    transform: translateY(-2px);
}

.input-container {
    position: relative;
    flex-shrink: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.prompt-textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.6;
    resize: none;
    transition: all 0.3s ease;
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 24px rgba(124, 92, 252, 0.15);
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 10px;
}

.suggestion-chips {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(124, 92, 252, 0.15);
    color: #fff;
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

/* Result Design - Specific for Prompt Expansion */
.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    opacity: 0.3;
}

.result-prompt-wrapper {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
}

.result-prompt {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
}

.result-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.platform-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-result-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-result-action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-2);
    transform: translateY(-2px);
}

.btn-result-action i {
    font-size: 1rem;
    color: var(--accent-2);
}

/* Features Cards */
.feature-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: block;
}

.feature-card h4 {
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Loader Styles */
.btn-loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations from Home */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .studio-container {
        grid-template-columns: 1fr;
    }
}

/* how-to-section specific styles */
.how-to-section {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.how-to-section::before,
.how-to-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

.how-to-section::before {
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    top: -20%;
    right: -10%;
    animation: drift-1 15s infinite alternate ease-in-out;
}

.how-to-section::after {
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -20%;
    left: -10%;
    animation: drift-2 20s infinite alternate ease-in-out;
}

@keyframes drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.08;
        filter: blur(120px) hue-rotate(0deg);
    }

    50% {
        transform: translate(-10%, 15%) scale(1.1);
        opacity: 0.15;
        filter: blur(120px) hue-rotate(45deg);
    }

    100% {
        transform: translate(-20%, 5%) scale(1);
        opacity: 0.08;
        filter: blur(120px) hue-rotate(90deg);
    }
}

@keyframes drift-2 {
    0% {
        transform: translate(0, 0) scale(1.1);
        opacity: 0.05;
        filter: blur(120px) hue-rotate(0deg);
    }

    50% {
        transform: translate(15%, -10%) scale(1);
        opacity: 0.12;
        filter: blur(120px) hue-rotate(-45deg);
    }

    100% {
        transform: translate(5%, -20%) scale(1.1);
        opacity: 0.05;
        filter: blur(120px) hue-rotate(-90deg);
    }
}

.how-to-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: var(--accent-gradient);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.how-to-img {
    margin-top: 48px;
    display: block;
    max-width: 1000px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   TRANSLATION-STYLE COMPARISONS
   ============================================ */
.example-item {
    margin-bottom: 60px;
}

.example-title-seo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 32px;
    padding: 24px !important;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.comparison-layout {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: stretch;
    gap: 0;
}

.comp-area {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-area {
    background: rgba(18, 22, 33, 0.3);
}

.output-area {
    background: rgba(124, 92, 252, 0.02);
    border-color: rgba(124, 92, 252, 0.1);
}

.area-header {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-label i {
    color: var(--accent-1);
}

.area-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.raw-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.enhanced-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 0;
}

.copy-btn-sm {
    margin-top: 20px;
    background: rgba(124, 92, 252, 0.08);
    border: 1px solid rgba(124, 92, 252, 0.2);
    color: var(--accent-1);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.copy-btn-sm:hover {
    background: var(--accent-1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 92, 252, 0.2);
}

.area-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 0.65rem;
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Arrow Box */
.comp-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.animate-arrow {
    animation: slideRight 2s infinite ease-in-out;
}

@keyframes slideRight {
    0% {
        transform: translateX(-10px);
        opacity: 0.3;
    }

    50% {
        transform: translateX(10px);
        opacity: 1;
    }

    100% {
        transform: translateX(-10px);
        opacity: 0.3;
    }
}

@media (max-width: 992px) {
    .comparison-layout {
        grid-template-columns: 1fr;
    }

    .comp-arrow-box {
        height: 60px;
        transform: rotate(90deg);
    }

    @keyframes slideRight {
        0% {
            transform: translateY(-10px) rotate(90deg);
            opacity: 0.3;
        }

        50% {
            transform: translateY(10px) rotate(90deg);
            opacity: 1;
        }

        100% {
            transform: translateY(-10px) rotate(90deg);
            opacity: 0.3;
        }
    }
}

@media (max-width: 768px) {
    .example-item {
        margin-bottom: 50px;
    }

    .example-title-seo {
        font-size: 1.25rem;
        padding-left: 0;
        margin-bottom: 24px;
    }
}

/* FAQ Section Styles — Always Visible */
.faq-section {
    background: rgba(18, 22, 33, 0.2);
    position: relative;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px 32px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(124, 92, 252, 0.25);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.faq-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-card-title::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: rgba(124, 92, 252, 0.15);
    border: 1px solid rgba(124, 92, 252, 0.3);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-1);
    margin-top: 2px;
}

.faq-card-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    padding-left: 38px;
    /* aligned under the title text */
}

@media (max-width: 768px) {
    .faq-item {
        padding: 24px 24px;
    }

    .faq-card-title {
        font-size: 1rem;
    }

    .faq-card-answer {
        padding-left: 0;
    }
}