/* Estilos específicos para a barra superior do app Dumont */

.dumont-app-header {
  background: #ffffff;
  padding-top: env(safe-area-inset-top);
  position: relative;
  z-index: 1000;
}

.app-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  max-width: 100%;
  height: 56px;
}

/* Menu hamburger */
.app-menu-toggle {
  background: none;
  border: none;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #1d8ab8;
  transition: background 0.2s ease;
}

.app-menu-toggle:active {
  background: rgba(0, 0, 0, 0.05);
}

.app-menu-toggle svg {
  width: 18px;
  height: 14px;
}

/* Título centralizado */
.app-header-title {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-title-text {
  font-size: 16px;
  font-weight: 900;
  color: #0b3e98;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Espaço direito para manter título centralizado */
.app-header-spacer {
  width: 56px;
}

/* Botão Voltar */
.app-back-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  color: #1b96d1;
  transition: background 0.2s ease;
  text-decoration: none;
}

.app-back-button:active {
  background: rgba(0, 0, 0, 0.05);
}

.app-back-button svg {
  width: 32px;
  height: 32px;
}

/* Botão Compartilhar */
.app-share-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  color: #1b96d1;
  transition: background 0.2s ease;
}

.app-share-button:active {
  background: rgba(0, 0, 0, 0.05);
}

.app-share-button svg {
  width: 24px;
  height: 24px;
}

/* Grid de itens da home */
.app-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px 16px 16px;
}

.app-home-item {
  aspect-ratio: 1.15;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-decoration: none;
  color: #ffffff;
  padding: 20px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}

.app-home-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.app-home-item:active {
  transform: scale(0.95);
  opacity: 0.9;
}

.app-item-icon {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.app-item-icon svg {
  width: 100%;
  height: 100%;
}

.app-item-title {
  font-size: 18px;
  font-weight: 900;
  text-align: left;
  margin: 0;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.app-item-participate {
  background-image: url("/assets/custom_apps/dumont/app_participate-48bf829b.jpg");
  background-size: cover;
  background-position: center;
}

.app-item-news {
  background-image: url("/assets/custom_apps/dumont/app_noticias-a1e902ae.jpg");
  background-size: cover;
  background-position: center;
}

.app-item-top15 {
  background-image: url("/assets/custom_apps/dumont/app_top15-77cbc555.jpg");
  background-size: cover;
  background-position: center;
}

.app-item-podcasts {
  background-image: url("/assets/custom_apps/dumont/app_podcasts-b78dbeaa.jpg");
  background-size: cover;
  background-position: center;
}

/* Container comum do app */
body.app-layout .container-app {
  margin-top: 0;
  padding: 0;
}

/* Remover padding-top grande que deixava um gap acima do conteúdo no app */
body.app-layout main {
  padding-top: 0;
  min-height: 100vh;
}

/* Responsividade */
@media (min-width: 768px) {
  .app-title-text {
    font-size: 18px;
  }

  .app-banner-image {
    max-height: 250px;
  }
}

body.app-layout {
  background-color: #e5e5e5;
  padding-bottom: 70px;
  min-height: 100vh;
}