﻿/* cardapio-online/assets/css/style.css - Design Estilo Fast Food / BK */

/* Variáveis CSS para gerenciamento de cores */
:root {
    --primary-color: #4e392e;   /* Laranja/Vermelho (Destaque principal) */
    --secondary-color: #c7793a; /* Amarelo Ouro (Destaque secundário/Preços) */
    --background-dark: #333333; /* Fundo do cardápio/Admin */
    --background-light: #f5f5f5; /* Fundo dos itens/corpo */
    --text-dark: #222222;
    --text-light: #ffffff;
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Bebas Neue', 'Impact', sans-serif; /* Fonte mais ousada para o estilo */
    background: var(--background-light); 
    min-height: 100%;
}

html {
    height: 100%;
}

/* Ajuste o padding do main para não cobrir o conteúdo pelo header fixo */
main {
    padding-top: 80px; /* Altura do header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Ajuste para navegação */
}

/* ------------------------------------- */
/* BRANDING & HERO (Usado no index.php body) */
/* ------------------------------------- */

.hero-section h1 .hero-icon {
    height: 1.2em; 
    width: auto;
    vertical-align: middle; 
    margin: 0 5px; 
}
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: var(--primary-color); 
    color: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 4rem;
    margin: 0;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2); 
    letter-spacing: 2px;
}

.hero-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    margin: 10px 0;
    opacity: 0.9;
    font-weight: 500;
}

/* ------------------------------------- */
/* HEADER E NAVEGAÇÃO (NOVO) */
/* ------------------------------------- */

.site-header {
    background: var(--background-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 5px 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-left {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 1px;
}

.logo-desktop {
    max-height: 50px;
    width: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.login-desktop .btn-login {
    background: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 1px;
    color: var(--text-light);
}

.login-desktop .btn-login:hover {
    background: #e64a19;
}

/* HAMBURGER E MENU MOBILE */
.hamburger {
    background: none;
    border: none;
    color: var(--text-light); /* ALTERAÇÃO: ícones brancos */
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 199;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-inner {
    padding: 20px;
    color: var(--text-light);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-menu ul li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.5rem;
    display: block;
    transition: color 0.2s;
}

.mobile-menu ul li a:hover {
    color: var(--primary-color);
}

.mobile-logo h3 {
    color: var(--secondary-color);
    margin: 10px 0;
}

.login-mobile .btn-login {
    display: block;
    text-align: center;
}

/* ------------------------------------- */
/* BUSCA & CATEGORIAS */
/* ------------------------------------- */

.search-bar {
    background: var(--text-light);
    border-radius: 5px;
    padding: 10px 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1.1rem;
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-bar .search-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: flex-start;
}

.category-btn {
    background: var(--background-dark);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
}

.category-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.category-btn.active {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    transform: translateY(0);
}

/* ------------------------------------- */
/* MENU GRID & ITEMS */
/* ------------------------------------- */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.menu-item {
    cursor: pointer;
    background: var(--text-light);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.item-content {
    padding: 20px;
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
}

.item-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 1px;
}

.item-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-dark);
    background: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-description {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.item-category {
    display: inline-block;
    background: var(--background-dark);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ------------------------------------- */
/* ADMIN PANEL & FORM */
/* ------------------------------------- */

.admin-panel, .login-box {
    background: var(--text-light);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.admin-header h2 {
    color: var(--primary-color);
    font-family: 'Bebas Neue', 'Impact', sans-serif;
}

.form-group label {
    font-weight: bold;
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input, .form-group textarea, .form-group select {
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 1px;
}

.btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.btn-danger {
    background: #999;
    color: var(--text-light);
}

.btn-danger:hover {
    background: #666;
    box-shadow: 0 5px 15px rgba(153, 153, 153, 0.4);
}

.admin-item {
    background: var(--background-light);
    border-left: 5px solid var(--secondary-color);
    border-radius: 10px;
    padding: 15px 20px;
}

.admin-item:hover {
    background: #fff;
    transform: translateX(3px);
}

.admin-item-info h4 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.dashboard-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.dashboard-nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* ------------------------------------- */
/* MODAL DE INFORMAÇÕES */
/* ------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--text-light);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: relative;
    animation: slideUp 0.3s;
}

.modal-content img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.modal-content h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 1px;
}

.modal-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    background: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ------------------------------------- */
/* NOTIFICAÇÕES & RESPONSIVIDADE */
/* ------------------------------------- */

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}
.notification.show { opacity: 1; }
.notification.error { background: #c62828; }
.notification.success { background: #388e3c; }

@media (max-width: 768px) {
    /* Menu mobile: exibe hambúrguer, esconde desktop */
    .hamburger { display: block; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }

    .site-header { padding: 5px 0; }
    .topbar { padding: 0 15px; }

    main { padding-top: 70px; }
    .hero-section h1 { font-size: 3rem; }

    /* Layout de produtos (2 colunas) */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }

    /* Ajustes de densidade */
    .menu-item img { height: 120px; }
    .item-name { font-size: 1.4rem; }
    .item-price { font-size: 1.2rem; }
    .item-description { display: none; } /* Esconde descrição */

    .modal-content {
        width: 90%;
        margin-top: 20%;
    }
}
