/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f8ff; /* Light Blue Background */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Site Logo */
.site-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 60px; /* Reverted to 60px as requested */
    height: auto;
    /* border-radius: 50%; REMOVED: User requested square logo for IRD */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.2); REMOVED: User requested no shadow */
    object-fit: contain; /* Changed to contain to show full logo */
    z-index: 1004; /* Adicionado para garantir visibilidade */
    display: block !important; /* Garantir que o logo seja exibido */
    visibility: visible !important; /* Garantir visibilidade */
}


/* Navigation Tabs - Movidos para o centro superior */
.nav-tabs-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    gap: 5px;
}

.nav-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-tab:hover {
    color: #0056b3;
}

.nav-tab.active {
    background: #0056b3;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.3);
}

/* Scroll Container */
.video-feed {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    /* scroll-behavior: smooth;  REMOVIDO para evitar rolagem contínua */
    position: relative;
    overscroll-behavior-y: contain; /* Impede bounce no topo/fundo */
}

/* Individual Video Item */
.video-item {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* FORÇA parar em cada item, impedindo pular vários */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff; /* White card background */
}

/* Video Player Wrapper */
.video-player-wrapper {
    width: 100%;
    height: 100%;
    max-width: 500px; /* Limit width on desktop */
    position: relative;
    background: #000; /* Black background for letterboxing */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading Spinner Container */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #0056b3;
}

/* TikTok specific styling to make it fill */
blockquote.tiktok-embed {
    margin: 0;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay UI (Right Side Actions) */
.actions-sidebar {
    position: absolute;
    right: 15px;
    bottom: 60px; /* Reduzido para não interferir com legendas */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0056b3; /* Primary Blue */
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.action-btn i {
    font-size: 28px;
    margin-bottom: 5px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    color: #0056b3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    background: white;
    border-radius: 50%;
    padding: 2px; /* Small padding for white border effect */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3;
}

.action-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* Bottom Info Overlay */
.video-info {
    position: absolute;
    bottom: 40px; /* Aumentado para evitar sobreposição com elementos inferiores */
    left: 15px;
    right: 80px; /* Make room for sidebar */
    color: #0056b3; /* Primary Blue (Match icons) */
    z-index: 10;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.video-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.video-info p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
}



/* Botão de Follow/Unfollow */
.follow-btn {
    background: transparent !important;
    border: none !important;
    color: #0056b3;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.follow-btn:hover {
    background: transparent !important;
    color: #0056b3;
    opacity: 0.8;
}

.follow-btn.following {
    background: transparent !important;
    border: none !important;
    color: #28a745;
}

.follow-btn.following:hover {
    background: transparent !important;
    border: none !important;
    color: #dc3545;
}
