/* Main Container Styles */
.text-replacer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section Styles */
.text-replacer-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-replacer-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.text-replacer-hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.text-replacer-hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.text-replacer-hero-shapes .shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.text-replacer-hero-shapes .shape-2 {
    position: absolute;
    bottom: -30px;
    right: 100px;
    width: 150px;
    height: 150px;
    border-radius: 30px;
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.1);
}

.text-replacer-hero-shapes .shape-3 {
    position: absolute;
    top: 50%;
    right: 300px;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    transform: rotate(15deg);
    background: rgba(255, 255, 255, 0.1);
}

/* Tool Section Styles */
.text-replacer-tool {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.text-replacer-input-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.text-replacer-input-group {
    margin-bottom: 20px;
}

.text-replacer-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.text-replacer-input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.text-replacer-input-group textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.text-replacer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.text-replacer-find-replace {
    flex: 1;
    min-width: 250px;
}

.text-replacer-control-group {
    margin-bottom: 15px;
}

.text-replacer-control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.text-replacer-control-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.text-replacer-control-group input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.text-replacer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.text-replacer-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-replacer-option input {
    width: 18px;
    height: 18px;
    accent-color: #6e8efb;
}

.text-replacer-option label {
    font-size: 0.95rem;
    color: #555;
}

.text-replacer-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.text-replacer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.text-replacer-button:active {
    transform: translateY(0);
}

.copy-button {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

/* Output Section Styles */
.text-replacer-output-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.text-replacer-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.text-replacer-output-header h3 {
    font-size: 1.3rem;
    color: #555;
}

.text-replacer-output-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    background: #f9f9f9;
    color: #333;
}

.text-replacer-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.text-replacer-stat {
    background: #f0f4ff;
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}

.text-replacer-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6e8efb;
    margin-bottom: 5px;
}

.text-replacer-stat .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Info Boxes Styles */
.text-replacer-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.text-replacer-info-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.text-replacer-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.text-replacer-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #6e8efb, #a777e3);
}

.text-replacer-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #444;
}

.text-replacer-info-box p {
    color: #666;
    line-height: 1.6;
}

.info-box-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

/* Content Section Styles */
.text-replacer-content {
    margin-bottom: 50px;
}

.text-replacer-content-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.text-replacer-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
}

.text-replacer-content-paragraph {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.text-replacer-feature-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin: 40px 0;
}

.feature-highlight-content {
    flex: 1;
    min-width: 300px;
}

.feature-highlight-content h3 {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 15px;
}

.feature-highlight-content p {
    color: #666;
    line-height: 1.7;
}

.feature-highlight-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.animated-text-replacement {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #6e8efb;
    padding: 20px 30px;
    border-radius: 10px;
    background: rgba(110, 142, 251, 0.1);
    animation: pulse 2s infinite;
}

.animated-text-replacement .find-text {
    color: #ff6b6b;
    position: relative;
}

.animated-text-replacement .find-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6b6b;
    transform: scaleX(0);
    transform-origin: right;
    animation: underlineFind 3s infinite;
}

.animated-text-replacement .arrow {
    color: #a777e3;
}

.animated-text-replacement .replace-text {
    color: #4CAF50;
    position: relative;
}

.animated-text-replacement .replace-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4CAF50;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReplace 3s infinite 1.5s;
}

@keyframes underlineFind {
    0%, 50% {
        transform: scaleX(0);
        transform-origin: right;
    }
    60%, 100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes underlineReplace {
    0%, 50% {
        transform: scaleX(0);
        transform-origin: right;
    }
    60%, 100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.text-replacer-subtitle {
    font-size: 1.4rem;
    color: #444;
    margin: 30px 0 15px;
}

.text-replacer-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.text-replacer-features-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.feature-bullet {
    position: absolute;
    left: 0;
    color: #6e8efb;
    font-weight: bold;
}

.text-replacer-related-tool {
    background: #f0f4ff;
    padding: 20px 25px;
    border-radius: 10px;
    margin-top: 40px;
}

.text-replacer-related-tool h3 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 10px;
}

.related-tool-link {
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.related-tool-link:hover {
    color: #a777e3;
    text-decoration: underline;
}

/* FAQ Section Styles */
.text-replacer-faq {
    margin-bottom: 50px;
}

.text-replacer-faq-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.text-replacer-faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
}

.text-replacer-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.text-replacer-faq-question {
    width: 100%;
    padding: 18px 25px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.text-replacer-faq-question:hover {
    background: #f9f9f9;
}

.text-replacer-faq-question .faq-icon {
    transition: transform 0.3s;
}

.text-replacer-faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.text-replacer-faq-answer {
    background: white;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.text-replacer-faq-answer p {
    padding: 0 0 20px;
    color: #666;
    line-height: 1.7;
}

.text-replacer-faq-item.active .text-replacer-faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .text-replacer-hero-content h1 {
        font-size: 2rem;
    }
    
    .text-replacer-controls {
        flex-direction: column;
    }
    
    .text-replacer-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .text-replacer-feature-highlight {
        flex-direction: column;
    }
    
    .feature-highlight-content {
        order: 1;
    }
    
    .feature-highlight-image {
        order: 2;
    }
}

@media (max-width: 480px) {
    .text-replacer-hero {
        padding: 30px 20px;
    }
    
    .text-replacer-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .text-replacer-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .text-replacer-stat {
        min-width: auto;
    }
}