:root {
    --primary-color: #d9534f;
    --secondary-color: #428bca;
    --background-color: #f7f7f7;
    --text-color: #333333;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-family: 'Gowun Dodum', sans-serif;
    --container-width: 960px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--card-background);
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.site-header nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Main Content */
main {
    padding: 40px 0;
}

.hero-section {
    text-align: center;
    padding-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Suggestion Card */
.suggestion-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    margin: 0 auto 30px auto;
    max-width: 500px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.suggestion-card .placeholder {
    color: #888;
}

.suggestion-card .card-content {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.suggestion-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.suggestion-card h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.suggestion-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}
.suggestion-card a:hover {
    text-decoration: underline;
}

.cooking-tip {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--secondary-color);
    text-align: left;
}

.cooking-tip h3 {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}


/* Button */
#suggestion-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#suggestion-button:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
}

#suggestion-button.loading .button-text {
    display: none;
}

#suggestion-button .spinner-border {
    display: none;
}

#suggestion-button.loading .spinner-border {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Page Section for About/Contact */
.page-section {
    background: var(--card-background);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.text-content h1, .text-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.text-content p {
    margin-bottom: 15px;
}
.text-content ul {
    list-style-position: inside;
    margin-bottom: 15px;
}

/* Form Container */
.form-container {
    max-width: 600px;
}
.form-container h1 { color: var(--primary-color); }
.form-container p { margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-family);
}
.form-container button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}
.form-container button:hover {
    background-color: #c9302c;
}

/* Footer */
.site-footer {
    background-color: #e9e9e9;
    color: #666;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    .site-header nav {
        margin-top: 15px;
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
}
