/* CONTEÚDO PARA: css/portfolio-style.css (v7 - Correção Final Indicadores/Fundo) */

/* --- Estilos da Seção do Portfólio --- */
.portfolio-section {
    padding-top: 3rem;
    /* Remove padding inferior para indicadores ficarem colados */
    /* padding-bottom: 4rem; */
    /* Remove background explícito, deixa herdar do body */
    /* background-color: #f8f9fa; */
    /* body:not(.light) & { background-color: #212529; } */
    transition: background-color 0.3s linear; /* Herda a transição do body */
    width: 100%;
    position: relative;
    overflow: hidden; /* Esconde setas que saem */
}
/* Título da Seção (ainda usa container para centralizar) */
.portfolio-section .section-title {
    color: #343a40;
    margin-bottom: 3rem !important;
}
body:not(.light) .portfolio-section .section-title {
    color: #e9ecef;
}

/* --- Estilos do Carrossel --- */
#portfolioCarousel {
    background-color: transparent; /* Garante que não haja fundo próprio */
    border-radius: 0;
    position: relative;
    min-height: 450px; /* Altura mínima ajustada */
    margin: 0 auto;
    /* max-width: 1600px; */ /* Opcional */
}

/* Item do Carrossel */
#portfolioCarousel .carousel-item {
    text-align: center;
    /* Fundo transparente para mostrar o fundo da seção */
    background-color: transparent;
}

/* Imagem Dentro do Item */
#portfolioCarousel .portfolio-image {
    max-width: 100%;
    max-height: 70vh; /* Mantém limite de altura */
    height: auto;
    width: auto; /* Para imagens menores que o container */
    object-fit: contain;
    display: block; /* Para margin auto funcionar */
    margin: 0 auto; /* Centraliza horizontalmente */
    padding-bottom: 60px; /* Espaço abaixo para legenda e indicadores */
}

/* Legenda (Caption) - Sem Fundo, com Sombra */
#portfolioCarousel .carousel-caption {
    position: absolute;
    bottom: 50px; /* Sobe um pouco para dar espaço aos indicadores */
    left: 5%;
    right: 5%;
    width: 90%;
    background: none;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.9), 1px -1px 2px rgba(0, 0, 0, 0.9), -1px 1px 2px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9);
    z-index: 10;
}
#portfolioCarousel .carousel-caption h5 {
    font-weight: bold; margin-bottom: 0.3rem; font-size: 1.1rem;
}
#portfolioCarousel .carousel-caption p {
    font-size: 0.9rem; margin-bottom: 0; color: #f0f0f0;
}

/* Controles (Setas) - Posicionadas DENTRO */
#portfolioCarousel .carousel-control-prev,
#portfolioCarousel .carousel-control-next {
    position: absolute;
    top: 0; /* Alinha ao topo */
    bottom: 0; /* Estica verticalmente */
    height: 100%; /* Altura total */
    width: 8%; /* Largura da área clicável */
    display: flex; /* Para centralizar ícone */
    align-items: center; /* Centraliza ícone verticalmente */
    justify-content: center; /* Centraliza ícone horizontalmente */
    opacity: 0.5; /* Mais sutil por padrão */
    transition: opacity 0.2s ease;
    z-index: 11;
    background: none; /* Remove qualquer fundo do botão */
    border: none; /* Remove qualquer borda do botão */
}
#portfolioCarousel .carousel-control-prev:hover,
#portfolioCarousel .carousel-control-next:hover {
    opacity: 0.9;
}
#portfolioCarousel .carousel-control-prev { left: 0; } /* Alinha na esquerda */
#portfolioCarousel .carousel-control-next { right: 0; } /* Alinha na direita */

/* Ícone das Setas */
#portfolioCarousel .carousel-control-prev-icon,
#portfolioCarousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4); /* Fundo escuro semi-transparente */
  border-radius: 50%;
  padding: 1.2rem; /* Aumenta mais o círculo */
  background-size: 50% 50%;
  border: 1px solid rgba(255, 255, 255, 0.15); /* Borda sutil */
  width: auto; /* Tamanho automático */
  height: auto;
}
/* Setas modo escuro */
body:not(.light) #portfolioCarousel .carousel-control-prev-icon,
body:not(.light) #portfolioCarousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
}


/* Indicadores (Bolinhas/Traços) - CENTRALIZADOS e Abaixo da Legenda */
#portfolioCarousel .carousel-indicators {
    position: absolute;
    bottom: 10px; /* Posição abaixo da legenda */
    left: 50%;
    transform: translateX(-50%); /* Centraliza horizontalmente */
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
    list-style: none;
    margin-bottom: 0;
}
#portfolioCarousel .carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 25px;
  height: 4px;
  padding: 0;
  margin-right: 4px;
  margin-left: 4px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  opacity: 0.5;
  transition: opacity .6s ease, background-color 0.3s ease;
  border-radius: 2px;
}
#portfolioCarousel .carousel-indicators .active {
  background-color: #5161ce; /* Ativo Claro */
  opacity: 1;
}

/* Indicadores modo escuro */
body:not(.light) #portfolioCarousel .carousel-indicators [data-bs-target] {
  background-color: #fff;
  opacity: 0.5;
}
body:not(.light) #portfolioCarousel .carousel-indicators .active {
  background-color: #9b88c4; /* Ativo Escuro */
  opacity: 1;
}