
:root {
    --bg-color: #f7f1e3;
    --container-bg: rgba(255, 255, 255, 0.8);
    --text-color: #2c3e50;
    --primary-color: #ff4757;
    --primary-hover: #ff6b81;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --bg-color: #2f3542;
    --container-bg: rgba(47, 53, 66, 0.9);
    --text-color: #f1f2f6;
    --primary-color: #ff6b81;
    --primary-hover: #ff4757;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    transition: all 0.4s ease;
    padding-top: 100px;
    padding-bottom: 50px;
}

.header-right {
    position: fixed;
    top: 25px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.lang-link, #theme-toggle-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--container-bg);
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

#theme-toggle-btn {
    border: none;
}

.lang-link:hover, #theme-toggle-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.container {
    width: 100%;
    max-width: 450px;
    background: var(--container-bg);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 45px var(--shadow-color);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.4;
}

#menu-display-area {
    margin: 40px 0;
}

#generate-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3);
    width: 100%;
}

#generate-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    animation: slideUp 0.4s ease;
    max-width: 400px;
}

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

.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Form Styles */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s;
}

.dark-mode .form-group input, .dark-mode .form-group textarea {
    background: rgba(0,0,0,0.2);
    color: white;
    border-color: rgba(255,255,255,0.1);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

#submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

#submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.main-content {
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.comments-section {
    width: 100%;
    background: var(--container-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.comments-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    transition: opacity 0.3s ease; /* 부드럽게 나타나도록 추가 */
}
