/* CSS Variables for Colors */
:root {
  --ps-primary-bg: #00000090;
  --ps-text-primary: #ffffff;
  --ps-text-secondary: #e2e8f0;
  --ps-text-muted: #94a3b8;
  --ps-accent-color: #e50914;
  --ps-accent-hover: #b8070f;
  --ps-border-color: rgba(255, 255, 255, 0.3);
  --ps-glass-bg: rgba(255, 255, 255, 0.08);
  --ps-glass-bg-hover: rgba(255, 255, 255, 0.12);
  --ps-badge-easy: #4ade80;
  --ps-badge-intermediate: #f59e0b;
  --ps-badge-advanced: #ef4444;
  --ps-section-bg: rgba(255, 255, 255, 0.04);
  --ps-border-radius: 8px;
}


.ps-container {
  /* layout */
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  margin: 20px auto 0;
  padding: 2rem 1rem;
  border-radius: 12px;
  background-color: var(--ps-primary-bg);
  backdrop-filter: blur(100px);

  /* scrolling */
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--ps-accent-color) transparent;
}

/* WebKit scrollbar */
.ps-container::-webkit-scrollbar {
  width: 8px;
}

.ps-container::-webkit-scrollbar-track {
  background: transparent;
}

.ps-container::-webkit-scrollbar-thumb {
  background-color: var(--ps-accent-color);
  border-radius: 0px;
  border: 0px solid transparent;
  background-clip: content-box;
}

.ps-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  /* margin-bottom: 2rem; */
  margin-top: 50px;
  padding: 0;
}

.ps-nav div{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 50%;
  background-color: #00000080;
  backdrop-filter: blur(80px);
  padding: 1.4em;
  border-radius: 18px;

}

.ps-item {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background: var(--ps-glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ps-border-color);
  color: var(--ps-text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  user-select: none;
  font-size: 0.95rem;
}

.ps-item.active,
.ps-item:hover {
  background: var(--ps-accent-color);
  color: var(--ps-text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.ps-details {
  position: relative;
  color: var(--ps-text-primary);
}

.ps-content {
  display: none;
  animation: fade 0.4s ease-in-out;
  line-height: 1.7;
}

.ps-content.active {
  display: block;
}

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

/* Header Styles */
.ps-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--ps-section-bg);
  border-radius: var(--ps-border-radius);
  border: 1px solid var(--ps-border-color);
}

.ps-icon {
  color: var(--ps-text-primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.ps-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--ps-text-primary);
  flex-grow: 1;
}

.ps-badge {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
}

.ps-badge-easy {
  background-color: var(--ps-badge-easy);
  color: #000;
}

.ps-badge-intermediate {
  background-color: var(--ps-badge-intermediate);
  color: #000;
}

.ps-badge-advanced {
  background-color: var(--ps-badge-advanced);
  color: #fff;
}

/* Description */
.ps-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--ps-text-secondary);
  padding: 1rem;
  background: var(--ps-section-bg);
  border-radius: var(--ps-border-radius);
  border-left: 4px solid var(--ps-accent-color);
}

/* Section Styles */
.ps-section {
  margin-bottom: 2rem;
  background: var(--ps-section-bg);
  border-radius: var(--ps-border-radius);
  padding: 1.5rem;
  border: 1px solid var(--ps-border-color);
}

.ps-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ps-section-icon {
  color: var(--ps-text-primary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.ps-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--ps-text-primary);
}

/* List Styles */
.ps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--ps-border-radius);
  border-left: 3px solid var(--ps-accent-color);
}

.ps-list-icon {
  color: var(--ps-text-primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ps-list-content {
  flex-grow: 1;
}

.ps-feature-title {
  margin-bottom: 0.75rem;
  color: var(--ps-text-primary);
}

.ps-sub-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.ps-sub-list li {
  margin-bottom: 0.5rem;
  color: var(--ps-text-secondary);
  position: relative;
}

.ps-sub-list li::before {
  content: '•';
  color: var(--ps-accent-color);
  position: absolute;
  left: -1rem;
  font-weight: bold;
}

/* Simple List for shorter items */
.ps-simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-simple-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--ps-text-secondary);
}

.ps-simple-icon {
  color: var(--ps-text-primary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Typography */
.ps-content strong {
  color: var(--ps-text-primary);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ps-item {
    flex: 1 1 45%;
    text-align: center;
  }

  .ps-container {
    padding: 1rem 0.5rem;
    margin-top: 100px;
  }

  .ps-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ps-title {
    font-size: 1.5rem;
  }

  .ps-section {
    padding: 1rem;
  }

  .ps-list-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .ps-item {
    flex: 1 1 100%;
  }

  .ps-title {
    font-size: 1.25rem;
  }

  .ps-description {
    font-size: 1rem;
  }
}
