/* 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;
    transition: all 0.3s ease;
}

.word-counter-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.word-counter-input-container {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.word-counter-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.word-counter-textarea:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.word-counter-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.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: 25px 20px;
    border-right: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item:last-child {
    border-right: none;
}

.result-item:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.result-content {
    display: flex;
    flex-direction: column;
}

.result-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .word-counter-results {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .result-item:last-child {
        border-bottom: none;
    }
    
    .word-counter-input-container {
        padding: 20px 15px;
    }
    
    .word-counter-textarea {
        padding: 15px;
        font-size: 14px;
    }
}

/* Animation for value changes */
.result-value {
    transition: all 0.3s ease;
}

.result-value.changing {
    transform: scale(1.1);
    color: #667eea;
}

/* Loading state */
.word-counter-widget.loading .result-value {
    opacity: 0.7;
}

/* Success state animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.result-item.updated {
    animation: pulse 0.5s ease;
}