:root {
    --primary: #fd6330;
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --text-main: #2d3748;
    --nav-height: 60px;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --header-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --header-bg: #1e1e1e;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding-bottom: var(--nav-height); /* Espaço para o footer */
}

/* --- Footer Suspenso (Mobile Nav) --- */
.menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.menu.hidden {
    transform: translateY(100%);
}

.menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.menu__item:hover, .menu__item.selected {
    color: var(--primary);
}

.menu__item svg {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.avatar img {
    border-radius: 50%;
    object-fit: cover;
}

/* --- Layout Geral --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar-desktop {
    width: 0;
    background: var(--bg-card);
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--border-color);
    display: none; 
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 100%;
}

@media (min-width: 769px) {
    .menu { display: none; } /* Esconde footer mobile no desktop */
    .sidebar-desktop { display: none; }
    body { padding-bottom: 0; }
}

/* --- Chat Styles --- */
.chat-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}
.chat-list-item:hover { background: #f9f9f9; }
.chat-avatar { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; object-fit: cover; }
.chat-info { flex: 1; }
.chat-name { font-weight: bold; display: block; }
.chat-last-msg { color: #777; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* --- App Header (Branco com Logo) --- */
.app-header {
    background-color: var(--header-bg);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header img {
    max-height: 40px;
    width: auto;
}
.app-header .site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Dark Mode specific overrides */
[data-theme="dark"] .chat-list-item:hover {
    background-color: #2d2d2d;
}

/* --- Top Creators & Feed Styles (Cards) --- */
.card-slider-container {
    padding: 20px 0;
    overflow: hidden;
}

.wrapper-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

.title-color {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.arrow-link {
    color: var(--text-main);
    opacity: 0.6;
    text-decoration: none;
}

.cards-container {
    padding-left: 20px;
}

swiper-container {
    width: 100%;
    padding-bottom: 10px;
}

swiper-slide {
    width: 140px;
    height: auto;
}

.creator-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 133%; /* Aspect ratio 3:4 */
    background-color: var(--bg-body);
}

.image-creators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 15px 10px 10px;
    box-sizing: border-box;
}

.position-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.user-info {
    color: white;
    width: 100%;
}

.name-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.font-awesome-icon-verify {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.text-base {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Grid para Explorar Modelos */
.grid-creators {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 0 20px 80px 20px; /* Padding inferior para não ficar atrás do footer */
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}
.mobile-menu-overlay.active { display: flex; }
.mobile-menu-content {
    width: 80%;
    max-width: 300px;
    background: var(--bg-card);
    height: 100%;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}