
/* ========================================
   FOODIEHUB - MALAYSIAN HERITAGE THEME
   ======================================== */

:root {
    --green: #18251F;
    --green-light: #263B30;
    --green-deep: #101A15;
    --gold: #D5A34A;
    --gold-light: #F0CF83;
    --cream: #F3E8D0;
    --cream-dark: #E3D9C6;
    --white: #FFFFFF;
    --muted: #B9B9B0;
    --card: #202C25;
    --border: rgba(213, 163, 74, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--green-deep);
    color: var(--cream);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    transition: 0.25s ease;
}

/* NAVIGATION */

.navbar {
    min-height: 80px;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    background: var(--green);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo a {
    color: var(--cream);
    text-decoration: none;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.login-btn {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid var(--gold);
    border-radius: 25px;
}

.login-btn:hover {
    background: var(--gold);
    color: var(--green) !important;
}

/* BUTTONS */

.main-btn,
.cart-btn {
    display: inline-block;
    padding: 13px 24px;
    background: var(--gold);
    color: var(--green) !important;
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.main-btn:hover,
.cart-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* HOMEPAGE HERO */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 85px 8%;
    min-height: 570px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(213, 163, 74, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(213, 163, 74, 0.09),
            transparent 35%
        ),
        var(--green);
    border-bottom: 3px solid var(--gold);
}

.hero-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.small-title {
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    color: var(--cream);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--gold);
}

.description {
    max-width: 560px;
    color: var(--cream-dark);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.hero-image {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    border: 3px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* HOMEPAGE FEATURE CARDS */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 70px 8%;
    background: var(--green-deep);
}

.feature-card {
    width: auto;
    padding: 32px 25px;
    text-align: center;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--cream-dark);
    line-height: 1.8;
}

/* PAGE HEADERS */

.menu-header,
.about-header,
.contact-header {
    position: relative;
    text-align: center;
    padding: 75px 20px;
    background:
        radial-gradient(
            circle at center,
            rgba(213, 163, 74, 0.12),
            transparent 65%
        ),
        var(--green);
    border-bottom: 1px solid var(--border);
}

.menu-header h1,
.about-header h1,
.contact-header h1 {
    color: var(--cream);
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 12px;
}

.menu-header h1 span,
.about-header p,
.contact-header p {
    color: var(--gold);
}

.menu-header > p:last-child {
    color: var(--muted);
    font-size: 16px;
}

/* MENU CATEGORY BUTTONS */

.menu-header .menu-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0 10px;
}

.menu-header .menu-categories a {
    display: inline-block;
    padding: 10px 22px;
    color: var(--cream);
    background: var(--green-deep);
    border: 1px solid var(--gold);
    border-radius: 25px;
    text-decoration: none;
}

.menu-header .menu-categories a:hover,
.menu-header .menu-categories a.active {
    background: var(--gold);
    color: var(--green-deep);
}

/* FOOD MENU */

.food-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 60px 8%;
    background: var(--green-deep);
}

.food-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.food-image {
    width: 42%;
    min-width: 140px;
    min-height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.food-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.food-card:hover .food-image img {
    transform: scale(1.05);
}

.food-info {
    flex: 1;
    min-width: 0;
    padding: 22px;
}

.food-category {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.food-info h2 {
    color: var(--cream);
    font-size: 22px;
    margin-bottom: 10px;
}

.food-info > p:not(.food-category) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.food-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.price {
    color: var(--gold);
    font-size: 20px;
    font-weight: bold;
}

.food-bottom button {
    padding: 9px 14px;
    color: var(--green);
    background: var(--gold);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.food-bottom button:hover {
    background: var(--gold-light);
}

/* ABOUT PAGE */

.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 8%;
}

.about-image,
.about-content {
    flex: 1;
    min-width: 0;
}

.about-image {
    overflow: hidden;
    border-radius: 12px;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.04);
}

.about-content span,
.contact-info span {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.about-content h2,
.contact-info h2 {
    font-size: 36px;
    margin: 15px 0;
    color: var(--cream);
}

.about-content p,
.contact-info > p {
    color: var(--cream-dark);
    line-height: 1.9;
    margin-bottom: 15px;
}

.mission-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 40px 8% 80px;
}

.mission-card {
    padding: 30px;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.mission-card h3 {
    color: var(--gold);
    font-size: 23px;
    margin-bottom: 12px;
}

.mission-card p {
    color: var(--cream-dark);
    line-height: 1.8;
}

/* CONTACT PAGE */

.contact-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
    padding: 80px 8%;
}

.contact-item {
    margin: 22px 0;
}

.contact-item h3 {
    color: var(--gold);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--cream-dark);
}

.contact-form {
    padding: 30px;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    color: var(--cream);
    background: var(--green-deep);
    border: 1px solid #405047;
    border-radius: 6px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid var(--gold);
}

.contact-form textarea {
    resize: vertical;
}

/* LOGIN PAGE */

.login-section,
.add-food-section {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.login-box,
.add-food-box {
    width: 100%;
    max-width: 520px;
    padding: 35px;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.login-box h1,
.add-food-box h1 {
    color: var(--cream);
    text-align: center;
    margin-bottom: 12px;
}

.login-box > p,
.add-food-box > p {
    color: var(--muted);
    text-align: center;
    margin-bottom: 25px;
}

.login-box label,
.add-food-box label {
    display: block;
    color: var(--cream);
    margin-bottom: 7px;
}

.login-box input,
.add-food-box input,
.add-food-box textarea {
    width: 100%;
    padding: 13px;
    margin-bottom: 18px;
    color: var(--cream);
    background: var(--green-deep);
    border: 1px solid #405047;
    border-radius: 6px;
    font: inherit;
}

.login-box .main-btn,
.add-food-box .main-btn {
    width: 100%;
    text-align: center;
}

.error-message {
    padding: 12px;
    margin-bottom: 18px;
    color: #ffb4b4;
    background: #3a2020;
    border: 1px solid #9b4444;
    border-radius: 6px;
    text-align: center;
}

.success-message {
    padding: 12px;
    margin-bottom: 18px;
    color: #bce8c5;
    background: #193426;
    border: 1px solid #43875a;
    border-radius: 6px;
    text-align: center;
}

/* DASHBOARD */

.dashboard-section,
.view-food-section {
    min-height: 75vh;
    padding: 60px 8%;
}

.dashboard-header,
.view-food-header {
    margin-bottom: 30px;
}

.dashboard-header span,
.view-food-header span,
.add-food-box > span {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.dashboard-header h1,
.view-food-header h1 {
    color: var(--cream);
    font-size: 38px;
    margin: 10px 0;
}

.dashboard-header p,
.view-food-header p {
    color: var(--muted);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.stat-card {
    min-width: 0;
    padding: 25px;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-card h3 {
    color: var(--cream-dark);
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    color: var(--gold);
    font-size: 36px;
    overflow-wrap: anywhere;
}

.stat-card p {
    color: var(--muted);
}

.dashboard-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-card {
    display: block;
    padding: 28px;
    color: var(--cream);
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.dashboard-icon {
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 12px;
}

.dashboard-card h2 {
    margin-bottom: 8px;
}

.dashboard-card p {
    color: var(--muted);
    line-height: 1.7;
}

/* ADMIN TABLES */

.food-table-container {
    overflow-x: auto;
    padding: 18px;
    background: var(--green);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.food-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.food-table-container th {
    padding: 14px;
    color: var(--gold);
    background: var(--green-deep);
    text-align: left;
}

.food-table-container td {
    padding: 14px;
    color: var(--cream-dark);
    border-bottom: 1px solid #354339;
}

.food-table-container tbody tr:hover {
    background: var(--green-light);
}

.edit-btn,
.delete-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.edit-btn {
    color: var(--green);
    background: var(--gold);
}

.delete-btn {
    color: #ffffff;
    background: #8b3030;
}

/* FOOTER */

footer {
    width: 100%;
    padding: 25px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--green);
    border-top: 1px solid var(--border);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .navbar {
        padding: 18px 5%;
    }

    .nav-links {
        gap: 15px;
    }

    .hero {
        padding: 65px 5%;
        gap: 30px;
    }

    .features,
    .mission-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .food-menu {
        padding: 50px 5%;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 12px 18px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 22px;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        max-width: 100%;
    }

    .hero-image img {
        height: 280px;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .features,
    .mission-section {
        grid-template-columns: 1fr;
        padding: 45px 20px;
    }

    .food-card {
        flex-direction: column;
    }

    .food-image {
        width: 100%;
        height: 230px;
        min-height: 0;
    }

    .food-image img {
        height: 230px;
        min-height: 0;
    }

    .about-section {
        flex-direction: column;
        padding: 50px 22px;
        gap: 30px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        padding: 50px 22px;
        gap: 30px;
    }

    .dashboard-section,
    .view-food-section {
        padding: 45px 20px;
    }

    .dashboard-stats,
    .dashboard-menu {
        grid-template-columns: 1fr;
    }

    .login-box,
    .add-food-box {
        padding: 25px 20px;
    }

    .menu-header {
        padding: 55px 15px;
    }

    .food-bottom {
        align-items: flex-start;
    }
}

/* MENU CATEGORY FILTERS */
.menu-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.category-btn {
    display: inline-block;
    padding: 11px 23px;
    border: 1px solid rgba(213, 163, 74, 0.5);
    border-radius: 30px;
    background: #202C25;
    color: #F3E8D0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #D5A34A;
    color: #101A15;
    border-color: #D5A34A;
    transform: translateY(-2px);
}

.navbar .logo a {
    color: #FFFFFF;
    text-decoration: none;
}

.navbar .logo a span {
    color: #D5A34A;
}

.empty-menu {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    color: #F3E8D0;
}
