:root {
    --bg-color: #FFFDF5; /* 부드러운 크림색 */
    --card-bg: #FFFFFF;
    --primary-color: #FFB7B2; /* 살구 핑크 */
    --secondary-color: #E2F0CB; /* 연한 민트 */
    --accent-color: #FFDAC1; /* 따뜻한 살구 */
    --text-color: #6D4C41; /* 부드러운 갈색 */
    --shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
    --border-radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Gamja Flower', cursive, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.app-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Language Button */
.lang-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #FFDAC1;
    border-radius: 20px;
    padding: 8px 15px;
    font-family: 'Gamja Flower', cursive;
    font-size: 1rem;
    color: #8D6E63;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-btn:hover {
    transform: translateY(-2px);
    background-color: #FFF9E6;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
}

.title {
    font-size: 3.5rem;
    margin: 0;
    color: #FF9AA2;
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Filter Buttons */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #FFDAC1;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: 'Gamja Flower', cursive;
    font-size: 1.2rem;
    color: #8D6E63;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-btn:hover {
    transform: translateY(-2px);
    background-color: #FFF9E6;
}

.filter-btn.active {
    background-color: #FFB7B2;
    color: white;
    border-color: #FFB7B2;
    box-shadow: 0 4px 12px rgba(255, 183, 178, 0.4);
}

/* Recipe List Container */
recipe-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Footer */
footer {
    margin-top: 3rem;
    font-size: 1.2rem;
    opacity: 0.7;
    padding-bottom: 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Info Section (For SEO & Content Quality) */
.info-section {
    margin-top: 3rem;
    width: 100%;
    background: #FFF9E6;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #FFDAC1;
}

.info-section h3 {
    color: #6D4C41;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-section p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #795548;
    margin-bottom: 20px;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Comment Section Styles */
.comment-section {
    margin-top: 4rem;
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px dashed var(--accent-color);
}

.comment-section h2 {
    text-align: center;
    color: #FF9AA2;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.comment-section p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.input-row input,
.input-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #FFDAC1;
    border-radius: 15px;
    font-family: 'Gamja Flower', cursive;
    font-size: 1.1rem;
    color: var(--text-color);
    outline: none;
    transition: all 0.2s ease;
}

.input-row input:focus,
.input-row textarea:focus {
    border-color: #FFB7B2;
    box-shadow: 0 0 0 4px rgba(255, 183, 178, 0.2);
    background-color: #FFFDF5;
}

.input-row textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-btn {
    background-color: #FFB7B2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-family: 'Gamja Flower', cursive;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 183, 178, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    background-color: #FF9AA2;
    box-shadow: 0 6px 15px rgba(255, 154, 162, 0.5);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 2px dashed #FFDAC1;
    padding-top: 25px;
}

.comment-item {
    background: #FFFDF5;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #FFDAC1;
    animation: pop 0.3s ease forwards;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #FF8A80;
}

.comment-author {
    font-weight: bold;
    color: #6D4C41;
}

.comment-body {
    color: #5D4037;
    font-size: 1.1rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes pop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .lang-btn {
        top: 10px;
        right: 10px;
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    .title {
        font-size: 2.5rem;
    }
}
