/* =============================================
   CERTIFICATES.CSS — Certificates Section Styles
   ============================================= */

/* ── Section base ── */
#sertifikalar {
  background: var(--surface-raised, #f9fafb);
  padding-block: 80px;
}

html.dark #sertifikalar {
  background: #0f0f0f;
}

/* ── Container ── */
.certificates-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.certificates-container .section-header {
  margin-bottom: 52px;
}

/* ── Grid ── */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ── Hidden cards (show more target) ── */
.cert-card.cert-hidden {
  display: none;
}

.cert-card.cert-hidden.cert-visible {
  display: flex;
  animation: certReveal 0.4s ease both;
}

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

/* ── Card ── */
.cert-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--surface-border, rgba(0, 0, 0, 0.07));
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform var(--transition-slow),
    border-color var(--transition-base),
    box-shadow var(--transition-slow);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow:
    0 10px 36px rgba(249, 115, 22, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ── Card header row ── */
.cert-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* ── Orange icon box ── */
.cert-icon-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange) 0%, #fb923c 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.cert-icon-box i {
  font-size: 1rem;
  color: #ffffff;
}

/* ── Card text block ── */
.cert-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cert-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--heading-color, #1a1a2e);
  line-height: 1.3;
  white-space: normal;
}

.cert-issuer {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.cert-year {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted, #6b7280);
  font-weight: 400;
}

/* ── Show More / Less Button ── */
.cert-show-more-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cert-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--orange);
  background: transparent;
  border: 2px solid var(--orange);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
}

.cert-show-more-btn:hover {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.cert-show-more-btn:active {
  transform: translateY(0);
}

/* ── Chevron icon rotation ── */
.cert-show-more-btn .cert-chevron {
  display: inline-block;
  transition: transform var(--transition-base);
  font-size: 0.8rem;
}

.cert-show-more-btn.expanded .cert-chevron {
  transform: rotate(180deg);
}

/* ── Scroll reveal: section header & cards ── */
.cert-card.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.cert-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dark mode ── */
html.dark .cert-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark .cert-card:hover {
  border-color: var(--orange);
  box-shadow:
    0 12px 36px rgba(249, 115, 22, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

html.dark .cert-name {
  color: #f5f5f4;
}

html.dark .cert-year {
  color: #a8a29e;
}

html.dark .cert-show-more-btn {
  border-color: var(--orange);
  color: var(--orange-light);
}

html.dark .cert-show-more-btn:hover {
  background: var(--orange);
  color: #ffffff;
}

/* ── Light mode specific ── */
html:not(.dark) #sertifikalar {
  background: #f9fafb;
}

html:not(.dark) .cert-name {
  color: #1a1a2e;
}
