/* style.css - 전체 최신 버전 (모든 수정 사항 반영 및 notifications.html 기본 스타일 고려) */

/* Google Font - Poppins & Noto Sans KR */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    line-height: 1.65;
    background-color: #f4f6fa;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-top은 body.has-header / :not(.has-header)에서만 관리 */
    padding: 0;
    /* body 전체에 기본 패딩 제거 */
    min-height: 100vh;
    text-align: center;
    position: relative;
    flex: 1 0 auto;
}

body.has-header {
    padding-top: 60px;
    /* 헤더 높이만큼만 패딩 */
}

body:not(.has-header) {
    padding-top: 60px;
    /* 헤더 없는 페이지는 상단 여백 없음 */
}

/* 푸터 스타일 */
.site-footer {
    width: 100vw;         /* 전체 뷰포트 폭 */
    max-width: 100vw;     /* 최대 폭도 전체로 */
    margin-left: calc(50% - 50vw); /* 중앙 정렬 */
    margin-right: 0;
    box-sizing: border-box;
    /* 기존 스타일 유지 */
    margin-top: 40px;
    padding: 24px 10px 18px 10px;
    background: #f8f9fa;
    color: #888;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.site-footer .footer-link {
    margin: 0 3px;
    color: #888;
    text-decoration: none;
}

.site-footer .footer-link:hover {
    color: #3182F6;
}

.site-footer .footer-info {
    display: block;
    margin-top: 8px;
    color: #aaa;
    font-size: 11px;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 15px;
    }

    .site-footer .footer-link {
        margin: 0 2px;
    }
}

/* --- 고정 헤더 --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 0 20px;
}

.header-content-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header .logo-link-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-placeholder-graphic-header {
    width: 28px;
    height: 28px;
    background-color: #3182F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-right: 8px;
    color: #ffffff;
}

.site-title-asked-header {
    font-size: 18px;
    font-weight: 600;
    color: #3182F6;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav .header-nav-link {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.header-nav .header-nav-link:hover {
    background-color: #f0f2f5;
    color: #3182F6;
}

.header-nav .header-nav-link.header-nav-icon,
.header-nav .notification-area {
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.header-nav .header-nav-link.header-nav-icon:hover,
.header-nav .notification-area:hover {
    background-color: #f0f2f5;
}

.header-nav .header-nav-link.header-nav-icon svg,
.header-nav .notification-area svg.feather-bell {
    stroke: #555555;
    transition: stroke 0.2s;
}

.header-nav .header-nav-link.header-nav-icon:hover svg,
.header-nav .notification-area:hover svg.feather-bell {
    stroke: #3182F6;
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 50%;
    min-width: 15px;
    height: 15px;
    line-height: 13px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 300px;
    max-height: 400px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 90vw;
        max-width: 320px;
        left: 70%;
        transform: translateX(-70%);
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.notification-dropdown .notification-actions {
    padding: 8px 15px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.notification-dropdown .notification-actions #markAllAsReadBtn {
    font-size: 12px;
    padding: 5px 10px;
    width: auto;
    margin-bottom: 0;
    background-color: #e9ecef;
    color: #3182F6;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-dropdown .notification-actions #markAllAsReadBtn:hover {
    background-color: #dee2e6;
}

#notificationItemsContainer {
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
}

.notification-dropdown .notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-dropdown .notification-item:last-child {
    border-bottom: none;
}

.notification-dropdown .notification-item:hover {
    background-color: #f8f9fa;
}

.notification-dropdown .notification-item.is-read {
    color: #777777;
}

.notification-dropdown .notification-item .notification-text {
    display: block;
    margin-bottom: 3px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.notification-dropdown .notification-item .notification-timestamp {
    font-size: 10px;
    color: #999999;
    display: block;
}

#notificationItemsContainer .no-notifications {
    padding: 20px;
    text-align: center;
    color: #888888;
    font-size: 14px;
}

.notification-dropdown .notification-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.notification-dropdown .notification-footer a {
    font-size: 13px;
    color: #3182F6;
    text-decoration: none;
    font-weight: 500;
}

.notification-dropdown .notification-footer a:hover {
    text-decoration: underline;
}

.notification-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    z-index: 10000;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    color: #ffffff;
}

.notification-bar.show {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
}

.notification-bar.success {
    background-color: #28a745;
}

.notification-bar.error {
    background-color: #dc3545;
}

.notification-bar.info {
    background-color: #17a2b8;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 30px 25px;
    margin-top: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    flex: 1 0 auto;
}

body:not(.has-header) .auth-container {
    margin-top: 0;
    /* 상단 여백 없음 */
}

body.has-header .auth-container,
body.has-header .notifications-page-container,
body.has-header .inbox-page-container,
body.has-header .mypage-container,
body.has-header .mypage-section-container,
body.has-header .profile-view-container {
    margin-top: 20px;
    /* 헤더와 컨텐츠 사이의 간격 */
    margin-bottom: 20px;
    /* 하단 여백 추가 */
}

/* 참고: .auth-container.inbox-page-container 특정 셀렉터는 더 이상 사용하지 않음 */

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo-placeholder-graphic {
    width: 60px;
    height: 60px;
    background-color: #3182F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 30px;
    color: #ffffff;
    font-weight: 700;
}

.site-title-asked {
    font-size: 28px;
    font-weight: 700;
    color: #3182F6;
}

.description-asked {
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.page-subtitle {
    font-size: 20px;
    color: #333333;
    font-weight: 600;
    margin-bottom: 25px;
    margin-top: 10px;
    text-align: center;
}

/* 헤더가 없는 페이지에서의 마진 조정 */
body:not(.has-header) .page-subtitle {
    margin-top: 0;
}

.recipient-info-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.recipient-profile-pic-placeholder {
    /* 이 클래스는 inbox.html에서 주석 처리 또는 삭제되었으므로, 스타일이 적용될 곳이 없을 수 있습니다. */
    /* 만약 다른 곳에서 사용한다면 유지합니다. */
    width: 48px;
    height: 48px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #adb5bd;
    font-size: 20px;
    font-weight: 600;
    overflow: hidden;
}

.profile-bio-inbox {
    font-size: 14px;
    color: #555555;
    margin-top: 5px;
    margin-bottom: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
}

.profile-instagram-inbox {
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.profile-instagram-inbox a.social-link-inbox {
    color: #3182F6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.profile-instagram-inbox a.social-link-inbox:hover {
    text-decoration: underline;
}

.profile-instagram-inbox a.social-link-inbox svg {
    /* fill: #E1306C; */
}

#pageOwnerDisplayName.page-subtitle,
#recipientDisplayName.page-subtitle {
    color: #333333;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 18px;
}

.auth-form {
    margin-top: 15px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="url"],
.auth-form textarea {
    width: 100%;
    background-color: #f0f2f5;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #333333;
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder,
.auth-form input[type="text"]::placeholder,
.auth-form input[type="url"]::placeholder,
.auth-form textarea::placeholder {
    color: #888888;
    font-weight: 400;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="url"]:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #3182F6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.2);
}

.auth-form textarea {
    resize: vertical;
    min-height: 90px;
}

.form-feedback-msg {
    display: block;
    margin-top: -10px;
    margin-bottom: 12px;
    min-height: 1.2em;
    font-size: 12px;
    text-align: left;
    color: #555555;
}

.primary-btn {
    width: 100%;
    background-color: #3182F6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    text-align: center;
}

.primary-btn:hover {
    background-color: #2573DE;
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0px);
}

.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.or-separator .or-text {
    padding: 0 10px;
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

.secondary-btn {
    width: 100%;
    background-color: #e9ecef;
    color: #3182F6;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
}

.secondary-btn:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

.secondary-btn:active {
    transform: translateY(0px);
}

.forgot-links-container {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.forgot-links-container a {
    font-size: 13px;
    color: #555555;
    text-decoration: none;
    margin: 0 5px;
}

.forgot-links-container a:hover {
    text-decoration: underline;
    color: #3182F6;
}

.forgot-links-container .link-separator {
    font-size: 12px;
    color: #aaaaaa;
    margin: 0 3px;
}

.mypage-menu {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.mypage-menu a.menu-item {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #ffffff;
    color: #333333;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.mypage-menu a.menu-item:last-child {
    border-bottom: none;
}

.mypage-menu a.menu-item:hover {
    background-color: #f0f2f5;
    color: #3182F6;
}

.mypage-menu a.menu-item-disabled {
    color: #aaaaaa !important;
    background-color: #f8f9fa !important;
    cursor: not-allowed;
}

.mypage-menu a.menu-item-disabled:hover {
    background-color: #f8f9fa !important;
    color: #aaaaaa !important;
}

.settings-section {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.settings-section h3 {
    font-size: 17px;
    color: #3182F6;
    margin-bottom: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.settings-section .section-description {
    font-size: 13px;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.profile-info-section .info-item {
    margin-bottom: 14px;
    font-size: 15px;
    color: #333333;
}

.profile-info-section .info-item:last-child {
    margin-bottom: 0;
}

.profile-info-section .info-label {
    font-weight: 600;
    color: #555555;
    margin-right: 10px;
}

.profile-info-section .info-value {
    color: #3182F6;
    word-break: break-all;
    font-weight: 500;
}

.my-question-link-area {
    margin-top: 0;
    padding: 20px 25px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.my-question-link-area.settings-section {
    padding-top: 15px;
}

.link-area-title {
    font-size: 13px;
    margin-bottom: 8px;
    color: #555555;
    font-weight: 500;
    text-align: left;
}

.shareable-link-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    color: #3182F6;
    text-align: center;
    font-size: 14px;
    margin-bottom: 12px;
    word-break: break-all;
}

.copy-link-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background-color: #3182F6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    text-align: center;
}

.copy-link-btn:hover {
    background-color: #2573DE;
    transform: translateY(-1px);
}

.mypage-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 25px 0 15px 0;
}

.navigation-btn {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
    margin-top: 25px;
}

.logout-btn-question {
    margin-top: 15px;
    background: #3182F6;
    color: #fff;
    border-radius: 8px;
}

.logout-btn-question:hover {
    background-color: #e9ecef;
    color: #333333;
}

.question-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left;
}

.qna-main-content {
    margin-bottom: 8px;
    text-align: left;
}

.question-text-inbox,
.answer-text-inbox {
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    margin-bottom: 0;
}

.answer-text-inbox {
    color: #444444;
    font-size: 14px;
}

.qna-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    width: 100%;
}

.qna-date {
    font-size: 11px;
    color: #888888;
    text-align: left;
}

.reaction-buttons-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reaction-btn {
    background-color: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-btn svg.like-icon {
    width: 18px;
    height: 18px;
    stroke: #adb5bd;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s, fill 0.2s;
}

.reaction-btn:hover svg.like-icon {
    stroke: #3182F6;
    transform: scale(1.1);
}

.reaction-btn.like-btn.active svg.like-icon {
    stroke: #3182F6;
    fill: #3182F6;
}

.likes-count {
    font-size: 12px;
    color: #555555;
    font-weight: 500;
    margin-left: 2px;
}

.sent-questions-container .question-item p.recipient-text {
    font-size: 13px;
    color: #555555;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: left;
}

.sent-questions-container .question-item p.recipient-text strong {
    color: #3182F6;
    font-weight: 600;
}

.answer-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d0d8e0;
}

.answer-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.answer-textarea {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333333;
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    resize: vertical;
    min-height: 70px;
}

.answer-textarea::placeholder {
    color: #aaaaaa;
}

.answer-textarea:focus {
    outline: none;
    border-color: #3182F6;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.2);
}

.submit-answer-btn {
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 0;
    width: auto;
    border-radius: 8px;
}

.question-item.answered .answer-form {
    display: none;
}

.toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.public-toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-toggle-switch .toggle-label {
    font-size: 13px;
    color: #555555;
    cursor: pointer;
    font-weight: 500;
}

.public-toggle-switch .switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.public-toggle-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.public-toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ced4da;
    transition: .4s;
    border-radius: 20px;
}

.public-toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.public-toggle-switch input:checked+.slider {
    background-color: #3182F6;
}

.public-toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px #3182F6;
}

.public-toggle-switch input:checked+.slider:before {
    transform: translateX(18px);
}

#publicQnaListContainer h3.page-subtitle {
    font-size: 17px !important;
    margin-bottom: 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #e9ecef !important;
    padding-bottom: 10px !important;
    color: #3182F6 !important;
    font-weight: 600 !important;
}

.page-actions-menu {
    margin-bottom: 20px;
    text-align: right;
}

.page-actions-menu .secondary-btn {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #e9ecef;
    color: #3182F6;
    width: auto;
    margin-bottom: 0;
    border: 1px solid #ced4da;
}

.page-actions-menu .secondary-btn:hover {
    background-color: #dee2e6;
}

.delete-account-warning h3 {
    color: #dc3545;
    display: flex;
    align-items: center;
}

.delete-account-warning .section-description {
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
}

.delete-btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.delete-btn:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

#deleteAccountForm div[style*="text-align: center"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

#confirmDeleteCheckbox {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

#deleteAccountForm label[for="confirmDeleteCheckbox"] {
    font-size: 14px;
    color: #555555;
    vertical-align: middle;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    background-color: #3182F6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s, right 0.4s ease-out;
    z-index: 990;
    padding: 0;
    line-height: 0;
    right: 30px;
}

#scrollToTopBtn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#scrollToTopBtn:hover {
    opacity: 1;
    transform: scale(1.08);
    background-color: #2573DE;
}

@media (min-width: 520px) {
    #scrollToTopBtn {
        right: calc(50% - 210px - 20px - 24px);
    }
}

@media (min-width: 1200px) {
    #scrollToTopBtn {
        right: 50px;
    }
}

.no-questions-message {
    color: #777777;
    text-align: center;
    padding: 20px 0;
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
}

.no-answer-yet {
    font-size: 13px;
    color: #aaaaaa;
    margin-top: 10px;
    font-style: italic;
    text-align: left;
}

/* ▼▼▼ 전체 알림 페이지 (notifications.html) 스타일 ▼▼▼ */
.notifications-page-container {
    text-align: left;
}

.notifications-page-container .page-subtitle {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.notifications-page-container .page-actions-menu {
    text-align: right;
    margin-bottom: 20px;
}

#markAllAsReadBtnPage.secondary-btn {
    font-size: 13px;
    padding: 8px 15px;
    width: auto;
    margin-bottom: 0;
}

#allNotificationsList {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
}

#allNotificationsList .loading-message,
#allNotificationsList .no-questions-message {
    text-align: center;
    padding: 40px 20px;
    color: #777;
    font-size: 15px;
    border-bottom: none;
}

#allNotificationsList .notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#allNotificationsList .notification-item:last-child {
    border-bottom: none;
}

#allNotificationsList .notification-item:hover {
    background-color: #f8f9fa;
}

#allNotificationsList .notification-item.is-read {
    color: #777777;
}

#allNotificationsList .notification-item .notification-text {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

#allNotificationsList .notification-item .notification-timestamp {
    font-size: 11px;
    color: #999999;
    display: block;
    margin-top: 3px;
}

/* ▲▲▲ 전체 알림 페이지 (notifications.html) 스타일 ▲▲▲ */

/* 약관 동의 섹션 스타일 */
.terms-agree {
    margin: 20px 0;
    font-size: 13px;
    color: #555;
    text-align: left;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.terms-agree label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.terms-agree input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-agree a {
    color: #666;
    text-decoration: underline;
    transition: color 0.2s;
}

.terms-agree a:hover {
    color: #333;
}

.terms-agree .all-agree {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.terms-agree .all-agree span {
    font-weight: bold;
}

.terms-agree .term-item {
    margin-bottom: 10px;
}

.terms-agree .term-link {
    margin-left: 25px;
    margin-top: 5px;
}

/* 약관 내용 스타일 */
.terms-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.terms-content h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 16px;
}

.terms-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-content ul {
    list-style: disc;
    margin-left: 20px;
}

/* --- 회원 탈퇴 페이지 스타일 --- */
.delete-account-warning strong {
    font-weight: bold;
    color: #333;
}

.delete-account-confirm {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-account-confirm input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.delete-account-confirm label {
    font-size: 14px;
    color: #555;
    vertical-align: middle;
    line-height: 1.5;
}

/* --- 회원 가입 페이지 약관 동의 스타일 개선 --- */
.terms-agree .all-agree-label {
    display: flex;
    align-items: center;
}

.terms-agree .all-agree-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    /* 체크박스 크기 */
    height: 18px;
    /* 체크박스 크기 */
}

.terms-agree .all-agree-label span {
    /* 전체 동의하기 텍스트 크기 확대 */
    font-size: 16px;
    /* 기존 13px에서 변경 */
    font-weight: 500;
    /* 필요시 글자 두께 조정 */
}

.terms-agree .term-item {
    display: flex;
    /* 체크박스와 링크를 한 줄에 배치 */
    align-items: center;
    /* 세로 중앙 정렬 */
    justify-content: space-between;
    /* 체크박스와 링크를 양 끝으로 분산 (필요시) */
    margin-bottom: 10px;
    /* 항목 간 간격 */
}

.terms-agree .term-item:last-child {
    margin-bottom: 0;
    /* 마지막 항목 하단 간격 제거 */
}

.terms-agree .term-item label {
    display: flex;
    /* 체크박스와 텍스트를 한 줄에 */
    align-items: center;
    /* 세로 중앙 정렬 */
    flex-grow: 1;
    /* 가능한 공간을 모두 차지하여 약관 링크를 오른쪽으로 밀어냄 */
    margin-right: 10px;
    /* 약관명과 '약관 보기' 링크 사이 간격 */
}

.terms-agree .term-item input[type="checkbox"] {
    margin-right: 8px;
    /* 체크박스와 텍스트 사이 간격 */
    /* 기존 스타일 유지 */
}

.terms-agree .term-item .term-link {
    white-space: nowrap;
    /* 줄바꿈 방지 */
    flex-shrink: 0;
    /* 공간 부족시 줄어들지 않도록 */
    /* 기존 스타일 유지 */
}

/* .auth-container 기본 스타일에서 margin-top을 제거했으므로 여기서만 마진 적용 */

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    margin-bottom: 10px;
    object-fit: cover;
    background: #3182F6;
}

.logo-img-header {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    background: #3182F6;
    margin-right: 8px;
}

body:not(.has-header) .logo-img {
    width: 80px;
    height: 80px;
}

body:not(.has-header) .site-title-asked {
    font-size: 22px;
}

/* 가이드 페이지 스타일 */
.guide-container {
    width: 100%;
    max-width: 420px;  /* 다른 페이지들과 동일한 최대 너비 */
    margin: 20px auto;
    padding: 30px 25px;  /* 좌우 패딩 조정 */
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.welcome-section h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;  /* 폰트 크기 조정 */
    font-weight: bold;
    line-height: 1.4;  /* 줄 간격 추가 */
}

.welcome-section p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;  /* 한글 줄바꿈 개선 */
}

.feature-section {
    margin-bottom: 30px;
}

.feature-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;  /* 폰트 크기 조정 */
    text-align: center;
    font-weight: bold;
}

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-card h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 18px;  /* 폰트 크기 조정 */
    font-weight: bold;
}

.feature-card p {
    color: #666;
    margin-bottom: 12px;
    font-size: 14px;  /* 폰트 크기 조정 */
    line-height: 1.6;
    word-break: keep-all;  /* 한글 줄바꿈 개선 */
}

.feature-card ul {
    list-style-type: none;
    padding-left: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-size: 14px;  /* 폰트 크기 조정 */
    word-break: keep-all;  /* 한글 줄바꿈 개선 */
}

.feature-card ul li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #007bff;
    font-size: 16px;
}

.faq-section {
    margin-bottom: 30px;
}

.faq-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;  /* 폰트 크기 조정 */
    text-align: center;
    font-weight: bold;
}

.faq-item {
    margin-bottom: 15px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;  /* 폰트 크기 조정 */
    font-weight: bold;
    line-height: 1.4;  /* 줄 간격 추가 */
}

.faq-item p {
    color: #666;
    font-size: 14px;  /* 폰트 크기 조정 */
    line-height: 1.6;
    word-break: keep-all;  /* 한글 줄바꿈 개선 */
}

.guide-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.start-button {
    display: inline-block;
    padding: 14px 25px;  /* 패딩 조정 */
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;  /* 폰트 크기 조정 */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.start-button:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.secondary-button {
    display: inline-block;
    padding: 14px 25px;  /* 패딩 조정 */
    background: #f8f9fa;
    color: #333;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;  /* 폰트 크기 조정 */
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.secondary-button:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 회원가입 안내 카드 스타일 */
.signup-prompt-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 28px 20px 20px 20px;
  margin: 0 0 24px 0;
  text-align: center;
  border: 1px solid #e6eaf0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.signup-prompt-text {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.signup-btn-main {
  background: #3182F6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(49,130,246,0.08);
  transition: background 0.18s;
}
.signup-btn-main:hover,
.signup-btn-main:focus {
  background: #256ad6;
} 