/* 사주 야옹 커스텀 스타일 */

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 커스텀 스크롤바 (Webkit 브라우저) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track, #FFF8E7);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--scroll-thumb-from, #FFB6A3) 0%, var(--scroll-thumb-to, #FF8A80) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--scroll-thumb-to, #FF8A80) 0%, var(--scroll-thumb-from, #FFB6A3) 100%);
}

/* 링크 기본 스타일 제거 */
a {
    text-decoration: none;
    color: inherit;
}

/* 반응형 이미지 */
img {
    max-width: 100%;
    height: auto;
}

/* 귀여운 포커스 스타일 */
*:focus {
    outline: 3px solid var(--focus-color, rgba(255, 182, 163, 0.5));
    outline-offset: 2px;
}

/* 생년월일(date) 입력칸 높이를 다른 입력칸과 동일하게 정규화 */
input[type="date"] {
    height: 2.5rem; /* h-10: py-2 + line-height 기준 높이 */
    box-sizing: border-box;
}

/* cat 테마에서는 폼 컨트롤에 한글 폰트 메트릭 여유를 더 줘야 글자가 덜 잘린다. */
.theme-cat input,
.theme-cat select,
.theme-cat textarea,
.theme-cat button {
    font-family: 'Noto Sans KR', sans-serif;
}

.theme-cat input:not([type="checkbox"]):not([type="radio"]),
.theme-cat select,
.theme-cat textarea {
    min-height: 2.75rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.theme-cat input[type="date"],
.theme-cat input[type="time"] {
    min-height: 2.75rem;
}

/* 버튼 호버 효과 */
button, .btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

body.pending-nav-dialog-open {
    overflow: hidden;
}

.pending-nav-dialog[hidden] {
    display: none !important;
}

.pending-nav-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pending-nav-dialog__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 38%),
        rgba(28, 25, 23, 0.52);
    backdrop-filter: blur(12px);
}

.pending-nav-dialog__panel {
    position: relative;
    width: min(100%, 28rem);
    border-radius: 1.75rem;
    padding: 1.5rem;
    color: #1f2937;
    background:
        linear-gradient(135deg, rgba(255, 248, 240, 0.98), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow:
        0 24px 60px rgba(124, 58, 237, 0.16),
        0 10px 24px rgba(251, 146, 60, 0.18);
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: pending-nav-dialog-enter 180ms ease-out;
}

.pending-nav-dialog__panel.is-pulsing {
    animation: pending-nav-dialog-pulse 260ms ease-out;
}

.pending-nav-dialog__halo {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 18%, rgba(255, 237, 213, 0.88) 60%, rgba(251, 146, 60, 0.14) 100%);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.12);
}

.pending-nav-dialog__halo::before,
.pending-nav-dialog__halo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(251, 146, 60, 0.28);
    animation: pending-nav-dialog-orbit 2.4s ease-in-out infinite;
}

.pending-nav-dialog__halo::after {
    inset: -0.4rem;
    opacity: 0.55;
    animation-delay: 0.25s;
}

.pending-nav-dialog__glyph {
    font-size: 1.5rem;
    line-height: 1;
}

.pending-nav-dialog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 237, 213, 0.95);
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pending-nav-dialog__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}

.pending-nav-dialog__message {
    margin: 0.85rem 0 1.35rem;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.75;
}

.pending-nav-dialog__actions {
    display: flex;
    justify-content: flex-end;
}

.pending-nav-dialog__confirm {
    border: 0;
    border-radius: 9999px;
    padding: 0.78rem 1.35rem;
    min-width: 7rem;
    font-weight: 700;
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.pending-nav-dialog__confirm:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.pending-nav-dialog__confirm:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.28);
    outline-offset: 3px;
}

.theme-boys .pending-nav-dialog__backdrop {
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.16), transparent 34%),
        rgba(3, 7, 18, 0.72);
}

.theme-boys .pending-nav-dialog__panel {
    color: #e8e4dc;
    background:
        linear-gradient(145deg, rgba(12, 16, 25, 0.98), rgba(22, 28, 42, 0.97));
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(212, 175, 55, 0.08);
}

.theme-boys .pending-nav-dialog__halo {
    background: radial-gradient(circle, rgba(20, 26, 38, 0.98) 20%, rgba(212, 175, 55, 0.16) 68%, rgba(212, 175, 55, 0.05) 100%);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.18);
}

.theme-boys .pending-nav-dialog__halo::before,
.theme-boys .pending-nav-dialog__halo::after {
    border-color: rgba(212, 175, 55, 0.38);
}

.theme-boys .pending-nav-dialog__eyebrow {
    background: rgba(212, 175, 55, 0.11);
    color: #f5d060;
}

.theme-boys .pending-nav-dialog__message {
    color: #b8b0a3;
}

.theme-boys .pending-nav-dialog__confirm {
    color: #0c1019;
    background: linear-gradient(135deg, #f5d060, #b8860b);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.18);
}

@keyframes pending-nav-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pending-nav-dialog-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.015);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pending-nav-dialog-orbit {
    0%, 100% {
        transform: scale(1);
        opacity: 0.38;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.72;
    }
}

/* 정보 카드 스타일 */
.info-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* 추가 정보 애니메이션 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-down {
    animation: slide-down 0.3s ease-out;
}

/* 모바일 메뉴 토글 */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }
}
