/**
 * =============================================================================
 * NOME DO ARQUIVO: reels.css
 * =============================================================================
 * 
 * FINALIDADE:
 * Estilos para o módulo de Reels (feed de vídeos).
 * 
 * VERSÃO: 1.0
 * =============================================================================
 */

/* =============================================================================
 * RESET E BASE
 * ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #000;
    overflow: hidden;
}

/* =============================================================================
 * CONTAINER PRINCIPAL
 * ============================================================================= */
.container {
	height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
}

/* =============================================================================
 * SEÇÃO DE VÍDEO
 * ============================================================================= */
.video-section {
	height: 100%;
	width: auto;
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

/* =============================================================================
 * VIDEO PLAYER
 * ============================================================================= */
video {
	width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto!important;  /* ← Centraliza horizontalmente */
    position: relative;
    left: 50%!important;
    transform: translateX(-50%)!important;  /* ← Centralização absoluta */
}

video.loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =============================================================================
 * LOADING PLACEHOLDER
 * ============================================================================= */
.loading-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 5;
    display: none;
    font-family: Arial, sans-serif;
    text-align: center;
}

.loading-video button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.loading-video button:hover {
    background: #cc0000;
}

/* =============================================================================
 * SETAS DE NAVEGAÇÃO (DESKTOP)
 * ============================================================================= */
.nav-arrows {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .nav-arrows {
        display: none;
    }
}

/* =============================================================================
 * INFORMAÇÕES DO VÍDEO (LADO ESQUERDO)
 * ============================================================================= */
.video-info {
    position: absolute;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    font-family: Arial, sans-serif;
    max-width: 40%;

    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 20px 15px 50px 15px;
    z-index: 10;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .video-info {
        max-width: 70%;
        bottom: 20px;
        left: 15px;
    }
}

.info-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.info-title a {
    color: white;
    text-decoration: none;
}

.info-title a:hover {
    text-decoration: underline;
}

.info-location {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.info-location svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.info-status {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.status-verified {
    color: #4ade80;
}

.status-fake {
    color: #f87171;
}

.status-presencial {
    color: #60a5fa;
}

.status-virtual {
    color: #c084fc;
}

.info-stats {
    font-size: 13px;
    display: flex;
    gap: 12px;
    opacity: 0.8;
}

/* =============================================================================
 * BOTÕES DE INTERAÇÃO (LADO DIREITO)
 * ============================================================================= */
.interacoes {
    position: absolute;
    right: 15px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.interacoes button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.interacoes button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.interacoes button:active {
    transform: scale(0.95);
}

.interacoes svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.interacoes span {
    font-size: 12px;
}

/* =============================================================================
 * BOTÃO DE SOM
 * ============================================================================= */
.sound-btn-container {
    position: absolute;
    right: 15px;
    bottom: 30px;
    z-index: 10;
}

.sound-toggle {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* =============================================================================
 * CONTADOR DE PÁGINAS
 * ============================================================================= */
.page-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: white;
    z-index: 10;
}

/* =============================================================================
 * BADGE DE PATROCINADO
 * ============================================================================= */
.sponsored-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.sponsored-premium {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.8), rgba(255, 122, 0, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(255, 0, 85, 0.3);
}

.sponsored-normal {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.sponsored-badge.has-details {
    cursor: pointer;
}

.sponsored-badge.has-details:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.9);
}

.sponsored-badge.has-details:active {
    transform: scale(0.98);
}

.sponsored-icon {
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.sponsored-text {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.sponsored-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.sponsored-name {
    color: #ffaa00;
    font-weight: 600;
}

.sponsored-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: normal;
}

@media (max-width: 768px) {
    .sponsored-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .sponsored-icon {
        font-size: 12px;
    }
    
    .sponsored-details {
        display: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sponsored-badge {
    animation: fadeInUp 0.3s ease-out;
}

/* =============================================================================
 * MENSAGENS
 * ============================================================================= */
.mensagem {
    color: white;
    text-align: center;
    margin-top: 40%;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

.mensagem p {
    margin-bottom: 20px;
}

.btn-reels {
    background: linear-gradient(135deg, #ff0055, #ff7a00);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-reels:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.btn-reels:active {
    transform: scale(0.97);
}

/* =============================================================================
 * LOADING INFINITO
 * ============================================================================= */
.loading {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
    font-family: Arial, sans-serif;
}