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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    color: #333;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container > div {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2E7D32;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2E7D32;
}

.login-btn, .signup-btn {
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-btn {
    color: #2E7D32;
    background: transparent;
    border: 2px solid #2E7D32;
}
.login-btn:hover {
    background: #2E7D32;
    color: white;
}
.signup-btn {
    color: white;
    background: #2E7D32;
    border: 2px solid #2E7D32;
}
.signup-btn:hover {
    background: #388E3C;
    border-color: #388E3C;
}

.header-container > div:last-child {
    gap: 1rem;
}

footer {
    background: #212121;
    color: #aaa;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.showingre-main {
    flex-grow: 1;
}

.ingredients-hero {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../assets/sandwich_ingredients.jpg') center/cover; /* Placeholder image, needs to be created or sourced */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.ingredients-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.ingredients-hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.ingredients-category-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: #e0e0e0;
    color: #555;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #d0d0d0;
}

.tab-button.active {
    background: #2E7D32;
    color: white;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.ingredient-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 1.5rem;
}

.ingredient-card.hidden {
    display: none;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.ingredient-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.ingredient-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2E7D32;
}

.ingredient-card p {
    font-size: 0.9rem;
    color: #777;
    padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ingredients-hero h1 {
        font-size: 2rem;
    }
    .ingredients-hero p {
        font-size: 1rem;
    }
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .tab-button {
        flex-shrink: 0;
    }
    .ingredients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
