/**
 * CidadeTur BR - Estilos do Conteúdo Principal
 * Área principal, relógio, informações e elementos visuais
 */

/* ============================================
   ÁREA PRINCIPAL (MAIN CONTENT)
   ============================================ */

.main-content {
    flex: 1;
    background-color: var(--gray-bg);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--sidebar-width);
    height: 100vh;
    width: calc(100% - var(--sidebar-width));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, width 0.3s ease;
    overflow: hidden;
    z-index: 1;
    /* Main content fica fixo, não rola com o body */
}

.main-content.expanded {
    left: 0;
    width: 100%;
}

/* Botões empilhados na borda esquerda do banner (pág. 1 do PDF):
   Recolher (topo) → Web Rádios → Autor da Foto (na linha da data) */
.btn-recolher-content {
    position: absolute;
    left: 15px;
    bottom: 146px;
    width: 132px;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.3s;
    z-index: 100;
}

.btn-recolher-content:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.btn-recolher-content .icon-arrow {
    font-size: 16px;
}

.btn-recolher-content .text-recolher {
    font-weight: normal;
}

/* Botão Web Rádios abaixo do Recolher */
.btn-web-radios {
    position: absolute;
    left: 15px;
    bottom: 108px;
    width: 132px;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 100;
}

.btn-web-radios:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* Dica de ferramenta amarela dos botões do banner */
.banner-btn-tooltip {
    display: none;
    position: absolute;
    left: calc(100% + 8px);
    top: 70%;
    transform: translateY(-50%);
    background-color: #fde55d;
    color: #333;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 3px;
    z-index: 110;
}

.btn-recolher-content:hover .banner-btn-tooltip,
.btn-web-radios:hover .banner-btn-tooltip {
    display: block;
}

/* Informações Centrais */
.info-center {
    position: absolute;
    bottom: 70px;
    right: 60px;
    text-align: right;
    z-index: 10;
}

.clock-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.clock {
    font-size: 120px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1;
    position: relative;
    display: inline-block;
}

#clock-x {
    position: absolute;
    top: 14px;
    right: -20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
}

.clock.hidden {
    display: none;
}

.clock-show-btn {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.clock-show-btn.active {
    display: inline-block;
}

.site-title {
    font-size: 24px;
    color: var(--yellow-accent);
    margin-bottom: 10px;
    font-weight: normal;
}

.site-title-link {
    color: inherit;
    text-decoration: none;
}

.date-info {
    font-size: 16px;
    color: white;
}

/* Escurecer um pouco o banner recolhido (aba expandida) para realçar as setas
   laterais e a lupa da imagem (nota da postagem / pág. 11 do PDF). Só na aba
   recolhida, onde as setas aparecem; os controles ficam acima (z-index >= 10). */
.main-content.expanded::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1;
    pointer-events: none;
}

/* Botões laterais de navegação (págs. 11 e 7): a setinha fica sempre visível
   sobre a imagem; a BARRA sombreada — o gradiente que escurece a beirada de
   cima a baixo — nasce OCULTA e só aparece quando o mouse passa sobre ela
   (correção 16/07). No mock da pág. 7 é exatamente isso: a barra apontada
   aparece sombreada e a do outro lado fica sem sombra, com a setinha visível
   nas duas. Por isso o que anima é só o background, e não o elemento todo. */
.side-nav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    z-index: 10;
    background: none;
    transition: background 0.3s;
}
.side-nav-prev {
    left: 0;
}
.side-nav-next {
    right: 0;
}
.side-nav-prev:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.60), transparent);
}
.side-nav-next:hover {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.60), transparent);
}
/* Setas só ficam disponíveis quando a aba lateral ("página") é recolhida
   (pág. 11 do PDF). O collapse aplica .expanded no #mainContent. */
.main-content.expanded .side-nav-arrow {
    display: flex;
}

