@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&display=swap');

:root {
    --primary-color: #007BFF;
    --background-color: #f4f7f6;
    --text-color: #333;
    --container-bg-color: #fff;
    --footer-bg-color: #333;
    --footer-text-color: #f4f7f6;
}

body {
    font-family: 'Nanum Gothic', 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.site-header {
    width: 100%;
    background-color: var(--container-bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    height: 60px;
}

.site-nav .nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-nav a:hover, .site-nav a.active {
    color: var(--primary-color);
}


main.container, .container {
    background-color: var(--container-bg-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    flex-grow: 1; /* Make main content grow to fill space */
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.menu-display-container {
    margin: 2rem 0;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-display-container.initial {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.menu-item-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.menu-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.menu-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.menu-description {
    font-size: 1.1rem;
    color: #555;
}


.generate-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.generate-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.all-menus-section {
    margin-top: 3rem;
}

.all-menus-section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

#all-menus-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

#all-menus-list li {
    background-color: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}


.page-content {
    text-align: left;
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1rem;
}


.site-footer {
    width: 100%;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto; /* Push footer to the bottom */
}

.site-footer a {
    color: var(--footer-text-color);
    text-decoration: underline;
}
