/* 1. Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fafafa;
    color: #262626;
    padding-top: 54px; 
}

/* 2. Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dbdbdb;
    padding: 8px 20px; 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.logo { width: 300px; }
.logo-img { width: 100%; height: auto; display: block; }
.logo-mobile { display: none; }

/* 3. Layout */
.main-container {
    max-width: 935px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.feed { width: 100%; max-width: 935px; }

.profile-header-info {
    padding: 20px 0;
    text-align: center;
}

/* =========================================
   ESTILOS DO SLIDE (SEM PAUSA)
   ========================================= */
.slider-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dbdbdb;
    background-color: #fff;
}

.slider-track {
    display: flex;
    width: 500%;
    /* 8 segundos total = 2 segundos por imagem */
    animation: slide-animation 8s infinite cubic-bezier(0.7, 0, 0.3, 1);
}

.slider-track img {
    width: 20%;
    height: 450px;
    object-fit: cover;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #dbdbdb;
    border-radius: 50%;
}

/* Bolinhas sincronizadas com 8s */
.d1 { animation: dot-highlight 8s infinite; }
.d2 { animation: dot-highlight 8s infinite 2s; }
.d3 { animation: dot-highlight 8s infinite 4s; }
.d4 { animation: dot-highlight 8s infinite 6s; }

@keyframes dot-highlight {
    0%, 20% { background-color: #a8a8a8; transform: scale(1.2); }
    25%, 100% { background-color: #dbdbdb; transform: scale(1); }
}

@keyframes slide-animation {
    0%, 20%   { margin-left: 0; }
    25%, 45%  { margin-left: -100%; }
    50%, 70%  { margin-left: -200%; }
    75%, 95%  { margin-left: -300%; }
    100%      { margin-left: -400%; }
}

/* ========================================= */

.divider {
    border: 0;
    height: 1px;
    background-color: #dbdbdb;
    margin-bottom: 20px; 
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 4px;
}

.post-grid-item {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
}

.grid-img { width: 100%; height: auto; object-fit: cover; display: block; }

.post-caption-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #00376b;
    font-size: 13px;
    border-top: 1px solid #efefef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .logo-desktop { display: none; }
    .logo-mobile { display: block; width: 100%; max-height: 50px; }
    .profile-grid { grid-template-columns: 1fr; }
    .main-container { padding: 0 10px; }
    
    /* Slide no Mobile */
    .slider-track img { height: 280px; }
    .slider-container { border-radius: 0; border-left: none; border-right: none; }
}

.site-footer {
    background-color: #fafafa;
    padding: 40px 0;
    margin-top: 50px; 
    border-top: 1px solid #dbdbdb;
    text-align: center;
}

.instagram-link {
    display: inline-flex; 
    align-items: center;
    gap: 8px; 
    text-decoration: none;
    color: #262626;
    font-weight: 600;
    margin-bottom: 20px;
}

.instagram-icon { width: 20px; height: 20px; }
.copyright { color: #737373; font-size: 12px; }

.whatsapp-fab {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    z-index: 1000; 
    background-color: #25D366; 
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}
.whatsapp-fab img { width: 45px; height: 45px; }