/* [file name]: skill_section.css */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-card {
  background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.skill-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.5rem;
}

.skill-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  color: white;
}

.skill-level {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  backdrop-filter: blur(10px);
}

.skill-description {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
  margin: 0;
}

.skill-acquisition {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.skill-growth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #e8f4fc;
  margin-top: 0.5rem;
}

.skill-growth::before {
  content: '🚀';
  font-size: 0.9rem;
}

/* Уровни навыков */
.skill-level.beginner { background: rgba(231, 76, 60, 0.8); }
.skill-level.intermediate { background: rgba(241, 196, 15, 0.8); }
.skill-level.advanced { background: rgba(46, 204, 113, 0.8); }
.skill-level.expert { background: rgba(52, 152, 219, 0.8); }

/* Темная тема */
body.dark-mode .skill-card {
  background: linear-gradient(135deg, var(--dark-card) 0%, #34495e 100%);
  border: 1px solid var(--dark-border);
}

body.dark-mode .skill-level {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .skill-acquisition {
  background: rgba(255, 255, 255, 0.08);
}

/* Адаптивность */
@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-card {
    padding: 1.2rem;
  }
  
  .skill-header {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  
  .skill-level {
    justify-self: start;
    margin-top: 0.3rem;
  }
}

@media (min-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}