/* VPN App Styles */
.vpn-app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Dark Mode Anpassungen */
@media (prefers-color-scheme: dark) {
  .vpn-app {
    background: #1a1a1a;
    border: 1px solid #333;
  }
  
  .simulation-area {
    background: #2a2a2a !important;
    border: 1px solid #444;
  }
  
  .sim-label {
    fill: #e0e0e0 !important;
  }
  
  .vpn-tunnel {
    stroke: #4a9eff !important;
  }
  
  .vpn-tunnel.intranet {
    stroke: #888 !important;
  }
}

.vpn-header {
  text-align: center;
  margin-bottom: 2rem;
}

.vpn-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vpn-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Mode Switcher */
.vpn-controls {
  margin-bottom: 2rem;
}

.mode-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.mode-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.mode-btn:hover::before {
  left: 100%;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Mode Content */
.mode-content {
  display: none;
}

.mode-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px !important;
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* VPN Types Grid */
.vpn-types {
  margin-bottom: 3rem;
}

.vpn-types h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.vpn-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vpn-type-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vpn-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.vpn-type-card:hover::before,
.vpn-type-card.selected::before {
  transform: scaleX(1);
}

.vpn-type-card:hover,
.vpn-type-card.selected {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.vpn-type-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vpn-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  color: white;
}

.vpn-type-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.vpn-type-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.vpn-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Technologies Grid */
.vpn-technologies h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tech-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Simulation Styles */
.simulation-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sim-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sim-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.sim-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.simulation-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.simulation-area {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vpn-simulation {
  width: 100%;
  height: auto;
}

.sim-label {
  font-size: 0.9rem;
  font-weight: 500;
  fill: var(--text-primary);
}

.sim-icon {
  font-size: 1.2rem;
}

.vpn-tunnel {
  stroke-dasharray: 10, 5;
  animation: dash 2s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -15; }
}

.data-packet {
  animation: movePacket 3s ease-in-out infinite;
}

@keyframes movePacket {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.simulation-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.control-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.simulation-info {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.simulation-info h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.simulation-info p {
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vpn-app {
    padding: 1rem;
  }
  
  .vpn-header h1 {
    font-size: 2rem;
  }
  
  .mode-switcher {
    flex-direction: column;
  }
  
  .simulation-selector {
    flex-direction: column;
  }
  
  .simulation-controls {
    flex-direction: column;
  }
  
  .quiz-controls {
    flex-direction: column;
  }
  
  .score-display {
    flex-direction: column;
    text-align: center;
  }
  
  .info-cards,
  .vpn-type-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
