/* ===== TEMA PARA PÁGINA DE PORTFÓLIO ===== */
/* Usa a paleta de cores moderna definida em color-palette.css */

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

/* Header */
header {
  background: var(--header-bg) !important;
  border-bottom: 2px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Seção principal do portfólio */
#portfolio {
  background-color: var(--bg);
  padding: 3rem 0;
}

/* Título principal do portfólio */
.portfolio-title {
  font-size: 3.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text) !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--button-bg-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-subtitle {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-secondary) !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .portfolio-title {
    font-size: 2.8rem;
  }
  
  .portfolio-subtitle {
    font-size: 1.4rem;
    padding: 0 1.5rem;
  }
}

/* Barra de pesquisa */
.search-input {
  background-color: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--border) !important;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(223, 165, 67, 0.2) !important;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.7;
}

/* Container do portfólio */
.portfolio-container {
  background-color: var(--bg);
}

/* Itens do portfólio */
.portfolio-item {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.portfolio-item:hover {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-4px);
}

.portfolio-item h2 {
  color: var(--accent) !important;
}

.portfolio-item p {
  color: var(--text-secondary) !important;
}

/* Melhor visibilidade no modo escuro */
[data-theme="dark"] .portfolio-item p {
  color: #d4d4d4 !important;
  font-weight: 400;
}

/* Botão "Ver mais" */
.vermais {
  background: var(--button-bg) !important;
  color: var(--button-text) !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.vermais:hover {
  background: var(--button-bg-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

/* Imagens dos projetos */
.portfolio-item img {
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .portfolio-item img {
  opacity: 0.95;
}

.portfolio-item:hover img {
  opacity: 1;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 1rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  border-top: 2px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-info p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--footer-text) !important;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--footer-text) !important;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  background: var(--button-bg);
  transition: all 0.3s ease;
  font-size: 1.4rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--button-bg);
}

.footer-links a:hover {
  background: var(--button-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--button-bg-hover);
}

.footer-whatsapp:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4) !important;
}

.footer-location:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

@media (max-width: 768px) {
  footer {
    padding: 1.5rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .footer-links a {
    width: 100%;
    max-width: 300px;
    font-size: 1.3rem;
  }

  .footer-info p {
    font-size: 1.2rem;
  }
}

/* Modo escuro - efeitos especiais */
[data-theme="dark"] .portfolio-item:hover {
  box-shadow: 
    var(--shadow-md),
    inset 0 0 20px rgba(223, 165, 67, 0.1) !important;
}

[data-theme="dark"] .search-input:focus {
  box-shadow: 
    0 0 0 3px rgba(223, 165, 67, 0.15),
    inset 0 0 10px rgba(223, 165, 67, 0.05) !important;
}

/* Títulos e textos */
h1, h2, h3, h4, h5, h6 {
  color: var(--text) !important;
}

p {
  color: var(--text-secondary) !important;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--button-bg-hover);
}

/* Responsividade */
@media (max-width: 768px) {
  .search-input {
    font-size: 1.4rem;
  }
  
  .portfolio-item {
    margin: 12px 0;
  }
}

/* Animações suaves */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Seleção de texto */
::selection {
  background-color: var(--accent);
  color: var(--white);
}
