/* Reset + Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
.app-header {
    background: #ff914d;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
}

.nav-btn {
    background: white;
    color: #ff914d;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.nav-btn:hover {
    background: #ffe1cc;
}

/* Search */
.search-section {
    padding: 1rem;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.search-box input {
    width: 300px;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-btn {
    background: #ff914d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.search-btn:hover {
    background: #e67c32;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.recipe-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 1rem;
}

.recipe-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recipe-card h3 {
    padding: 0.5rem;
    font-size: 1rem;
}

.details-btn {
    background: #ff914d;
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.details-btn:hover {
    background: #e67c32;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
footer {
    background: #ff914d;
    color: white;
    text-align: center;
    padding: 0.5rem;
    margin-top: 1rem;
}

.hidden {
    display: none;
}
