@charset "utf-8";

/* ==========================================================================
   [코라이브] 토론광장 (Discussion) 전용 Pure Vanilla CSS
   ========================================================================== */

.ds-wrap {
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.88rem 1.25rem 3.75rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* 상단 헤더 박스 */
.ds-header-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ds-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.ds-badge-top {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.63rem;
}

.ds-title {
    font-size: 1.63rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.38rem 0;
    line-height: 1.3;
}

.ds-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* 검색 폼 */
/* .ds-search-form, .ds-search-input, .ds-search-btn styles unified in design_system.css (.kol-hero-search-*) */
/*
.ds-search-form {
    display: flex;
    gap: 0.5rem;
}

.ds-search-input {
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.63rem 1rem;
    font-size: 0.88rem;
    width: 15rem;
    outline: none;
    transition: border-color 0.2s;
}

.ds-search-input:focus {
    border-color: #4f46e5;
}

.ds-search-btn {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.63rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ds-search-btn:hover {
    background: #4338ca;
}
*/

/* 분류 탭 네비게이션 (뉴스 3 : 커뮤니티 3 : 생활법률 4) */
.ds-tab-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ds-tab-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.81rem;
    font-weight: 700;
    text-decoration: none;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.ds-tab-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.ds-tab-item.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.ds-tab-divider {
    color: #cbd5e1;
    font-size: 0.88rem;
    user-select: none;
}

/* 토론 카드 그리드 레이아웃 (3열 균등 그리드 & 반응형) */
.ds-section-grid,
.ds-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .ds-section-grid,
    .ds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ds-section-grid,
    .ds-grid {
        grid-template-columns: 1fr;
    }
}

.ds-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.38rem;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.ds-card:hover {
    border-color: #818cf8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(15,23,42,0.08);
    border-color: #cbd5e1;
}
.ds-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.88rem;
}

.ds-cat-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eeefff;
    padding: 0.25rem 0.63rem;
    border-radius: 0.5rem;
}

.ds-status-tag {
    font-size: 0.69rem;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
}

.ds-card-subject {
    font-size: 1.06rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.ds-card-subject a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.ds-card-subject a:hover {
    color: #4f46e5;
}

/* 프로그레스 바 */
.ds-progress-wrap {
    width: 100%;
    background: #f1f5f9;
    height: 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.ds-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 9999px;
}

.ds-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.81rem;
    font-weight: 600;
    color: #64748b;
}

.ds-card-meta strong {
    color: #4f46e5;
}

.ds-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.75rem 0;
    color: #94a3b8;
    font-size: 0.94rem;
}

/* --- [토론광장 메인 섹션 & 투표 위젯 표준 스타일] --- */
.ds-header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.ds-sec-count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
}
.ds-sec-empty {
    padding: 3rem 1.25rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5e1;
}
.ds-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.63rem;
}
.ds-card-ca-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0284c7;
    background: #f0f9ff;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
}
.ds-card-badge-status {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #0284c7;
}
.ds-card-heading {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}
.ds-card-preview {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}
.ds-card-vote-box {
    margin-bottom: 0.75rem;
}
.ds-card-vote-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.71875rem;
    margin-bottom: 0.25rem;
}
.ds-label-agree {
    font-weight: 800;
    color: #0284c7;
}
.ds-card-vote-bar {
    height: 0.375rem;
    background: #f1f5f9;
    border-radius: 0.1875rem;
    overflow: hidden;
    display: flex;
}
.ds-bar-agree {
    background: #0284c7;
}
.ds-bar-disagree {
    background: #e11d48;
}

.ds-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
    margin-top: 0.5rem;
}

.ds-card-author-box {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    white-space: nowrap;
    color: #475569;
    font-weight: 600;
}

.ds-card-stats {
    display: flex;
    align-items: center;
    gap: 0.63rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.ds-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- [토론 상세 뷰 스테이션 & 댓글 공론장 표준 스타일] --- */
.ds-vote-station-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    text-align: center;
}
.ds-vote-station-guide {
    font-size: 0.84375rem;
    color: #64748b;
    margin: 0 0 1.25rem 0;
    text-align: center;
    line-height: 1.5;
}
.ds-vote-station-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
}
.ds-vote-station-bar-pro {
    background: #0284c7;
}
.ds-vote-station-bar-con {
    background: #e11d48;
}
.ds-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.63rem;
}
.ds-comments-empty {
    padding: 3rem 1.25rem;
    text-align: center;
    color: #94a3b8;
}
.ds-comments-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}
.ds-comments-empty p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}