/* --- ROYALSPOT CAFE MAIN STYLESHEET --- */

/* BODY */
body {
    background: rgb(224, 215, 216);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* HEADER */
header {
    background-color: black;
    background-image: url(images/heroimage.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 20px;
    height: 200px;
    position: relative;
}

/* NAV */
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    margin: 0 15px;
}

header a {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

/* LOGO */
.center-logo {
    position: relative;
    z-index: 3000; /* stays above nav */
}

.center-logo a {
    background-image: url("images/RoyalSPOT cafe.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 260px;
    height: 80px;
    display: block;
    margin: 0 auto;
    text-indent: -9999px;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4000;
}

/* CONTAINER */
.container {
    width: 80%;
    margin: auto;
    background-color: white;
    padding: 20px;
    min-height: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* MENU LAYOUT */
.menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
    align-items: flex-start;
}

.section-header h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-top: 40px;
    color: #222;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.food-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.food-card:hover {
    transform: translateY(-5px);
}

.food-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.food-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.food-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-tag {
    font-weight: bold;
    color: #e44d26;
}

.add-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* TRAY */
#sticky-tray {
    position: sticky;
    top: 20px;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.tray-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.trash-icon {
    color: #dc3545;
    cursor: pointer;
}

.tray-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.checkout-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 1024px) {
    .menu-container {
        flex-direction: column;
    }

    #sticky-tray {
        position: static;
        width: 100%;
    }
}

/* 🔥 MOBILE NAV (FINAL FIXED VERSION) */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        background: rgba(0, 0, 0, 0.6);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);

        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    header nav.active {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    header nav ul li a {
        font-size: 22px;
        color: white;
    }
}

/* LOCK SCROLL */
.no-scroll {
    overflow: hidden;
}

/* COOKIES NOTIFICATION */
#cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 20px;
    display: none; /* Controlled by script.js */
    z-index: 1000;
}

.cookies {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookies p {
    margin: 0;
    flex: 1;
}

#cookies-btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid white;
    background-color: black;
    color: white;
    transition: 0.3s;
}

#cookies-btn:hover {
    background-color: white;
    color: black;
}

/* FOOTER */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: #007bff;
    margin-left: 10px;
}

/* Main text */
.footer-main {
  margin: 0;
}

/* Credit line */
.footer-credit {
  margin: 8px 0 4px;
}

/* Small legal line */
.footer-sub {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/* Link styling (fix purple + underline) */
.site-footer a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Visited link */
.site-footer a:visited {
  color: #00bcd4;
}

/* Hover effect */
.site-footer a:hover {
  color: #ffffff;
}
/* WebGen Badge */
.webgen-badge {
  margin-top: 10px;
  text-align: center;
}

.webgen-badge a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: #bbb;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
}

/* Highlight WebGen text */
.webgen-badge strong {
  color: #00bcd4;
  font-weight: 600;
  margin-left: 4px;
}

/* Hover effect */
.webgen-badge a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.webgen-badge small {
  display: block;
  font-size: 10px;
  color: #777;
  margin-top: 4px;
}

