/* Word Counter & Read Time Calculator - Main Styles */
.wcrc-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.wcrc-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wcrc-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcrc-header h3 i {
    font-size: 1.2em;
}

.wcrc-input-section {
    padding: 25px 30px;
    background: #f8fafc;
}

.wcrc-text-input {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.wcrc-text-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.wcrc-text-input::placeholder {
    color: #94a3b8;
}

.wcrc-input-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.wcrc-clear-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wcrc-clear-btn:hover {
    background: #feb2b2;
    transform: translateY(-1px);
}

.wcrc-clear-btn:active {
    transform: translateY(0);
}

.wcrc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px 30px;
    background: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.wcrc-result-box {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.wcrc-result-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wcrc-result-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.wcrc-result-content {
    flex: 1;
}

.wcrc-result-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcrc-result-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

#wcrc-word-count {
    color: #3182ce;
}

#wcrc-char-count {
    color: #38a169;
}

#wcrc-read-time {
    color: #d69e2e;
}

.wcrc-info {
    padding: 15px 30px;
    background: #f0fff4;
    color: #276749;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #c6f6d5;
}

.wcrc-info i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcrc-results {
        grid-template-columns: 1fr;
    }
    
    .wcrc-container {
        margin: 15px;
    }
    
    .wcrc-header, 
    .wcrc-input-section,
    .wcrc-results,
    .wcrc-info {
        padding: 20px;
    }
    
    .wcrc-result-value {
        font-size: 24px;
    }
}

/* Loading Animation */
.wcrc-loading {
    position: relative;
    color: transparent !important;
}

.wcrc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #4299e1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wcrc-spin 0.6s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes wcrc-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}