/* Back Button Styles (match other tools) */
.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
}
.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
    color: white;
    text-decoration: none;
}
@media (max-width: 768px) {
    .back-button {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .back-button {
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
}
/* Features Section Styles (match Word Counter) */
.features-section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #ffffff;
}
.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section Styles (match Word Counter) */
.faq {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
}
.faq-header {
    text-align: center;
    margin-bottom: 60px;
}
.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.faq-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}
.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}
.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #4ade80;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}
.faq-answer p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
}
/* Header and breadcrumb centering for Text Reverser */
.text-reverser-header {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.text-reverser-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    opacity: 0.85;
}

.text-reverser-breadcrumb a {
    color: #4ade80;
    text-decoration: none;
    transition: opacity 0.3s;
}
.text-reverser-breadcrumb a:hover {
    opacity: 0.7;
}
.text-reverser-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.text-reverser-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.text-reverser-desc {
    font-size: 1.15rem;
    color: #e0ffe0;
    max-width: 600px;
    margin: 0 auto 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .text-reverser-header {
        padding-top: 48px;
        padding-bottom: 18px;
    }
    .text-reverser-title {
        font-size: 1.4rem;
    }
    .text-reverser-desc {
        font-size: 1rem;
    }
    .text-reverser-breadcrumb {
        font-size: 13px;
        gap: 5px;
    }
}
/* Improved layout and alignment for Text Reverser tool */
.text-reverser-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center {
    text-align: center;
}

.reverser-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.reverser-label {
    font-size: 1rem;
    color: #b0ffb0;
    font-weight: 500;
    margin-bottom: 2px;
    align-self: flex-start;
}

#inputText, #outputText {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', monospace;
    transition: all 0.3s;
    box-sizing: border-box;
}

#inputText:focus, #outputText:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255,255,255,0.08);
}

#outputText[readonly] {
    background: rgba(255,255,255,0.03);
    color: #b0ffb0;
}

.input-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) {
    .text-reverser-card {
        max-width: 100%;
        padding: 18px 6px;
    }
    .reverser-content {
        gap: 12px;
    }
    #inputText, #outputText {
        font-size: 0.95rem;
        padding: 12px;
    }
    .input-controls {
        flex-direction: column;
        gap: 8px;
    }
}
/* Minimal overrides for Text Reverser tool, using main site styles */

/* Ensure card max-width and center alignment for tool */
.card {
    max-width: 600px;
    margin: 0 auto;
}

#inputText, #outputText {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', monospace;
    transition: all 0.3s;
}

#inputText:focus, #outputText:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255,255,255,0.08);
}

#outputText[readonly] {
    background: rgba(255,255,255,0.03);
    color: #b0ffb0;
}

.input-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 768px) {
    .card {
        max-width: 100%;
        border-radius: 12px;
    }
    #inputText, #outputText {
        font-size: 0.95rem;
        padding: 12px;
    }
    .input-controls {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .input-controls button,
    .input-controls .btn {
        width: auto;
        min-width: 140px;
        text-align: center;
    }
}