/* Skills Page CSS Module */
.pageContainer {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.mainContent {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Section */
.headerSection {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 3rem;
}

.headerContent {
  max-width: 600px;
  margin: 0 auto;
}

.greeting {
  margin-top: 25px;
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Skills Section */
.skillsSection {
  margin-bottom: 4rem;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.categoryCard {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.categoryCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 16px 16px 0 0;
}

.categoryCard:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.categoryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.categoryTitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.categoryIcon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconNumber {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.skillsList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skillItem {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skillItem:last-child {
  border-bottom: none;
}

.skillHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.skillName {
  font-size: 1rem;
  font-weight: 500;
  color: #e2e8f0;
}

.skillLevel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.levelBadge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.levelPercentage {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Skill Level Colors */
.expert {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.advanced {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.intermediate {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.beginner {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Progress Bar */
.progressContainer {
  width: 100%;
}

.progressBar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-in-out;
  position: relative;
}

.progressFill.expert {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progressFill.advanced {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.progressFill.intermediate {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.progressFill.beginner {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Stats Section */
.statsSection {
  margin-top: 4rem;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.statCard {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.statCard:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.statNumber {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.statLabel {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Loading States */
.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loadingText {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* Error States */
.errorContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1rem;
}

.errorTitle {
  font-size: 2rem;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.errorMessage {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.retryButton {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retryButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .skillsGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .categoryCard {
    padding: 1.5rem;
  }

  .skillHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .skillLevel {
    align-self: flex-end;
  }

  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .statCard {
    padding: 1.5rem 1rem;
  }

  .statNumber {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .headerSection {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  .skillsGrid {
    gap: 1rem;
  }

  .categoryCard {
    padding: 1rem;
  }

  .categoryTitle {
    font-size: 1.2rem;
  }

  .statsGrid {
    grid-template-columns: 1fr;
  }

  .skillHeader {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .skillLevel {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
}

/* Animation for progress bars */
@keyframes progressAnimation {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .progressFill {
    transition: none;
  }

  .categoryCard:hover,
  .statCard:hover,
  .retryButton:hover {
    transform: none;
  }
}

.noSkillsSection {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.noSkillsSection::before {
  display: none;
}

.noSkillsContainer {
  text-align: center;
  max-width: 500px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem;
  backdrop-filter: none;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.noSkillsContainer::before {
  display: none;
}

.noSkillsSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.noSkillsIcon {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: none;
  color: #60a5fa;
  border: 2px solid rgba(59, 130, 246, 0.2);
  justify-content: center;
  position: relative;
}
.noSkillsIcon::before {
  display: none;
}

.iconEmoji {
  font-size: 2.5rem;
  color: white;
}

.noSkillsTitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.noSkillsText {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 2rem;
}

.noSkillsFeatures {
  display: none;
}

/* Add these new keyframe animations: */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.refreshButton {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #3b82f6;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.refreshButton:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.refreshButton:hover::before {
  left: 100%;
}

.refreshButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.refreshButton:active {
  transform: translateY(0px);
}

.refreshIcon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.refreshButton:hover .refreshIcon {
  transform: rotate(180deg);
}

.featureItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.featureItem:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.featureIcon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.featureText {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  text-align: center;
}

/* Floating animation for the icon */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design for No Skills Section */
@media (max-width: 768px) {
  .noSkillsContainer {
    padding: 3rem 2rem;
    margin: 0 1rem;
  }

  .noSkillsIcon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .iconEmoji {
    font-size: 1.5rem;
  }

  .noSkillsTitle {
    font-size: 1.5rem;
  }

  .noSkillsText {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .noSkillsFeatures {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .featureItem {
    padding: 1rem 0.75rem;
  }

  .featureIcon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .featureText {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .noSkillsContainer {
    padding: 2rem 1.5rem;
  }

  .noSkillsTitle {
    font-size: 1.3rem;
  }

  .noSkillsText {
    font-size: 0.95rem;
  }

  .noSkillsFeatures {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .featureItem {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  .featureIcon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .featureText {
    text-align: left;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .noSkillsIcon {
    animation: none;
  }

  .featureItem:hover {
    transform: none;
  }
}

.calendarIcon {
  color: #60a5fa;
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}
