/* Word Counter Plugin Styles */
.word-counter-widget {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.word-counter-input-container {
    padding: 0;
}

.word-counter-textarea {
    width: 100%;
    padding: 20px;
    border: none;
    border-bottom: 1px solid #e1e5e9;
    resize: vertical;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    background: #fafbfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 200px;
    font-family: inherit;
}

.word-counter-textarea:focus {
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px #3498db;
}

.word-counter-textarea::placeholder {
    color: #95a5a6;
}

.word-counter-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    background: #f8f9fa;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #e1e5e9;
    transition: background-color 0.3s ease;
}

.result-item:hover {
    background: #e8f4fc;
}

.result-item:last-child {
    border-right: none;
}

.result-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-icon i {
    color: white;
    font-size: 20px;
}

.result-content {
    display: flex;
    flex-direction: column;
}

.result-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.word-counter-stats {
    padding: 15px 20px;
    background: #2c3e50;
    text-align: center;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #bdc3c7;
    font-size: 14px;
    font-weight: 500;
}

.stat-value {
    color: #3498db;
    font-size: 14px;
    font-weight: 700;
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .word-counter-results {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .result-item:last-child {
        border-bottom: none;
    }
    
    .result-icon {
        width: 40px;
        height: 40px;
    }
    
    .result-icon i {
        font-size: 16px;
    }
    
    .result-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .word-counter-widget {
        margin: 10px;
        border-radius: 8px;
    }
    
    .word-counter-textarea {
        padding: 15px;
        font-size: 14px;
    }
    
    .result-item {
        padding: 15px;
    }
}

/* Animation for value changes */
.result-value {
    transition: all 0.3s ease;
}

.result-value.changing {
    transform: scale(1.1);
    color: #e74c3c;
}