/* RESET E ESTILOS GERAIS */
:root {
    --primary-color: #3b2d60; /* Roxo Escuro */
    --accent-color: #eb5e3d; /* Laranja/Vermelho */
    --background-color: #f7f3ff; /* Roxo Claro */
    --card-bg: #ffffff;
    --text-color: #333333;
    --muted-color: #999999;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

/* ESTRUTURA GERAL */
.bg {
    background-color: var(--primary-color);
    padding-bottom: 20px; /* Espaço para o footer */
}

.container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.container.narrow {
    max-width: 600px;
}

/* HEADER */
.app-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
}

/* Hamburger menu para mobile */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 5;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        padding: 15px;
        font-size: 1.2em;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}

/* ELEMENTOS DE CONTEÚDO */
.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

.muted {
    color: var(--muted-color);
}

.small {
    font-size: 0.9em;
}

/* FORMULÁRIO */
.form .label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

.form input:not([type="radio"]),
.form select,
.form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s;
    -webkit-appearance: none; /* Para remover o estilo padrão em mobile */
    -moz-appearance: none;
    appearance: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23999999'%3E%3Cpath d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
}

/* BOTÕES */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #d15132;
}

/* HOME PAGE */
.search-bar input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.chip {
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.card-list {
    display: grid;
    gap: 15px;
}

.card-item {
    display: flex;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: transform 0.2s;
    color: var(--text-color);
}

.card-item:hover {
    transform: translateY(-2px);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.item-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-sub {
    font-size: 0.9em;
    color: var(--muted-color);
}

.rating {
    color: gold;
    font-size: 1em;
}

.rating .muted {
    color: var(--muted-color);
    font-size: 0.9em;
}

/* PERFIL */
.perfil-card .top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    text-align: center;
}

.badge.addr {
    background-color: var(--primary-color);
}

.badge.wa {
    background-color: #25d366; /* Cor do WhatsApp */
}

/* AVALIAÇÕES */
.reviews {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.review:last-child {
    border-bottom: none;
}

.rev-head {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 8px;
}

.rev-initial {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 0.9em;
}

/* STAR RATING (FORMULÁRIO) */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-top: 15px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2em;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label {
    color: gold;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: orange;
}

/* RODAPÉ */
footer {
    padding: 20px;
    color: white;
    background-color: var(--primary-color);
    margin-top: 30px;
}