/* RESET */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Poppins', sans-serif;
}

/* BODY */
body {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../Image/bunga.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: #fff;
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    background: linear-gradient(135deg,#ff4d4d,#b30000);
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition: 0.3s;
}

.back-btn:hover {
    background:#fff;
    color:#b30000;
}

.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color:#ffffff;
    font-family: 'Lobster Two', cursive;

    text-shadow: 
        0 1px 2px rgb(255, 255, 255),
        1px 2px 4px rgb(74, 63, 46);
}

/* CONTAINER GRID */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* CARD */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: #fff;
    aspect-ratio: 1 / 1;  /* Square card */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit:fill;
}  
/* OVERLAY INFO */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.overlay p {
    font-size: 13px;
    line-height: 1.4;
}

/* NO FOOD MESSAGE */
.no-food {
    text-align: center;
    font-size: 18px;
    font-style: italic;
    color: #ddd;
    grid-column: 1 / -1;
    padding: 50px 0;
}

/* CARD HOVER */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* RESPONSIVE */
@media(max-width:768px){
    .container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .overlay h3 { font-size: 14px; }
    .overlay p { font-size: 12px; }
}