@charset "utf-8";

#bottom-nav {
    display: flex;
    background-color: var(--nav-bg);
    height: 70px;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 200;
}

.nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: #0B1026;
    font-size: 11px;
    font-weight: bold;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn.active {
    color: #C5A059;
}

.nav-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-btn.active img {
    /* 일러스트(투명 PNG) 형태를 따라 더 진하고 선명한 #C5A059 글로우 생성 */
    filter: drop-shadow(0 0 2px #C5A059) drop-shadow(0 0 6px #C5A059) drop-shadow(0 0 12px rgba(197, 160, 89, 0.8));
}

/* 터치하는 순간(active) 자연스러운 축소 효과 */
.nav-btn:active img {
    transform: scale(0.9);
    opacity: 0.8;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--paper-color);
    width: 80%;
    max-width: 300px;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 20px 0;
    font-weight: bold;
    white-space: pre-wrap;
    display: inline-block;
    text-align: left;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-btn {
    background-color: var(--paper-color);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex: 1;
}

.modal-btn.confirm-btn {
    background-color: var(--accent-color);
    color: white;
}

.modal-btn:active {
    transform: scale(0.95);
}

.toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--active-border);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.placeholder-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--accent-color);
    padding: 20px;
}

.placeholder-view h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 800;
}

.placeholder-view p {
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.8;
}

.back-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 15px;
}

.back-btn:hover {
    background-color: var(--bg-color);
}

.back-btn-dark {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.back-btn-dark:hover {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

.back-btn-dark:active {
    background-color: rgba(0, 0, 0, 0.5) !important;
    transform: scale(0.95);
}

.nav-arrow-btn {
    background: none;
    border: none;
    color: #6f461e;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow-btn:hover:not(:disabled) {
    color: var(--accent-color);
    transform: scale(1.05);
}

.nav-arrow-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-arrow-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
