/* ============================================
   CERTIFICATES PAGE — certificates.css
   Mantém a identidade visual do portfólio
   ============================================ */

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Page wrapper ---- */
.certificates {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 3rem;
}

.container-certificates {
  width: 95%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Headline sub-text ---- */
.headline-desc {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 0.5rem;
  text-align: center;
  max-width: 560px;
}

/* ---- Filter buttons ---- */
.cert-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cert-filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid #2a2a2a;
  border-radius: 50px;
  background: transparent;
  color: var(--gray);
  font-size: 0.85rem;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
}

.cert-filter-btn:hover {
  border-color: var(--blue);
  color: var(--white);
}

.cert-filter-btn.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ---- Cards grid ---- */
.cards-certificates {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}

/* ---- Individual card ---- */
.card-certificate {
  background-color: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInCard 0.4s ease forwards;
}

.card-certificate:hover {
  border-color: #2a2a2a;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.08);
}

/* ---- Card header ---- */
.cert-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cert-issuer-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Color variants by category */
.cert-issuer-logo.cloud   { background: rgba(255, 153, 0, 0.12); color: #ff9900; }
.cert-issuer-logo.dev     { background: rgba(0, 123, 255, 0.12); color: var(--blue); }
.cert-issuer-logo.data    { background: rgba(0, 200, 140, 0.12); color: #00c88c; }
.cert-issuer-logo.mobile  { background: rgba(167, 0, 255, 0.12); color: #a700ff; }
.cert-issuer-logo.soft    { background: rgba(255, 80, 80, 0.12); color: #ff5050; }

.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
}

.cert-date {
  font-size: 0.7rem;
  color: #555;
}

/* ---- Card body ---- */
.cert-body {
  flex: 1;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.7rem;
  font-family: "Montserrat", sans-serif;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cert-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: #1a1a1a;
  border: 1px solid #252525;
  border-radius: 20px;
  color: var(--gray);
}

/* ---- Card footer ---- */
.cert-footer {
  border-top: 1px solid #1e1e1e;
  padding-top: 0.9rem;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.02em;
}

.cert-btn:hover {
  gap: 0.7rem;
  opacity: 0.8;
}

.cert-btn i {
  font-size: 0.75rem;
}

/* ---- Stats bar ---- */
.cert-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 1.2rem 2rem;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: #2a2a2a;
}

/* ---- Active nav link ---- */
.active-nav {
  color: var(--blue) !important;
}

/* ---- Responsividade ---- */

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .cards-certificates {
    grid-template-columns: repeat(2, 1fr);
  }
  .certificates {
    width: 92%;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .certificates {
    width: 95%;
  }
  .cards-certificates {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .cards-certificates {
    grid-template-columns: 1fr;
  }
  .cert-stats {
    gap: 1rem;
    padding: 1rem 1.2rem;
  }
  .stat-divider {
    display: none;
  }
  .cert-stats {
    flex-direction: row;
    justify-content: space-around;
  }
}
