/* Estilos Globais */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #ffffff; /* Fundo branco */
    color: #000000; /* Textos pretos */
    padding-bottom: 80px; /* Adiciona espaço no final para não cobrir conteúdo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    text-align: center; /* Adicionado para centralizar a logo */
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: rgb(227, 85, 84); /* Cor de destaque */
    text-decoration: none;
}

.main-header .logo img {
    max-height: 45px; /* Ajuste a altura da sua logo conforme necessário */
    width: auto;
}

/* Barra de Pesquisa */
.search-section {
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1em;
    outline: none;
}

.search-bar button {
    border: none;
    background-color: rgb(227, 85, 84);
    color: white;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    opacity: 0.9;
}

/* Seção de Stories */
.stories-section {
    margin-bottom: 30px;
}

.stories-section h2, .profiles-section h2 {
    font-size: 1.5em;
    color: #000;
    margin-bottom: 15px;
}

.stories-container {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Permite rolar horizontalmente se houver muitos stories */
    padding-bottom: 10px;
}

.story-item {
    text-align: center;
    flex-shrink: 0;
}

.story-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgb(227, 85, 84);
    object-fit: cover;
    margin-bottom: 5px;
}

.story-item span {
    font-size: 0.9em;
}

.story-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Seção de Perfis */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.profile-card-link {
    text-decoration: none;
    color: inherit;
}

.profile-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-info {
    padding: 15px;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.profile-info p i {
    color: rgb(227, 85, 84); /* Cor do ícone de localização */
    margin-right: 5px;
}

.profile-info h3 .verified-badge {
    color: #007bff; /* Azul para o selo */
    font-size: 0.8em;
    vertical-align: middle;
}

/* Rodapé */
.main-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    color: #777;
}

.price-table-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.price-table-item:last-child { border-bottom: none; }
.price-description { font-weight: 500; }
.price-value { font-weight: bold; font-size: 1.1em; color: rgb(227, 85, 84); }

/* Estilos para a nova página de perfil */
.profile-page-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 768px) {
    .profile-page-grid { grid-template-columns: 1fr 1fr; }
}

/* Barra de Navegação Inferior */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    flex-grow: 1;
    height: 100%;
    transition: color 0.2s;
}

.bottom-nav-item i {
    font-size: 1.4em;
    margin-bottom: 4px;
}

.bottom-nav-text {
    font-size: 0.75em;
}

/* Estilo para o item ativo */
.bottom-nav-item.active {
    color: rgb(227, 85, 84);
}

/* Story Viewer Modal */
.story-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: 450px;
    max-height: 800px;
    background-color: #111;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-header {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    z-index: 2002;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.story-user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.story-progress-bar {
    position: absolute;
    top: 5px;
    width: calc(100% - 10px);
    left: 5px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 2001;
}

.story-progress {
    height: 100%;
    background-color: white;
    width: 0;
}

.story-content {
    width: 100%;
    height: 100%;
}

.story-content img, .story-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 2em;
    cursor: pointer;
    z-index: 2003;
    padding: 10px;
}
.story-prev-btn { left: 5px; }
.story-next-btn { right: 5px; }
.story-close-btn { top: 10px; right: 10px; font-size: 2.5em; background: transparent; padding: 0 10px; transform: none; }