/* ── language-switcher.css ── */
/* 언어 선택 UI 스타일 */

/* ⚠️ 자리(위치·층)는 여기서 정하지 않는다 — base.html 의 .fixed-dock 이 정한다.
   예전엔 여기·tutorial.css·payment.css 가 각자 좌표를 박아 세 개가 계단처럼 어긋났다. */
.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-switcher:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 언어 버튼 — 테마 버튼(.theme-opt)과 **같은 분절 모양**이어야 한다 (핸드북 0절).
   국기 이미지·밑줄 표시는 걷었다: 컬러 이미지 대신 활자, 선택 표시는 채움 하나로 통일. */
.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a3a3a;
    font-family: inherit;
    pointer-events: none;   /* 클릭은 컨테이너가 받는다(토글) */
}
.lang-btn:hover { background: rgba(0, 0, 0, 0.06); }
.lang-btn.active {
    background: var(--control-on-bg, #667eea);
    color: var(--control-on-fg, #ffffff);
}

/* 툴팁 */
.lang-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10001;
}

/* 모바일 반응형 — 크기만 줄인다. 자리는 .fixed-dock 소관. */
@media (max-width: 768px) {
    .language-switcher {
        padding: 4px 8px;
        gap: 4px;
    }
}

/* 애니메이션 */
@keyframes languageSwitch {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1);
    }
}

.lang-btn.switching {
    animation: languageSwitch 0.4s ease;
}

/* 다크 테마(테마 시스템)에서의 스위처 색 — 예전 prefers-color-scheme 블록을 이관 */
html[data-theme="classic"][data-sys="dark"] .language-switcher {
    background: rgba(44, 62, 80, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="classic"][data-sys="dark"] .lang-btn.active {
    background: rgba(103, 126, 234, 0.25);
}

/* ── 분절 토글(테마·언어·글자 크기) ───────────────────────
   ⭐ 같은 역할의 컨트롤은 **규칙을 한 벌만** 둔다(§6). 테마·언어를 두 벌로 갈라 뒀다가
      언어만 글자 11.5px·여백 8px 로 홀쭉해진 적이 있다(2026-08-26). 그래서 뒤에 붙는
      컨트롤(읽기 화면의 글자 크기)은 새 규칙을 만들지 않고 `.seg-switcher`/`.seg-opt`
      로 이 규칙에 얹힌다 — 아래 선택자에 이름만 나란히 적는다.
   ⚠️ theme.js 가 `.theme-switcher` 를 **querySelector 로 하나만** 잡으므로, 다른 컨트롤이
      그 클래스를 같이 쓰면 안 된다. 그래서 공용 이름을 따로 뒀다.
   ── 테마 선택 ────────────────────────────────────────────
   ⚠️ 자리(위치·층)는 base.html 의 .fixed-dock 이 정한다 — 여기서 좌표를 박지 않는다.
      예전엔 bottom 113/70/15 처럼 셋이 각자 좌표를 들고 있어, 하나만 크기가 바뀌어도
      줄이 어긋났다(실제로 계단처럼 세 줄이 됐다).
   ⚠️ 스위처 자체는 **모든 테마에서 보여야** 하므로 테마 파일이 아니라 여기 둔다. */
.theme-switcher,
.seg-switcher {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.theme-switcher .theme-opt,
.seg-switcher .seg-opt {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  /* 고르지 않은 쪽도 읽혀야 한다 — #555 는 흐려서 "기본"이 잘 안 보였다(2026-08-21 검수).
     흰 알약 배경 대비 약 10.4:1. */
  color: #3a3a3a;
  font-family: inherit;
}
.theme-switcher .theme-opt:hover,
.seg-switcher .seg-opt:hover { background: rgba(0, 0, 0, 0.06); }
/* ⚠️ 선택색은 테마 토큰이 정한다 — 공용 파일에 성경책 가죽색을 박았다가
      기본 테마의 선택 알약까지 가죽색이 됐었다(2026-08-26 통일성 원칙으로 정정). */
.theme-switcher .theme-opt.on,
.seg-switcher .seg-opt.on { background: var(--control-on-bg, #667eea); color: var(--control-on-fg, #ffffff); }
.theme-switcher .theme-opt:focus-visible,
.seg-switcher .seg-opt:focus-visible { outline: 2px solid #b08a3c; outline-offset: 2px; }

@media (max-width: 768px) {
  .theme-switcher,
  .seg-switcher { padding: 2px; }
}


/* ── 도크 막대(읽기 화면 글자 크기) ───────────────────────
   분절 토글과 **같은 줄 높이·글꼴·색 토큰**을 쓴다(핸드북 0절: 새 모양을 발명하지 않는다).
   트랙 채움·썸 색은 --control-on-bg(테마가 정한다: 성경책=가죽, 기본=보라). 값 표시는 토글 글자와 같은 크기. */
.dock-range {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 160px;
}
.dock-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 100px;
  height: 44px;              /* 손가락 크기 — 토글 알맹이와 같다 */
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
/* 트랙·채움·값 색은 토큰이다(테마가 정한다 — 성경책: --dock-range-track/-fill/-ink, book.css).
   대체값은 옛 하드코딩 값 그대로라 기본 테마는 달라지지 않는다.
   ⚠️ 웹킷 트랙에는 채움 의사요소가 없다 — read.js 가 넣는 --pct 만큼 채움색 그라데이션을 자른다. */
.dock-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(var(--dock-range-fill, var(--control-on-bg, #667eea)), var(--dock-range-fill, var(--control-on-bg, #667eea)))
      no-repeat 0 0 / var(--pct, 0%) 100%,
    var(--dock-range-track, rgba(0, 0, 0, 0.14));
}
.dock-range input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--dock-range-track, rgba(0, 0, 0, 0.14));
}
.dock-range input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--dock-range-fill, var(--control-on-bg, #667eea));
}
.dock-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;          /* 트랙 4px 가운데에 */
  border-radius: 50%;
  border: 2px solid var(--control-on-fg, #ffffff);
  background: var(--control-on-bg, #667eea);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.dock-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--control-on-fg, #ffffff);
  background: var(--control-on-bg, #667eea);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.dock-range input[type="range"]:focus-visible { outline: 2px solid #b08a3c; outline-offset: 2px; border-radius: 999px; }
.dock-range-value {
  min-width: 2.6em;
  font-size: 12px;                 /* .dock-row-label 과 같은 크기 */
  line-height: 1.2;
  color: var(--dock-range-ink, #3a3a3a);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── payment.css ── */
/* 커피 버튼 스타일 (좌측 하단 고정) */
.coffee-button {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 999;

    background: linear-gradient(135deg, #d4a574 0%, #9c6644 100%);
    color: white;
    border: none;
    outline: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;

    box-shadow: 0 4px 15px rgba(156, 102, 68, 0.4);
    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    gap: 6px;

    /* 버튼임을 더 명확히 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.coffee-button::before {
    content: "☕ ";
}

.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 102, 68, 0.5);
}

.coffee-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(156, 102, 68, 0.4);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .coffee-button {
        bottom: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 13px;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .coffee-button {
        bottom: 8px;
        left: 8px;
        padding: 5px 10px;
        font-size: 12px;
        gap: 4px;
    }
}

/* 결제 모달 스타일 */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.payment-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #333;
}

.payment-modal-content h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.payment-modal-content p {
    text-align: center;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.payment-amount {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.payment-amount strong {
    font-size: 24px;
    color: #d4a574;
    font-weight: 700;
}

#payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#payment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#payment-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#payment-form input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s ease;
}

#payment-form input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* 카카오페이 버튼 컨테이너 */
.kakaopay-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* 카카오페이 버튼 스타일 */
.kakaopay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kakaopay-btn.qr-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.kakaopay-btn.link-btn {
    background: #FEE500;
    color: #3C1E1E;
}

.kakaopay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.kakaopay-btn .btn-icon {
    font-size: 20px;
}

.kakaopay-btn .btn-text {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-only-badge {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

/* QR 코드 컨테이너 */
.qr-code-container {
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.qr-code-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-description {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 데스크탑 대응 - QR 코드 영역 더 컴팩트하게 */
@media (min-width: 769px) {
    .qr-code-container {
        margin-top: 10px;
        padding: 8px;
    }

    .qr-code-image {
        max-width: 320px;
    }

    .qr-code-description {
        margin-top: 5px;
        margin-bottom: 0;
        font-size: 13px;
    }
}

.payment-notice {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

.payment-notice small {
    color: #999;
    font-size: 13px;
}

/* 모바일 대응 - 모달 */
@media (max-width: 768px) {
    .payment-modal-content {
        padding: 30px 25px;
        max-width: 95%;
    }

    .payment-modal-content h2 {
        font-size: 24px;
    }

    .payment-amount strong {
        font-size: 20px;
    }

    .payment-btn {
        font-size: 16px;
        padding: 13px;
    }

    /* 모바일에서 제목 - 괄호 부분만 줄바꿈 허용 */
    .donation-header-compact h1 {
        font-size: 14px;
        word-break: keep-all;
        line-height: 1.3;
    }

    .donation-header-compact .subtitle {
        font-size: 13px;
        white-space: nowrap;
    }

    /* 금액 표시 줄바꿈 방지 */
    .amount-display {
        font-size: 26px;
        white-space: nowrap;
    }

    /* QR 코드 설명 줄바꿈 방지 */
    .qr-code-description {
        font-size: 12px;
        white-space: nowrap;
    }

    /* 버튼 텍스트 줄바꿈 방지 */
    .kakaopay-btn .btn-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .mobile-only-badge {
        font-size: 11px;
        white-space: nowrap;
    }

    /* 감사 메시지 폰트 크기 조정 */
    .payment-modal-content p {
        font-size: 12px;
    }
}

/* 더 작은 모바일 화면 대응 */
@media (max-width: 480px) {
    .donation-header-compact h1 {
        font-size: 13px;
        word-break: keep-all;
        line-height: 1.3;
    }

    .donation-header-compact .subtitle {
        font-size: 12px;
    }

    .amount-display {
        font-size: 24px;
    }

    .kakaopay-btn .btn-text {
        font-size: 13px;
    }

    .mobile-only-badge {
        font-size: 10px;
    }
}

/* 로딩 스피너 */
.payment-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 버튼 비활성화 상태 */
.payment-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.payment-btn:disabled:hover {
    box-shadow: none;
}

/* Donation 페이지/모달 전용 스타일 */
.donation-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(103, 126, 234, 0.2);
}

.donation-header h1 {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.donation-header .subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-top: 5px;
}

/* 컴팩트 헤더 스타일 (모달용) */
.donation-header-compact {
    text-align: center;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

.donation-header-compact h1 {
    font-size: 24px;
    color: #333;
    margin: 0 0 8px 0;
}

.donation-header-compact .subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* 컴팩트 섹션 스타일 */
.donation-section-compact {
    margin-bottom: 20px;
}

/* 상세 정보 접기/펴기 스타일 */
.donation-details {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    background: #f9fafb;
}

.donation-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    font-size: 15px;
    user-select: none;
}

.donation-details summary::before {
    content: "💰 ";
}

.donation-details summary:hover {
    color: #764ba2;
}

.donation-details p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.hero-image {
    text-align: center;
    font-size: 80px;
    margin: 20px 0;
}

.donation-section {
    margin-bottom: 40px;
}

.donation-section h2 {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.donation-section p {
    line-height: 1.8;
    color: #374151;
    margin: 15px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(103, 126, 234, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.usage-list {
    background: #f0f4ff;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
}

.usage-list h3 {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
}

.usage-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-list li {
    padding: 8px 0;
    color: #374151;
    display: flex;
    align-items: center;
}

.usage-list li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

.donation-amount-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 15px 0;
}

.amount-label {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 10px;
}

.amount-display {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.amount-description {
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.payment-method-badge {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.testimonial {
    background: #fffbeb;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin: 30px 0;
}

.testimonial-text {
    font-style: italic;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-author {
    text-align: right;
    color: #6b7280;
    font-size: 14px;
}

.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.faq-answer {
    color: #6b7280;
    line-height: 1.6;
}

/* 모바일 대응 - Donation 스타일 */
@media (max-width: 768px) {
    .donation-header h1 {
        font-size: 28px;
    }

    .amount-display {
        font-size: 36px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .payment-modal-content {
        padding: 25px;
    }
}


/* ── 후원 모달 안쪽 글 — 템플릿 인라인 style 에서 옮겨 온 것 (2026-08-27) ──────
   ⚠️ 인라인 style 은 테마가 덮을 수 없다(선택자가 없어 !important 를 걸 자리도 없다).
      값은 옮기기 전과 **똑같다** — 기본 테마의 모습은 바뀌지 않는다.
      성경책 테마는 themes/book.css 의 모달 절이 이 클래스 이름으로 덮는다. */
.donation-details-body { margin-top: 15px; }
.donation-subtitle { font-size: 16px; color: #667eea; margin: 15px 0 10px 0; }
.donation-usage-list { list-style: none; padding: 0; margin: 0 0 20px 0; font-size: 14px; color: #374151; }
.donation-usage-list li { padding: 5px 0; }
.donation-faq { font-size: 14px; color: #374151; }
.donation-link { color: #667eea; }
.donation-thanks { text-align: center; margin-top: 25px; color: #6b7280; font-size: 13px; }

/* ── footer.css ── */
/* 사업자 정보 표시 (캘린더 내부 컴팩트) */
.business-info-compact {
    margin-top: 30px;
    padding: 20px;
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
    font-size: 11px;
    color: #6c757d;
    line-height: 1.8;
}

.business-info-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.business-info-line span {
    white-space: nowrap;
}

.business-info-line.policy-links {
    margin-top: 8px;
}

.business-info-line.policy-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.business-info-line.policy-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.business-info-copyright {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    color: #adb5bd;
}

/* 광고 안내 문구 (비로그인 사용자에게만 노출) */
.ad-notice {
    margin: 16px 0 6px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* 다크 테마(테마 시스템)에서의 푸터 색 — 예전 prefers-color-scheme 블록을 이관 */
html[data-theme="classic"][data-sys="dark"] .ad-notice { color: #adb5bd; }
html[data-theme="classic"][data-sys="dark"] .business-info-compact {
    background-color: transparent;
    border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="classic"][data-sys="dark"] .business-info-line { color: #6c757d; }
html[data-theme="classic"][data-sys="dark"] .business-info-copyright { color: #adb5bd; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .business-info-compact {
        padding: 15px 10px;
        font-size: 9px;
        margin-top: 20px;
    }

    .business-info-line {
        justify-content: center;
        gap: 6px;
        text-align: center;
        line-height: 1.6;
    }

    .business-info-line span {
        display: inline;
    }

    .business-info-copyright {
        font-size: 8px;
        margin-top: 8px;
    }
}

/* 프린트 시 숨김 */
@media print {
    .business-info-compact {
        display: none;
    }
}

/* ── tutorial.css ── */
/* 튜토리얼 도움말 고정 버튼 */
.tutorial-help-button {
    position: fixed !important;
    bottom: 70px !important; /* 번역 버튼 위에 배치 (간격 더 줄임) */
    right: 15px !important;
    z-index: 10001 !important;
    width: 35px !important;
    height: 35px !important;
    background: rgba(103, 126, 234, 0.25) !important;
    color: rgba(103, 126, 234, 0.9) !important;
    border: none !important;
    outline: none !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(103, 126, 234, 0.2) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tutorial-help-button:hover {
    background: rgba(103, 126, 234, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 126, 234, 0.3);
}

.tutorial-help-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.2);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tutorial-help-button {
        bottom: 55px !important; /* 모바일 번역 버튼 위 */
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .tutorial-help-button {
        bottom: 50px !important; /* 작은 모바일 번역 버튼 위 */
        right: 8px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 12px !important;
    }
}

/* 튜토리얼 오버레이 */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

/* 어두운 배경 */
.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: all;
}

/* 스포트라이트 (강조할 요소 위치) */
.tutorial-spotlight {
    position: fixed;
    border-radius: 12px;
    border: 3px solid rgba(103, 126, 234, 0.9);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(103, 126, 234, 0.6),
                inset 0 0 0 9999px rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 10001;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 툴팁 */
.tutorial-tooltip {
    position: fixed;
    max-width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    z-index: 10002;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.tutorial-content {
    padding: 24px;
}

.tutorial-text {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.tutorial-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tutorial-progress {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.tutorial-nav-buttons {
    display: flex;
    border: none;
    gap: 8px;
    width: 100%;
}

.tutorial-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    outline: none;
}

.tutorial-skip {
    background: #f3f4f6;
    color: #6b7280;
    width: 100%;
}

.tutorial-skip:hover {
    background: #e5e7eb;
}

.tutorial-skip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-prev {
    background: #f3f4f6;
    color: #6b7280;
}

.tutorial-prev:hover:not(:disabled) {
    background: #e5e7eb;
}

.tutorial-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tutorial-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tutorial-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3);
}

.tutorial-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.tutorial-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.tutorial-checkbox:hover {
    color: #374151;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: 280px;
    }

    .tutorial-content {
        padding: 16px;
    }

    .tutorial-text {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    .tutorial-nav-buttons {
        width: 100%;
    }

    .tutorial-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tutorial-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .tutorial-content {
        padding: 16px;
    }
}
