/* =================================== */
/* Buttons                             */
/* =================================== */

.button-primary,
.button-danger,
.button-secondary {
    /* [수정] Pretendard GOV 폰트 스택 적용 */
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    min-height: 48px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
}

.button-primary:hover {
    background-color: var(--sub-color);
}

.button-danger {
    background-color: var(--danger-color);
    color: white;
}

.button-danger:hover {
    opacity: 0.8;
}

.button-secondary {
    background-color: #6c757d;
    color: white;
}
.button-secondary:hover {
    background-color: #5a6268;
}

.button-small {
    min-height: auto !important;
    padding: 8px 20px !important;
    font-size: 15px !important;
    width: auto !important;
}

.button-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-color-light);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.button-link:hover {
    color: var(--primary-color);
}


/* --- 버튼 로딩 상태 --- */
.button-text,
.button-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-text {
    z-index: 2;
    transition: color 0.5s ease;
}

.button-progress-bar {
    width: 0;
    background-color: var(--accent-color);
    transition: width 1.5s ease-in-out;
    z-index: 1;
    border-radius: 4px;
}

.button-primary.loading .button-progress-bar {
    width: 100%;
}

.button-primary.loading .button-text {
    color: white;
}


/* --- 투표 버튼 --- */
.vote-section {
    margin-top: 40px;
    text-align: center;
}

.vote-button {
    /* [수정] Pretendard GOV 폰트 스택 적용 */
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 500;
    background: none;
    border: 1px solid var(--border-color);
    padding: 10px 23px;
    border-radius: 30px;
    font-size: 16.5px;
    cursor: pointer;
    margin: 0 10px;
}

.vote-button:hover {
    background-color: #f0f0f0;
}