/* =====================================================
   CERTIFICATION TOGGLE SYSTEM STYLES
   ===================================================== */

/* Container */
.cert-selector-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid #ff6b35;
}

.cert-selector-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.cert-selector-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cert-selector-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cert-selector-title .icon {
  font-size: 2rem;
}

.cert-selector-subtitle {
  color: #a8b2d1;
  font-size: 1rem;
  margin: 0;
}

/* Certification Buttons */
.cert-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cert-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.cert-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
  transition: left 0.5s ease;
}

.cert-btn:hover::before {
  left: 100%;
}

.cert-btn:hover {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.cert-btn.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border-color: #ff6b35;
  box-shadow: 0 5px 25px rgba(255, 107, 53, 0.4);
  transform: scale(1.05);
}

.cert-btn.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.cert-icon {
  font-size: 2rem;
}

.cert-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.cert-code {
  color: #a8b2d1;
  font-size: 0.85rem;
}

.cert-btn.active .cert-name,
.cert-btn.active .cert-code {
  color: #fff;
}

/* Context Section */
.cert-context-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cert-context-box {
  background: linear-gradient(135deg, #1e1e2e 0%, #252538 100%);
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: none;
  animation: fadeInUp 0.5s ease;
}

.cert-context-box.active {
  display: block;
}

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

/* Context Header */
.context-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 107, 53, 0.3);
  flex-wrap: wrap;
  gap: 1rem;
}

.context-header h3 {
  color: #ff6b35;
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.context-badge {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Context Content */
.context-content {
  display: grid;
  gap: 1.5rem;
}

.context-info {
  color: #e0e0e0;
  line-height: 1.8;
}

.context-info p {
  margin-bottom: 1rem;
}

.context-info strong {
  color: #ff6b35;
}

.context-info ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.context-info li {
  margin-bottom: 0.5rem;
  color: #c8d0e0;
}

/* Context Actions */
.context-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

.btn-primary .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(5px);
}

.context-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-item {
  color: #a8b2d1;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cert-selector-container {
    padding: 1.5rem 1rem;
  }
  
  .cert-selector-title {
    font-size: 1.3rem;
  }
  
  .cert-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cert-btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .context-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .context-header h3 {
    font-size: 1.2rem;
  }
  
  .cert-context-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cert-selector-title {
    font-size: 1.1rem;
    flex-direction: column;
  }
  
  .cert-selector-subtitle {
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Accessibility */
.cert-btn:focus,
.btn-primary:focus {
  outline: 3px solid #ff6b35;
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .cert-selector-container {
    display: none;
  }
  
  .cert-context-box {
    display: block !important;
    page-break-inside: avoid;
  }
}
