/* Word Frequency Counter Tool Styles */
.word-frequency-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.word-frequency-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.word-frequency-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.word-frequency-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.word-frequency-tool {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.word-frequency-input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.word-frequency-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.word-frequency-textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.word-frequency-controls {
    display: flex;
    gap: 10px;
}

.word-frequency-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.analyze-btn {
    background-color: #4CAF50;
    color: white;
}

.analyze-btn:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

.clear-btn {
    background-color: #f44336;
    color: white;
}

.clear-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

.word-frequency-results-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.word-frequency-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.word-frequency-stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    flex: 1;
}

.word-frequency-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6e8efb;
    display: block;
    margin-bottom: 5px;
}

.word-frequency-stat-label {
    font-size: 0.9rem;
    color: #666;
}

.word-frequency-output-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.word-frequency-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.word-frequency-output-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.word-frequency-copy-btn {
    padding: 8px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.word-frequency-copy-btn:hover {
    background-color: #0b7dda;
}

.word-frequency-results {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.word-frequency-placeholder {
    color: #999;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.word-frequency-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.word-frequency-result-word {
    font-weight: 600;
}

.word-frequency-result-count {
    color: #6e8efb;
    font-weight: 600;
}

.word-frequency-info-section {
    margin: 60px 0;
}

.word-frequency-section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #444;
    position: relative;
}

.word-frequency-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    margin: 15px auto 0;
    border-radius: 2px;
}

.word-frequency-info-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.word-frequency-info-box {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.word-frequency-info-box:hover {
    transform: translateY(-10px);
}

.word-frequency-info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #6e8efb;
}

.word-frequency-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.word-frequency-info-box p {
    color: #666;
    line-height: 1.6;
}

.word-frequency-details {
    margin: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 40px;
    border-radius: 10px;
}

.word-frequency-detail-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.word-frequency-detail-text {
    flex: 2;
}

.word-frequency-detail-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.word-frequency-detail-image {
    flex: 1;
}

.word-frequency-visual {
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect x="20" y="80" width="20" height="120" fill="%236e8efb" opacity="0.7"/><rect x="60" y="40" width="20" height="160" fill="%236e8efb" opacity="0.8"/><rect x="100" y="20" width="20" height="180" fill="%236e8efb" opacity="0.9"/><rect x="140" y="60" width="20" height="140" fill="%236e8efb" opacity="0.7"/><rect x="180" y="100" width="20" height="100" fill="%236e8efb" opacity="0.6"/></svg>') center/contain no-repeat;
}

.word-frequency-faq {
    margin: 60px 0;
}

.word-frequency-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.word-frequency-accordion-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.word-frequency-accordion-btn {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.word-frequency-accordion-btn:hover {
    background: #f9f9f9;
}

.word-frequency-accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.word-frequency-accordion-btn.active .word-frequency-accordion-icon {
    transform: rotate(45deg);
}

.word-frequency-accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: white;
}

.word-frequency-accordion-content.show {
    padding: 20px;
    max-height: 500px;
}

.word-frequency-accordion-content p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.word-frequency-related {
    margin: 60px 0;
}

.word-frequency-related-tools {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.word-frequency-related-tool {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.word-frequency-related-tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.word-frequency-related-tool h3 {
    color: #6e8efb;
    margin-bottom: 10px;
}

.word-frequency-related-tool p {
    color: #666;
    line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 768px) {
    .word-frequency-hero h1 {
        font-size: 2rem;
    }
    
    .word-frequency-detail-content {
        flex-direction: column;
    }
    
    .word-frequency-info-box {
        min-width: 100%;
    }
    
    .word-frequency-stats {
        flex-direction: column;
    }
    
    .word-frequency-stat-box {
        width: 100%;
    }
}