/* D-coding Learning Center Styles */

/* Base Styles */
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  position: relative;
  color: white;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

/* Glassmorphism Effects */
.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  position: relative;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Gradients */
.gradient-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Bar */
#navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s duration-300;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}

#navbar .nav-link {
  position: relative;
  transition: all 0.3s ease;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: #10B981;
  transition: all 0.3s ease;
}

#navbar .nav-link:hover::after {
  width: 100%;
}

/* Secondary Navigation */
.secondary-nav {
  position: fixed;
  top: 55px;
  width: 100%;
  z-index: 40;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.secondary-nav .nav-item {
  transition: all 0.3s ease;
}

.secondary-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.secondary-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* Learning Path Flowchart */
.learning-path {
  margin: 60px 0;
}

.path-step {
  transition: all 0.3s ease;
}

.path-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* Role-based Cards */
.role-cards {
  margin: 60px 0;
}

.role-card {
  min-height: 300px;
}

.role-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.role-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Advanced Modules */
.advanced-modules {
  margin: 60px 0;
}

.module-card {
  min-height: 250px;
}

/* Industry Solutions */
.industry-solutions {
  margin: 60px 0;
}

.solution-card {
  min-height: 280px;
}

/* Resources Section */
.resources-section {
  margin: 60px 0;
}

.resource-card {
  min-height: 200px;
}

/* Footer */
.footer {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding: 40px 0 20px;
}

.footer-column {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #10B981;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
  }
  
  .learning-path {
    margin: 40px 0;
  }
  
  .role-cards,
  .advanced-modules,
  .industry-solutions,
  .resources-section {
    margin: 40px 0;
  }
  
  .role-card,
  .module-card,
  .solution-card,
  .resource-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .footer {
    padding: 30px 0 15px;
  }
}

/* Mobile Menu */
.mobile-menu {
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu .nav-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu .nav-item:last-child {
  border-bottom: none;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

.badge-primary {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-secondary {
  background: rgba(59, 130, 246, 0.2);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table th,
.table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.table th {
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
  color: #10B981;
  font-size: 0.875rem;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Card Styles */
.card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 15px;
}

.card-footer {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
  animation: slideUp 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  border-top-color: #10B981;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.7);
}

/* Selection Styles */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(16, 185, 129, 0.3);
  color: white;
}

/* Focus Styles */
*:focus {
  outline: 2px solid rgba(16, 185, 129, 0.5);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #10B981;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  body {
    background: black;
    color: white;
  }
  
  .glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
  }
  
  .btn-primary {
    background: white;
    color: black;
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}