/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');
:root { --font-sans: 'Noto Sans KR', sans-serif; --bg-color: #121212; --surface-color: #1E1E1E; --primary-text-color: #f5f5f5; --secondary-text-color: #a0a0a0; --border-color: #3A3A3A; --accent-color: #4CAF50; --accent-hover-color: #66BB6A; --warn-color: #FFA000; --warn-hover-color: #FFB300; --danger-color: #D32F2F; --danger-hover-color: #E57373; --info-color: #1976D2; --info-hover-color: #42A5F5; --shadow: 0 10px 30px rgba(0,0,0,0.3); --correct-color: #4CAF50; --incorrect-color: #D32F2F; }
body { font-family: var(--font-sans); line-height: 1.7; background-color: var(--bg-color); color: var(--primary-text-color); margin: 0; }
.container { max-width: 900px; margin: 2rem auto; background-color: var(--surface-color); padding: 2rem; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
h1, h2, h3, h4 { color: var(--primary-text-color); font-weight: 700; margin: 0 0 1rem 0; }
h1 { font-size: 1.8em; } h2 { font-size: 1.5em; border-bottom: 3px solid var(--accent-color); padding-bottom: 0.5rem; display: inline-block; margin-bottom: 1.5rem; } h3 { font-size: 1.3em; margin-top: 1.5rem; } h4 { text-align: left; margin: 0 0 0.8rem; color: var(--secondary-text-color); font-weight: 500; }
input[type="text"], input[type="url"], input[type="number"] { background-color: var(--bg-color); color: var(--primary-text-color); padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1em; box-sizing: border-box; width: 100%; transition: border-color 0.2s; }
input:focus { outline: none; border-color: var(--accent-color); }button, .button-like-label, .link-button { padding: 12px 20px; border: none; background-color: var(--accent-color); color: white !important; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: 700; transition: all 0.2s; text-decoration: none; text-align: center; }
button:hover:not(:disabled), .button-like-label:hover, .link-button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
button:disabled { background-color: #555; cursor: not-allowed; transform: none; box-shadow: none; opacity: 0.6; }
.warn-btn { background-color: var(--warn-color); } .warn-btn:hover:not(:disabled) { background-color: var(--warn-hover-color); }
.danger-btn { background-color: var(--danger-color); } .danger-btn:hover:not(:disabled) { background-color: var(--danger-hover-color); }
.info-btn { background-color: var(--info-color); } .info-btn:hover:not(:disabled) { background-color: var(--info-hover-color); }
.nav-link { text-decoration: none; color: var(--info-color); font-weight: 500; transition: color 0.2s; background: none; border: none; cursor: pointer; font-size: 1em;} .nav-link:hover { color: var(--info-hover-color); }
.hidden { display: none !important; } .clickable { cursor: pointer; }
.main-menu-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.main-menu { text-align: center; } .logo { font-size: 4rem; margin-bottom: 1rem; }
.main-menu h1 { font-size: 2.5em; } .main-menu p { font-size: 1.2em; color: var(--secondary-text-color); margin-bottom: 3rem; }
.menu-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.menu-button { display: flex; align-items: center; background-color: var(--bg-color); padding: 20px; border-radius: 12px; width: 100%; max-width: 350px; text-decoration: none; transition: transform 0.2s, background-color 0.2s; border: 1px solid var(--border-color); }
.menu-button:hover { background-color: #2a2a2a; transform: translateY(-5px); }
.menu-icon { font-size: 2em; margin-right: 20px; } .menu-text { font-size: 1.2em; font-weight: 700; color: var(--primary-text-color); }
.study-recipe-item { background-color: var(--bg-color); padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 5px solid var(--accent-color); }
.study-recipe-title { display: flex; align-items: center; gap: 15px; } .study-recipe-thumbnail { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.study-recipe-names h3 { margin: 0; } .study-recipe-names p { margin: 0; color: var(--secondary-text-color); }
.management-section { background-color: var(--bg-color); padding: 1.5rem 2rem; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 2rem; }
.form-grid-3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 1rem; margin-bottom: 1rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; } .form-actions button { flex-grow: 1; }
.item-list { list-style: none; padding: 0; }
li { background-color: var(--surface-color); padding: 10px 15px; border: 1px solid var(--border-color); margin-bottom: 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item-details { display: flex; align-items: center; flex-grow: 1; gap: 15px; min-width: 0; } .item-details > div { min-width: 0; }
.item-name { font-weight: bold; }
.item-price { color: var(--warn-color); font-weight: normal; font-size: 0.9em; margin-left: 5px; }
.recipe-thumbnail { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); flex-shrink: 0; }
.inline-edit-form { flex-direction: column; align-items: stretch; gap: 10px; }
.inline-edit-form input { font-size: 1em; padding: 8px; }
.item-actions { flex-shrink: 0; display: flex; gap: 8px; } .item-actions button { font-size: 0.9em; padding: 6px 10px; }
.abbr-list { font-size: 0.9em; color: var(--secondary-text-color); } .abbr-tag { background-color: var(--info-color); color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.8em; margin-right: 5px; }
.abbr-editor { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.abbr-edit-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.abbr-edit-item { display: flex; gap: 8px; align-items: center; } .abbr-edit-item input { flex-grow: 1; }
.abbr-add-form { display: flex; gap: 8px; } .add-abbr-btn { padding: 8px; font-size: 1em; flex-shrink: 0; }
/* 퀴즈 페이지 */
#quiz-container.fullscreen-quiz { padding: 0; max-width: 100%; margin: 0; border-radius: 0; min-height: 100vh; display: flex; flex-direction: column; }
#start-screen, #difficulty-screen, #quiz-type-screen { text-align: center; padding: 2rem;}
.start-screen-content { margin-top: 2rem; }
.difficulty-buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.difficulty-buttons button { min-width: 350px; }
#quiz-screen { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.quiz-header { text-align: center; margin-bottom: 1rem; }
.quiz-question-area { text-align: center; margin-bottom: 2rem; }
.quiz-main-image { max-width: 80%; max-height: 300px; border-radius: 12px; border: 3px solid var(--border-color); }
.quiz-question-text { font-size: 2em; font-weight: 700; }
.quiz-options-area { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.quiz-options-area.hard-mode { flex-direction: column; align-items: center; }
.choice-btn { width: 45%; }
.choice-img { width: 40%; max-width: 200px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 4px solid transparent; transition: border-color 0.2s; }
.choice-img:hover, .choice-img.selected { border-color: var(--accent-color); }
.quiz-footer { text-align: center; margin-top: 2rem; }

#submit-btn,
#next-question-btn {
    width: 80%;
    max-width: 400px;
    padding: 18px 25px; /* 패딩 증가 */
    font-size: 1.25em;   /* 폰트 크기 증가 */
    margin-top: 1rem;
}
#next-question-btn {
    background-color: var(--info-color);
}
#next-question-btn:hover:not(:disabled) {
     background-color: var(--info-hover-color);
}

#result-screen { text-align: center; } 
#score-text { font-size: 1.8em; font-weight: 700; color: var(--accent-color); }
.mistake-item { background-color: var(--bg-color); border: 1px solid var(--danger-color); padding: 15px; margin-bottom: 10px; border-radius: 8px; text-align: left; }
.no-mistakes { font-size: 1.2em; } 
.result-actions { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem;}

/* --- [수정] 알림 메시지 스타일 --- */
#notification-container {
    position: fixed;
    bottom: 30px; /* 위치 조정 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* 다른 요소 위에 보이도록 z-index 높임 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 가운데 정렬 */
    gap: 12px;
}
.toast-message {
    color: white;
    padding: 15px 25px; /* 패딩 증가 */
    border-radius: 12px; /* 더 둥글게 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    font-size: 1.1em; /* 폰트 크기 증가 */
    font-weight: 500;
    text-align: center;
    min-width: 250px;
    animation: toast-fade-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.toast-confirm {
    background-color: var(--surface-color);
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
}
.toast-confirm p { margin: 0 0 1rem; }
.toast-confirm .confirm-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.toast-confirm button { font-size: 0.9em; padding: 8px 14px; }
.toast-message.toast-fade-out {
    animation: toast-fade-out 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}
@keyframes toast-fade-in {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-fade-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(30px) scale(0.9); }
}