/* Certificate Shelf Styles */
.certificate-shelf {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  height: 380px;
  z-index: 1000;
}

/* Courses Shelf - İkinci shelf için */
.courses-shelf {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 300px;
  height: 380px;
  z-index: 1000;
}

/* Logo renkleri */
.microsoft { background: linear-gradient(45deg, #00BCF2, #0078D4); }
.scrum { background: linear-gradient(45deg, #4898b3, #46576e); }
.ripencc { background: linear-gradient(45deg, #ff6f00, #ffffff); }
.isc2 { background: linear-gradient(45deg, #1A237E, #3F51B5); }
.sailpoint { background: linear-gradient(45deg, #bb37ac, #12329a); }
.udemy { background: linear-gradient(45deg, #4898b3, #E64A19); }
.tetrate { background: linear-gradient(45deg, #FA582D, #E64A19); }
.unique { background: linear-gradient(45deg, #007bff, #ffffff); }
.uncommon { background: linear-gradient(45deg, #007bff, #ffffff); }
.omada { background: linear-gradient(45deg, #76bfa3, #333436); }

.certificate-shelf,
.courses-shelf {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.certificate-shelf:hover,
.courses-shelf:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.shelf-header,
.courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shelf-title,
.courses-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color, #333);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shelf-icon,
.courses-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.certificate-count,
.courses-count {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.certificate-grid,
.courses-grid {
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding-right: 8px;
}

.certificate-grid::-webkit-scrollbar,
.courses-grid::-webkit-scrollbar {
  width: 6px;
}

.certificate-grid::-webkit-scrollbar-track,
.courses-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.certificate-grid::-webkit-scrollbar-thumb,
.courses-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
}

.certificate-card,
.course-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.certificate-card::before,
.course-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.certificate-card:hover::before,
.course-card:hover::before {
  opacity: 1;
}

.certificate-card:hover,
.course-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.certificate-logo,
.course-logo {
  width: 70px;
  height: 35px;
  margin: 0 auto 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
}



.certificate-name,
.course-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-color, #333);
  line-height: 1.2;
  margin-bottom: 4px;
}

.certificate-issuer,
.course-issuer {
  font-size: 8px;
  color: var(--text-secondary, #666);
  opacity: 0.8;
}

.certificate-year,
.course-year {
  font-size: 7px;
  color: var(--text-secondary, #666);
  opacity: 0.6;
  margin-top: auto;
}

/* Responsive ayarlar */
@media (max-width: 1200px) {
  .certificate-shelf,
  .courses-shelf {
    width: 280px;
    height: 360px;
  }
  
  .courses-shelf {
    top: 400px;
  }
}

@media (max-width: 1024px) {
  .certificate-shelf,
  .courses-shelf {
    width: 260px;
    height: 340px;
  }
  
  .courses-shelf {
    top: 380px;
  }
}

@media (max-width: 768px) {
  .certificate-shelf,
  .courses-shelf {
    position: relative;
    top: 0 !important;
    right: 0;
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 15px;
  }
  
  .certificate-grid,
  .courses-grid {
    height: 280px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .certificate-card,
  .course-card {
    height: 110px;
    padding: 12px;
  }
  
  .certificate-logo,
  .course-logo {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .certificate-name,
  .course-name {
    font-size: 9px;
  }
  
  .certificate-issuer,
  .course-issuer {
    font-size: 7px;
  }
}

@media (max-width: 480px) {
  .certificate-shelf,
  .courses-shelf {
    margin: 15px 0;
    padding: 15px;
  }
  
  .certificate-grid,
  .courses-grid {
    height: 250px;
    gap: 8px;
  }
  
  .certificate-card,
  .course-card {
    height: 100px;
    padding: 10px;
  }
  
  .certificate-name,
  .course-name {
    font-size: 8px;
  }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .certificate-shelf,
  .courses-shelf {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .certificate-card,
  .course-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .shelf-title,
  .courses-title {
    color: #fff;
  }
  
  .certificate-name,
  .course-name {
    color: #fff;
  }

  .certificate-issuer,
  .certificate-year,
  .course-issuer,
  .course-year {
    color: #ccc;
  }
}

/* Animation for loading */
.certificate-card,
.course-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.certificate-card:nth-child(1) { animation-delay: 0.1s; }
.certificate-card:nth-child(2) { animation-delay: 0.2s; }
.certificate-card:nth-child(3) { animation-delay: 0.3s; }
.certificate-card:nth-child(4) { animation-delay: 0.4s; }
.certificate-card:nth-child(5) { animation-delay: 0.5s; }
.certificate-card:nth-child(6) { animation-delay: 0.6s; }
.certificate-card:nth-child(7) { animation-delay: 0.7s; }
.certificate-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Sadece courses-shelf için eksik grid yapısı */
.courses-shelf .certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}