/* ==========================================================================
   CONFY LADY - Certificates Widget Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.voc-certificates-section {
  position: relative;
  background-image: url('../images/certificates/sertifikalarimizbg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 80px 4% 90px 4%;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
}

.voc-certificates-container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Başlık ve Açıklama */
.voc-certificates-header {
  text-align: center;
  margin-bottom: 48px;
}

.voc-certificates-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  color: #1a1a3a;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
  line-height: 1.15;
}

.voc-certificates-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  color: #64748b;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3x3 Kart Izgarası */
.voc-certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Kart Kutusu */
.voc-cert-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(73, 38, 127, 0.08);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(73, 38, 127, 0.04);
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
}

.voc-cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(73, 38, 127, 0.12);
  border-color: rgba(73, 38, 127, 0.25);
}

.voc-cert-card.voc-cert-card--no-pdf {
  cursor: default;
}

.voc-cert-card.voc-cert-card--no-pdf:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(73, 38, 127, 0.04);
  border-color: rgba(73, 38, 127, 0.08);
}

/* Sol Rozet (Amblem) */
.voc-cert-card__badge-wrapper {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #faf8fc;
  padding: 6px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.voc-cert-card:hover .voc-cert-card__badge-wrapper {
  transform: scale(1.05);
}

.voc-cert-card__badge-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50%;
  display: block;
}

/* Kart İçeriği */
.voc-cert-card__content {
  flex: 1;
  min-width: 0;
}

.voc-cert-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.25;
  color: #49267f;
  transition: color 0.2s ease;
}

.voc-cert-card:hover .voc-cert-card__title {
  color: #74579c;
}

.voc-cert-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: #52637a;
  line-height: 1.48;
  font-weight: 400;
  margin: 0;
}

/* Sağ Belge / PDF Önizleme */
.voc-cert-card__doc-wrapper {
  width: 78px;
  height: 104px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.voc-cert-card__doc-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.3s ease;
}

.voc-cert-card:hover .voc-cert-card__doc-img {
  transform: scale(1.04);
}

/* "PDF İncele" Hover Rozeti */
.voc-cert-card__doc-wrapper::after {
  content: attr(data-hover-label);
  position: absolute;
  inset: 0;
  background: rgba(73, 38, 127, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  z-index: 5;
  letter-spacing: 0.3px;
}

.voc-cert-card:hover .voc-cert-card__doc-wrapper::after {
  opacity: 1;
}

/* Alt 3 Temel Değer Şeridi (Pillars Strip) */
.voc-cert-pillars-strip {
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 36px;
  box-shadow: 0 6px 24px rgba(73, 38, 127, 0.06);
  border: 1px solid rgba(73, 38, 127, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  box-sizing: border-box;
}

.voc-cert-pillar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.voc-cert-pillar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #f0e6f5;
}

.voc-cert-pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f5eff9;
  border: 1px solid #ebdcf2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #49267f;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.voc-cert-pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.voc-cert-pillar-item:hover .voc-cert-pillar-icon {
  background: #49267f;
  color: #ffffff;
  border-color: #49267f;
  transform: scale(1.06);
}

.voc-cert-pillar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1a1a3a;
  margin: 0 0 2px 0;
}

.voc-cert-pillar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   PDF MODAL (AÇILIR PENCERE)
   ========================================================================== */
.voc-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voc-pdf-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.voc-pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 45, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.voc-pdf-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 88vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transform: scale(0.94) translateY(18px);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  box-sizing: border-box;
}

.voc-pdf-modal.active .voc-pdf-modal__dialog {
  transform: scale(1) translateY(0);
}

.voc-pdf-modal__header {
  background: #49267f;
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.voc-pdf-modal__title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.voc-pdf-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  flex-shrink: 0;
}

.voc-pdf-modal__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.voc-pdf-modal__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 2px 0;
}

.voc-pdf-modal__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #e5d7ee;
  font-weight: 400;
}

.voc-pdf-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voc-pdf-modal__download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d85c96;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(216, 92, 150, 0.3);
}

.voc-pdf-modal__download-btn:hover {
  background: #c24982;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(216, 92, 150, 0.4);
}

.voc-pdf-modal__download-btn svg {
  width: 15px;
  height: 15px;
}

.voc-pdf-modal__close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
}

.voc-pdf-modal__close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.voc-pdf-modal__body {
  flex: 1;
  width: 100%;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.voc-pdf-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .voc-certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .voc-cert-pillars-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }

  .voc-cert-pillar-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .voc-certificates-section {
    padding: 60px 16px 60px 16px;
  }

  .voc-pdf-modal__dialog {
    height: 94vh;
    border-radius: 14px;
  }

  .voc-pdf-modal__header {
    padding: 12px 16px;
  }

  .voc-pdf-modal__title {
    font-size: 1rem;
  }

  .voc-pdf-modal__subtitle {
    display: none;
  }

  .voc-pdf-modal__download-btn span {
    display: none;
  }

  .voc-pdf-modal__download-btn {
    padding: 8px 12px;
  }
}

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

  .voc-certificates-title {
    font-size: 2.2rem;
  }

  .voc-cert-card {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 18px 16px;
  }

  .voc-cert-card__content {
    width: 100%;
    order: 3;
    margin-top: 12px;
  }
}
