/* --- Word Counter Wrapper --- */
#wc-wrapper {
    font-family: 'Press Start 2P', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #111827;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151;
    color: white;
}

/* --- Stats Grid --- */
.wc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .wc-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wc-stat-card {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.wc-stat-card:hover {
    transform: translateY(-2px);
    border-color: #00FFFF;
}

.wc-stat-value {
    font-size: 1.5rem;
    color: #00FFFF; /* Glitch Cyan */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
    margin-bottom: 5px;
    line-height: 1;
}

.wc-stat-label {
    font-size: 0.6rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* --- Text Input Area --- */
.wc-input-container {
    width: 100%;
    position: relative;
    background-color: #1f2937;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #374151;
}

.wc-textarea {
    width: 100%;
    min-height: 300px;
    background-color: #050505;
    color: #d1d5db;
    border: 1px solid #333;
    padding: 15px;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 6px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.wc-textarea:focus {
    border-color: #00FFFF;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.wc-textarea::placeholder {
    color: #4b5563;
    opacity: 0.8;
}

/* --- Controls / Toolbar --- */
.wc-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.wc-btn {
    padding: 8px 16px;
    font-family: inherit; /* Press Start 2P */
    font-size: 0.6rem;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    background-color: #374151;
    color: #e5e7eb;
    border-bottom: 3px solid #1f2937;
}

.wc-btn:hover {
    background-color: #4b5563;
    color: white;
}

.wc-btn:active {
    transform: translateY(3px);
    border-bottom: none;
    margin-top: 3px;
}

.wc-btn.clear {
    background-color: #7f1d1d;
    border-color: #450a0a;
    color: #fca5a5;
}
.wc-btn.clear:hover { background-color: #991b1b; color: white; }

.wc-btn.copy {
    background-color: #064e3b;
    border-color: #065f46;
    color: #6ee7b7;
}
.wc-btn.copy:hover { background-color: #047857; color: white; }