@charset "utf-8";

@scope (.blog-page--keyword-combi) {
:scope {
}

/* features/keyword/combi/index 전용 스타일 */
.input-wrap { margin-bottom: 10px; }
.kw { display: inline-block; padding: 3px 7px; background: var(--rp-surface-alt); color: var(--rp-text); border: 1px solid var(--rp-border); border-radius: var(--rp-radius-sm); margin-right: 5px; }
.kw-remove { color: var(--rp-danger); cursor: pointer; margin-left: 4px;}
.combination-list { margin-top: 15px; max-height: 400px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 4px 7px; border-bottom: 1px solid var(--rp-border); }
.btn { padding: 7px 15px; border-radius: var(--rp-radius-sm); border: none; background: var(--rp-primary); color: var(--rp-on-brand); cursor: pointer; font-size: 14px; font-weight: var(--fw-500); }
.btn-light { background: var(--rp-surface-alt); color: var(--rp-text); border: 1px solid var(--rp-border); }

#comb-list th,
#comb-list td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--rp-border);
}

#comb-list th {
    background-color: var(--rp-surface);
    font-weight: bold;
}

#comb-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

hr{
    opacity: 0.1;
    margin-bottom: 10px;
}

.kw {
    display: inline-block;
    padding: 5px 10px;
    background: var(--rp-surface-alt);
    border-radius: var(--rp-radius-sm);
    margin: 0 5px 5px 0;
    font-size: 14px;
}

.kw-remove {
    color: var(--rp-primary);
    cursor: pointer;
    margin-left: 5px;
    font-weight: bold;
}

.combination-list {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.btn-wrap{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* 키워드 조합: 회색 배경에서 글자·입력 필드 대비 */
.n-gold3-page {
    color: var(--rp-text-muted);
}
.n-gold3-page .gold3-section-title {
    display: block;
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: var(--fw-600, 600);
    color: var(--rp-text-muted);
}
.n-gold3-page .gold3-help {
    margin: 0 0 14px 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--rp-text-muted);
}
/* 전역 .search-container 플렉스 때문에 제목·설명·그리드가 한 줄로 붙는 것 방지 */
.n-gold3-page .gold3-kw-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.n-gold3-page .gold3-kw-intro > .gold3-help {
    display: block;
    width: 100%;
}
.n-gold3-page .kw-textarea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    width: 100%;
}
@media (max-width: 768px) {
    .n-gold3-page .kw-textarea-grid { grid-template-columns: 1fr; }
}
.n-gold3-page .search-group textarea {
    width: 100%;
    height: 110px;
    min-height: 110px;
    max-height: 110px;
    padding: 14px 12px 12px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    resize: none;
    overflow: auto;
    box-sizing: border-box;
    background: var(--rp-surface-alt);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text-muted);
}
.n-gold3-page .search-group textarea::-webkit-resizer {
    display: none;
}
.n-gold3-page .search-group textarea::placeholder {
    color: var(--rp-text-muted);
}
.n-gold3-page .search-group textarea:focus {
    outline: none;
    border-color: var(--rp-border);
    background: var(--rp-surface-alt);
}
.n-gold3-page .search-group label {
    color: var(--rp-text-muted);
}
.n-gold3-page .pattern-block {
    width: 100%;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rp-border);
}
.n-gold3-page .pattern-head {
    margin-bottom: 12px;
}
/* 제목(좌) + 버튼들(우) 한 줄 — 조합 설정 / N개 키워드 조합 공통 */
.n-gold3-page .search-btn-box.gold3-pattern-head-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.n-gold3-page .search-btn-box.gold3-pattern-head-flex > .gold3-section-title {
    margin: 0;
    flex: 0 1 auto;
}
.n-gold3-page .search-btn-box.gold3-pattern-head-flex > .btn.pattern-group-sel-all,
.n-gold3-page .search-btn-box.gold3-pattern-head-flex > .btn#pattern-select-all {
    margin-left: auto;
}
.n-gold3-page .search-btn-box.gold3-pattern-head-flex.pattern-subtitle-row > .gold3-section-title {
    font-size: 14px;
    font-weight: var(--fw-600, 600);
    color: var(--rp-text-muted);
}
.n-gold3-page .pattern-group { margin-bottom: 16px; }
.n-gold3-page .pattern-group:last-child { margin-bottom: 0; }
/* 공통 .btn / .btn-light 가 어두운 영역에서 묻히지 않도록 */
.n-gold3-page .search-btn-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}
.n-gold3-page .btn-light {
    background: var(--rp-surface-alt);
    color: var(--rp-text-muted);
    border: 1px solid var(--rp-border);
}
.n-gold3-page .btn-light:hover:not(:disabled) {
    background: var(--rp-surface-alt);
}
.n-gold3-page .btn-light:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.n-gold3-page .search-btn-box .btn:not(.btn-light) {
    border: none;
}
/* 4개 조합일 때와 동일하게 열 수 고정 (칸 수에 따라 줄만 바뀜) */
.n-gold3-page .pattern-chk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
    margin-top: 14px;
    align-items: start;
}
@media (max-width: 992px) {
    .n-gold3-page .pattern-chk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.n-gold3-page .pattern-chk-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    color: var(--rp-text-muted);
}
/* 사이트 전역 CSS가 체크박스를 숨기는 경우 대비 — 조합 패턴은 반드시 보이게 */
.n-gold3-page .pattern-chk,
.n-gold3-page .pattern-chk-grid input.pattern-chk,
.n-gold3-page .pattern-chk-grid input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    display: inline-block !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    clip: auto !important;
    flex-shrink: 0;
    vertical-align: middle;
    accent-color: var(--red01, var(--rp-danger));
    cursor: pointer;
    box-sizing: border-box;
}

.n-gold3-page #kw-list { color: var(--rp-text-muted); }
.n-gold3-page #kw-list .gold3-kw-group-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: var(--fw-600, 600);
    color: var(--rp-text-muted);
}
.n-gold3-page #kw-list .kw {
    background: var(--rp-surface-alt);
    color: var(--rp-text-muted);
    border: 1px solid var(--rp-border);
}

.n-gold3-page #comb-list input.comb-chk[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    accent-color: var(--red01, var(--rp-danger));
}

.n-gold3-page #comb-list th {
    background-color: var(--rp-surface-alt);
    color: var(--rp-text-muted);
    border-bottom: 1px solid var(--rp-border);
}
.n-gold3-page #comb-list td {
    color: var(--rp-text-muted);
    border-bottom: 1px solid var(--rp-border);
}
.n-gold3-page #comb-list .gold3-empty-msg {
    margin-top: 15px;
    font-weight: var(--fw-600, 600);
    color: var(--rp-text-muted);
    opacity: 1;
}

/* PHP/JS 템플릿에서 추출한 프레젠테이션 규칙 */
.blog-keyword-gold-u001 { margin:0; }
.blog-keyword-gold-u002 { align-items:center;cursor:pointer; }
.blog-keyword-gold-u003 { margin-right:8px; }
.blog-keyword-gold-u004 { padding:20px 0;text-align:center; }
.blog-keyword-gold-u005 { color:var(--rp-warning);font-size:45px; }
.blog-keyword-gold-u006 { width:80px;text-align:center; }
}
