/* ===========================
   CHEAT SHEETS PAGE STYLES
   =========================== */

.cheat-sheets-breadcrumb {
  margin: 40px 0 30px 0;
}

.cheat-sheets-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.cheat-sheets-breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cheat-sheets-breadcrumb-item a:hover {
  color: #6e00ff;
}

.cheat-sheets-breadcrumb hr {
  margin-top: 15px;
  border: none;
  height: 1px;
  background: #e1e5e9;
}

/* ===========================
   WORKSPACE SECTION
   =========================== */

.cheat-sheets-container {
  margin-bottom: 80px;
}

.cheat-sheets-workspace {
  margin-bottom: 50px;
}

.cheat-sheets-workspace-search {
  position: relative;
  margin-bottom: 40px;
  max-width: 500px;
}

.cheat-sheets-workspace-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 20px;
  transition: color 0.3s ease;
}

.cheat-sheets-workspace-search input {
  width: 100%;
  padding: 16px 18px 16px 55px;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cheat-sheets-workspace-search input:focus {
  outline: none;
  border-color: #6e00ff;
  box-shadow: 0 4px 20px rgba(101, 0, 255, 0.15);
  transform: translateY(-1px);
}

.cheat-sheets-workspace-search input:focus + i {
  color: #6e00ff;
}

.cheat-sheets-workspace-search input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* ===========================
   SEARCH FILTERING ANIMATIONS
   =========================== */

.cheat-sheets-category-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cheat-sheet-card-link {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cheat-sheet-card-link[style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

.cheat-sheets-category-section[style*="display: none"] {
  opacity: 0;
  transform: translateY(-10px);
}

#search-no-results {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#search-no-results[style*="display: block"] {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   CATEGORIES NAVIGATION
   =========================== */

.cheat-sheets-workspace-categories {
  margin-bottom: 40px;
}

.cheat-sheets-categories-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cheat-sheets-categories-title span {
  font-weight: 600;
  font-size: 18px;
  color: #1f2937;
}

.cheat-sheets-categories-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e5e7eb, transparent);
}

.cheat-sheets-workspace-categories-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cheat-sheets-categories-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.cheat-sheets-categories-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #6300ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}

.cheat-sheets-categories-item:hover::before {
  transform: scaleX(1);
}

.cheat-sheets-categories-item:hover {
  border-color: #6e00ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(101, 0, 255, 0.15);
}

.cheat-sheets-categories-item i,
.cheat-sheets-categories-item span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.cheat-sheets-categories-item i {
  font-size: 16px;
  color: #6e00ff;
}

.cheat-sheets-categories-item span {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.cheat-sheets-categories-item:hover i,
.cheat-sheets-categories-item:hover span {
  color: white;
}

/* ===========================
   CHEAT SHEETS CONTENT
   =========================== */

.cheat-sheets-content {
  margin-top: 50px;
}

.cheat-sheets-category-section {
  margin-bottom: 60px;
}

.cheat-sheets-category-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f4;
}

.cheat-sheets-category-title i {
  font-size: 24px;
  color: #6e00ff;
}

.cheat-sheets-category-title h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

/* ===========================
   CHEAT SHEETS GRID
   =========================== */

.cheat-sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cheat-sheet-card-link {
  text-decoration: none;
  color: inherit;
}

.cheat-sheet-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.cheat-sheet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: #6e00ff;
}

.cheat-sheet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cheat-sheet-tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #e9ecef;
}

.cheat-sheet-tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.cheat-sheet-card-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.cheat-sheet-card:hover .cheat-sheet-card-action {
  background: #6e00ff;
  border-color: #6e00ff;
}

.cheat-sheet-card-action i {
  font-size: 16px;
  color: #6c757d;
  transition: color 0.2s ease;
}

.cheat-sheet-card:hover .cheat-sheet-card-action i {
  color: white;
}

.cheat-sheet-card-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.cheat-sheet-card-content p {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

/* ===========================
   EMPTY STATES
   =========================== */

.cheat-sheets-empty {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.cheat-sheets-empty p {
  margin: 0;
  color: #6c757d;
  font-size: 16px;
}

.cheat-sheets-no-results {
  text-align: center;
  padding: 80px 20px;
  margin-top: 40px;
}

.cheat-sheets-no-results-icon {
  margin-bottom: 20px;
}

.cheat-sheets-no-results-icon i {
  font-size: 64px;
  color: #dee2e6;
}

.cheat-sheets-no-results h3 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.cheat-sheets-no-results p {
  margin: 0;
  font-size: 16px;
  color: #6c757d;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
  .cheat-sheets-workspace-search {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .cheat-sheets-workspace-categories {
    margin-bottom: 30px;
  }

  .cheat-sheets-categories-title {
    margin-bottom: 16px;
  }

  .cheat-sheets-categories-title span {
    font-size: 16px;
  }

  .cheat-sheets-workspace-categories-items {
    gap: 8px;
  }

  .cheat-sheets-categories-item {
    padding: 6px 12px;
    font-size: 13px;
  }

  .cheat-sheets-categories-item i {
    font-size: 14px;
  }

  .cheat-sheets-category-title h2 {
    font-size: 24px;
  }

  .cheat-sheets-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .cheat-sheet-card {
    padding: 20px;
  }

  .cheat-sheet-tech-icon {
    width: 40px;
    height: 40px;
  }

  .cheat-sheet-card-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .cheat-sheets-breadcrumb {
    margin: 20px 0;
  }

  .cheat-sheets-workspace-search input {
    padding: 14px 16px 14px 50px;
    font-size: 15px;
  }

  .cheat-sheets-workspace-categories {
    margin-bottom: 25px;
  }

  .cheat-sheets-categories-title span {
    font-size: 15px;
  }

  .cheat-sheets-workspace-categories-items {
    gap: 6px;
  }

  .cheat-sheets-categories-item {
    padding: 6px 10px;
    font-size: 12px;
  }

  .cheat-sheets-categories-item i {
    font-size: 13px;
  }

  .cheat-sheets-grid {
    grid-template-columns: 1fr;
  }

  .cheat-sheets-category-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cheat-sheets-category-title h2 {
    font-size: 22px;
  }
}
