/* 
 * Confluência dos Mundos - Estilo do Showroom WebGL
 * Tema: Fantasia Medieval
 */

/* ===== HEADER DO SHOWROOM ===== */
.showroom-header {
  background: linear-gradient(rgba(10, 14, 23, 0.7), rgba(26, 43, 71, 0.7)), url('../assets/images/showroom-header-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--bege-pergaminho);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.showroom-header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: url('../assets/images/border-bottom.png') repeat-x;
  background-size: auto 100%;
}

.showroom-header h1 {
  color: var(--dourado-antigo);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  font-size: 3rem;
}

.showroom-header p {
  font-family: var(--fonte-subtitulos);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* ===== FILTROS DO SHOWROOM ===== */
.showroom-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: rgba(26, 43, 71, 0.05);
  border-radius: var(--borda-arredondada);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--azul-profundo);
}

.categories-filter,
.tags-filter {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.categories-filter li a,
.tags-filter li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: white;
  border-radius: 30px;
  color: var(--azul-profundo);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 43, 71, 0.1);
}

.categories-filter li a:hover,
.tags-filter li a:hover {
  background-color: rgba(93, 58, 109, 0.1);
  border-color: var(--roxo-mistico);
}

.categories-filter li a.active,
.tags-filter li a.active {
  background-color: var(--azul-brilhante);
  color: white;
  border-color: var(--azul-brilhante);
}

/* ===== PROJETOS CONTAINER ===== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ===== PROJECT CARD ===== */
.project-card {
  background-color: white;
  border-radius: var(--borda-arredondada);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-preview {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  display: inline-block;
  background-color: var(--azul-brilhante);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--azul-profundo);
}

.project-description {
  margin-bottom: 1.5rem;
  color: var(--cinza-pedra);
  line-height: 1.6;
  flex-grow: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--azul-brilhante);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.project-link svg {
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--roxo-mistico);
}

.project-link:hover svg {
  transform: translateX(5px);
}

/* ===== PAGINAÇÃO ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: white;
  border-radius: var(--borda-arredondada);
  color: var(--azul-profundo);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 43, 71, 0.1);
}

.pagination a:hover {
  background-color: rgba(93, 58, 109, 0.1);
  border-color: var(--azul-brilhante);
}

.pagination a.active {
  background-color: var(--azul-brilhante);
  color: white;
  border-color: var(--azul-brilhante);
}

/* ===== PÁGINA DE PROJETO INDIVIDUAL ===== */
.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-navigation {
  margin-bottom: 2rem;
  color: var(--cinza-pedra);
  font-size: 0.9rem;
}

.project-navigation a {
  color: var(--azul-profundo);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-navigation a:hover {
  color: var(--azul-brilhante);
}

.project-content {
  margin-bottom: 2rem;
}

.project-header {
  margin-bottom: 2rem;
  text-align: center;
}

.project-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--azul-profundo);
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ===== WEBGL CONTAINER ===== */
.webgl-container {
  background-color: var(--preto-cosmico);
  border-radius: var(--borda-arredondada);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.webgl-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

#webgl-content {
  width: 100%;
  height: 600px;
  position: relative;
}

.webgl-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}

.control-btn {
  background-color: var(--azul-brilhante);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--borda-arredondada);
  cursor: pointer;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background-color: var(--roxo-mistico);
  transform: translateY(-2px);
}

/* ===== DESCRIÇÃO DO PROJETO ===== */
.project-description {
  background-color: white;
  border-radius: var(--borda-arredondada);
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-description h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--azul-profundo);
}

.project-description h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--azul-profundo);
}

.project-description p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.technologies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}

.technologies-list li {
  background-color: rgba(26, 43, 71, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
}

.project-description ul:not(.technologies-list),
.project-description ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.project-description ul:not(.technologies-list) li,
.project-description ol li {
  margin-bottom: 0.5rem;
}

.project-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 43, 71, 0.1);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.project-tags span {
  font-weight: 700;
  color: var(--azul-profundo);
}

.project-tags a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(26, 43, 71, 0.05);
  border-radius: 30px;
  color: var(--azul-profundo);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-tags a:hover {
  background-color: rgba(93, 58, 109, 0.1);
  color: var(--azul-brilhante);
}

/* ===== NAVEGAÇÃO ENTRE PROJETOS ===== */
.project-navigation-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.prev-project,
.next-project {
  color: var(--azul-profundo);
  text-decoration: none;
  transition: color 0.3s ease;
  max-width: 45%;
}

.prev-project:hover,
.next-project:hover {
  color: var(--azul-brilhante);
}

/* ===== PROJETOS RELACIONADOS ===== */
.related-projects {
  margin-bottom: 3rem;
}

.related-projects h3 {
  margin-bottom: 1.5rem;
  color: var(--azul-profundo);
  font-size: 1.5rem;
}

.related-projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===== MENSAGENS DE ERRO ===== */
.error-message {
  background-color: rgba(255, 0, 0, 0.1);
  color: #d32f2f;
  padding: 1rem;
  border-radius: var(--borda-arredondada);
  margin: 1rem 0;
  text-align: center;
}

.no-results {
  text-align: center;
  padding: 3rem;
}

.no-results h3 {
  margin-bottom: 1rem;
  color: var(--azul-profundo);
}

.no-results p {
  margin-bottom: 1.5rem;
  color: var(--cinza-pedra);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(93, 58, 109, 0.3);
  border-radius: 50%;
  border-top-color: var(--azul-brilhante);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .project-header h1 {
    font-size: 2rem;
  }
  
  .webgl-frame,
  #webgl-content {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .showroom-header {
    padding: 6rem 0 3rem;
  }
  
  .showroom-header h1 {
    font-size: 2.5rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .webgl-frame,
  #webgl-content {
    height: 400px;
  }
  
  .project-description {
    padding: 1.5rem;
  }
  
  .project-description h2 {
    font-size: 1.8rem;
  }
  
  .project-description h3 {
    font-size: 1.3rem;
  }
  
  .related-projects-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .showroom-header h1 {
    font-size: 2rem;
  }
  
  .showroom-header p {
    font-size: 1rem;
  }
  
  .project-header h1 {
    font-size: 1.8rem;
  }
  
  .webgl-frame,
  #webgl-content {
    height: 300px;
  }
  
  .project-navigation-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .prev-project,
  .next-project {
    max-width: 100%;
  }
}

