/* 글자수 세기 전용 스타일 */

.counter-textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: inherit;
}

.textarea-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.limit-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.limit-wrapper label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.limit-input {
    width: 100px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.counter-stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.15s;
}

.counter-stat:hover {
    transform: translateY(-2px);
}

.counter-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pastel-blue-1);
    line-height: 1;
    margin-bottom: 0.4rem;
    transition: all 0.2s;
}

.counter-value.pulse {
    transform: scale(1.05);
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 글자수 제한 표시 바 */
.limit-indicator {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.limit-bar-wrapper {
    background: var(--glass-border);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.limit-bar {
    height: 100%;
    border-radius: 6px;
    background: var(--pastel-blue-1);
    transition: width 0.3s, background-color 0.3s;
    max-width: 100%;
}

.limit-bar.warning {
    background: #E8A080;
}

.limit-bar.exceeded {
    background: #c0392b;
}

.limit-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: right;
}

.limit-text.exceeded {
    color: #c0392b;
    font-weight: 600;
}

/* SNS 제한 테이블 */
.limits-table-wrapper {
    overflow-x: auto;
}

.limits-table {
    width: 100%;
}

.limits-table .current-col {
    font-weight: 600;
    color: var(--pastel-blue-1);
    text-align: center;
}

.limits-table .status-col {
    text-align: center;
}

.status-ok {
    background: rgba(52, 168, 83, 0.12);
    color: #2d7d32;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-warn {
    background: rgba(251, 188, 4, 0.15);
    color: #b45309;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-over {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .textarea-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .limit-wrapper {
        margin-left: 0;
    }
}
