/* ═══════════════════════════════════════════════════════════════════════════
   Character Counter — Tool-Specific Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* Stats bar — 4 columns */
.fu-cc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fu-cc-stats .fu-stat {
    padding: 0.875rem 0.5rem;
    transition: transform var(--fu-transition), box-shadow var(--fu-transition);
}

.fu-cc-stats .fu-stat:hover {
    transform: translateY(-1px);
    box-shadow: var(--fu-shadow-md);
}

/* Textarea */
#fu-cc-input {
    min-height: 200px;
    line-height: 1.8;
    font-size: 1rem;
}

/* ─── Platform Limits Panel ───────────────────────────────────────────────── */
.fu-cc-limits-panel {
    margin-top: 0.25rem;
}

.fu-cc-limits {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 0.5rem;
}

.fu-cc-limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.fu-cc-limit-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fu-text);
}

.fu-cc-limit-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fu-text-muted);
    font-variant-numeric: tabular-nums;
}

.fu-cc-limit-bar {
    width: 100%;
    height: 6px;
    background: var(--fu-bg);
    border-radius: 3px;
    overflow: hidden;
}

.fu-cc-limit-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--fu-accent);
    transition: width 0.15s ease, background-color 0.2s ease;
}

/* Color states */
.fu-cc-limit.fu-cc-warn .fu-cc-limit-fill {
    background: var(--fu-warning);
}

.fu-cc-limit.fu-cc-over .fu-cc-limit-fill {
    background: var(--fu-danger);
}

.fu-cc-limit.fu-cc-over .fu-cc-limit-count {
    color: var(--fu-danger);
    font-weight: 600;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .fu-cc-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    #fu-cc-input {
        min-height: 160px;
        font-size: 0.95rem;
    }
}
