/* Main Container Styles */
.repeat-text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section Styles */
.repeat-text-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.repeat-text-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.repeat-text-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.repeat-text-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.repeat-text-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.repeat-text-shape-1, 
.repeat-text-shape-2, 
.repeat-text-shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.repeat-text-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.repeat-text-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.repeat-text-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
}

/* Tool Section Styles */
.repeat-text-tool-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.repeat-text-input-area {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.repeat-text-input-group {
    margin-bottom: 1.5rem;
}

.repeat-text-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.repeat-text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.repeat-text-input:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.repeat-text-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.repeat-text-setting-group {
    margin-bottom: 1rem;
}

.repeat-text-number-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.repeat-text-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

.repeat-text-custom-separator {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.repeat-text-generate-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    align-self: flex-end;
    grid-column: 1 / -1;
}

.repeat-text-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.repeat-text-output-area {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.repeat-text-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.repeat-text-output-header h3 {
    margin: 0;
    color: #444;
}

.repeat-text-output-actions {
    display: flex;
    gap: 0.5rem;
}

.repeat-text-copy-btn,
.repeat-text-download-btn,
.repeat-text-clear-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.repeat-text-copy-btn {
    background-color: #6e8efb;
    color: white;
}

.repeat-text-download-btn {
    background-color: #4caf50;
    color: white;
}

.repeat-text-clear-btn {
    background-color: #f44336;
    color: white;
}

.repeat-text-copy-btn:hover {
    background-color: #5a7de3;
}

.repeat-text-download-btn:hover {
    background-color: #3d8b40;
}

.repeat-text-clear-btn:hover {
    background-color: #d32f2f;
}

.repeat-text-output {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    background-color: #f9f9f9;
}

.repeat-text-character-count {
    text-align: right;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Info Section Styles */
.repeat-text-info-section {
    margin-bottom: 3rem;
}

.repeat-text-info-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: #444;
    font-size: 2rem;
    position: relative;
}

.repeat-text-info-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.repeat-text-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.repeat-text-info-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.repeat-text-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.repeat-text-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.repeat-text-info-box h3 {
    margin: 1rem 0;
    color: #444;
}

.repeat-text-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section Styles */
.repeat-text-content-section {
    position: relative;
    margin-bottom: 3rem;
}

.repeat-text-content-decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.05), rgba(167, 119, 227, 0.05));
    border-radius: 12px;
    z-index: -1;
}

.repeat-text-content-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: #444;
    font-size: 2rem;
    position: relative;
}

.repeat-text-content-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.repeat-text-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.repeat-text-content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.repeat-text-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.repeat-text-content-card h3 {
    color: #444;
    margin-top: 0;
}

.repeat-text-content-card p {
    color: #666;
    line-height: 1.6;
}

.repeat-text-content-tip {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.repeat-text-content-tip p {
    margin: 0;
    color: #666;
}

.repeat-text-internal-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.repeat-text-internal-link:hover {
    text-decoration: underline;
}

/* FAQ Section Styles */
.repeat-text-faq-section {
    margin-bottom: 3rem;
}

.repeat-text-faq-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: #444;
    font-size: 2rem;
    position: relative;
}

.repeat-text-faq-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.repeat-text-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.repeat-text-faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repeat-text-faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.repeat-text-faq-question:hover {
    background-color: #f5f5f5;
}

.repeat-text-faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.repeat-text-faq-question.active .repeat-text-faq-icon {
    transform: rotate(45deg);
}

.repeat-text-faq-answer {
    padding: 0 1.5rem;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.repeat-text-faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.repeat-text-faq-item.active .repeat-text-faq-answer {
    max-height: 500px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .repeat-text-hero h1 {
        font-size: 2rem;
    }
    
    .repeat-text-subtitle {
        font-size: 1rem;
    }
    
    .repeat-text-settings {
        grid-template-columns: 1fr;
    }
    
    .repeat-text-generate-btn {
        width: 100%;
    }
    
    .repeat-text-output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .repeat-text-output-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .repeat-text-hero {
        padding: 2rem 1rem;
    }
    
    .repeat-text-input-area,
    .repeat-text-output-area {
        padding: 1.5rem;
    }
    
    .repeat-text-info-boxes,
    .repeat-text-content-grid {
        grid-template-columns: 1fr;
    }
    
    .repeat-text-faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
}