/* 콘텐츠 액션바 공용 스타일 + 인쇄 제네릭 규칙.
   라이트/다크 모두 대응(중립색 + 다크 오버라이드). */

.content-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #777;
}

.content-actions__group {
    position: relative;
}

.content-actions__btn {
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.content-actions__btn:hover:not(:disabled) {
    background: #e9ecef;
}

.content-actions__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.content-actions__popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.content-actions__popover[hidden] {
    display: none;
}

.content-actions__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
}

.content-actions__item:hover {
    background: #f1f3f5;
}

.content-actions__item.is-copied {
    color: #16a34a;
}

.content-actions__popover--font {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.content-actions__fontbtn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    min-width: 34px;
    height: 32px;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
}

.content-actions__fontbtn:hover:not(:disabled) {
    background: #f1f3f5;
}

.content-actions__fontbtn:disabled {
    opacity: 0.35;
    cursor: default;
}

.content-actions__fontlevel {
    font-size: 0.8rem;
    color: #888;
    padding: 0 4px;
    min-width: 50px;
    text-align: center;
}

/* 다크 테마: 프로젝트가 body[data-theme='light'] 아닌 상태를 다크로 취급 */
body:not([data-theme='light']) .content-actions__btn {
    background: #2a2f36;
}
body:not([data-theme='light']) .content-actions__btn:hover:not(:disabled) {
    background: #363c45;
}
body:not([data-theme='light']) .content-actions__popover {
    background: #1f242b;
    border-color: #363c45;
}
body:not([data-theme='light']) .content-actions__item {
    color: #e5e7eb;
}
body:not([data-theme='light']) .content-actions__item:hover {
    background: #2a2f36;
}
body:not([data-theme='light']) .content-actions__fontbtn {
    background: #1f242b;
    border-color: #363c45;
    color: #e5e7eb;
}
body:not([data-theme='light']) .content-actions__fontbtn:hover:not(:disabled) {
    background: #2a2f36;
}

/* 인쇄 제네릭 규칙 — 무엇을 숨길지는 사용 페이지가 .no-print 로 지정 */
@media print {
    .no-print { display: none !important; }
    .print-full {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
