/* =========================
   COMPONENTES REUTILIZÁVEIS
   ========================= */

.submit-btn{
  font-family: var(--font-destaque);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg);
  color: var(--color-secondary);
  border: solid 2px var(--color-secondary);
  border-radius: 14px;
  font-size: 1.125rem;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover{
  text-decoration: underline;
}

/* =========================
   CARDS
   ========================= */

.card{
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.project-image,
.blog-home .card-artigo-imagem-link{
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.blog-home .card-artigo-pequeno .card-artigo-imagem-link {
  width: 100%;
}

.project-image img,
.blog-home .card-artigo-imagem-link img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content{
  padding: 0 0.75rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
}

.project-title{
  font-size: 1.025rem;
  font-weight: 500;
  color: var(--color-text-destaque);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-description{
    flex: 1;
    font-size: clamp(0.75rem, 2.5vw, 0.875em);
    line-height: 1.4;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.project-link{
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--color-secondary);
}

.project-link .icone-flecha {
  width: 1.5em;
  height: 1.5em;
  stroke: currentColor; /* herda a cor do texto */
  display: block;
  transition: transform 0.2s ease;
}

.project-link:hover .icone-flecha {
  transform: translateX(3px) rotate(-45deg);
}



/* CARD PROJETOS MOTION*/

.motion-item{
  flex: 0 0 auto; /* Impede que os itens encolham */
  width: clamp(140px, 30vw, 380px);
  height: clamp(140px, 30vw, 380px);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.motion-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.motion-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* =========================
   UTILITY CLASSES
   ========================= */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-arrow:hover {
  color: var(--color-secondary);
  transform: translateX(2px);
}

.link-arrow .arrow-icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.link-arrow:hover .arrow-icon {
  transform: translateX(3px) rotate(-45deg);
}