* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
}

#app {
  height: 100vh;
}

.container {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e8ecf0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  padding: 28px 24px;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.logo-icon {
  font-size: 28px;
  margin-right: 12px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.menu {
  list-style: none;
  flex: 1;
  padding: 0 12px;
  overflow-y: auto;
}

.menu li {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  margin: 8px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #5a6a7a;
  font-weight: 500;
  position: relative;
}

.menu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 4px 4px 0;
  transition: height 0.3s ease;
}

.menu li:hover {
  background: linear-gradient(135deg, #f7f9fc 0%, #edf1f7 100%);
  color: #667eea;
  padding-left: 22px;
}

.menu li.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.menu li.active::before {
  height: 24px;
}

.menu-icon {
  font-size: 20px;
  margin-right: 14px;
}

.menu-text {
  font-size: 15px;
  font-weight: 500;
}

.content {
  margin-left: 280px;
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 50%, #f0f4f8 100%);
}

.content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(102, 126, 234, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(118, 75, 162, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.content::after {
  content: '';
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23667eea' fill-opacity='0.015'%3E%3Ccircle cx='50' cy='50' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.category-section {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  font-size: 22px;
  color: #2d3748;
  font-weight: 700;
  padding: 0 0 0 8px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #667eea 0%, #764ba2 100%) 1;
}

.title-icon {
  font-size: 26px;
  margin-right: 12px;
}

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

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e8ecf0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before,
.card.is-hovered::before {
  transform: scaleX(1);
}

.card:hover,
.card.is-hovered {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 36px;
  margin-right: 14px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon,
.card.is-hovered .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
}

.rating {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
  padding: 10px 16px;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.star {
  font-size: 18px;
  margin-right: 3px;
  display: inline-block;
  transition: all 0.2s ease;
}

.star.empty {
  color: #d1d5db;
}

.star.filled {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.card:hover .star.filled,
.card.is-hovered .star.filled {
  animation: starGlow 0.6s ease forwards;
}

@keyframes starGlow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  }
  50% {
    transform: scale(1.3);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  }
}

.rating-text {
  font-size: 13px;
  color: #b45309;
  font-weight: 700;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(180, 83, 9, 0.2);
  min-width: 32px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

@media screen and (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .content {
    padding: 28px 28px;
  }
}

@media screen and (max-width: 992px) {
  .sidebar {
    width: 240px;
  }

  .logo {
    padding: 22px 20px;
  }

  .logo-text {
    font-size: 20px;
  }

  .menu li {
    padding: 12px 16px;
  }

  .content {
    margin-left: 240px;
    padding: 24px;
  }

  .content::before,
  .content::after {
    left: 240px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e8ecf0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .logo {
    padding: 20px 24px;
    margin-bottom: 0;
  }

  .menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu li {
    flex-shrink: 0;
    min-width: auto;
    padding: 10px 16px;
    margin: 0;
    font-size: 14px;
    background: #f7f9fc;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
  }

  .menu li::before {
    display: none;
  }

  .menu li:hover {
    background: #f0f4f8;
    padding-left: 16px;
  }

  .menu li.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  .menu-icon {
    font-size: 16px;
    margin-right: 8px;
  }

  .menu-text {
    font-size: 14px;
  }

  .content {
    margin-left: 0;
    padding: 24px 20px;
    height: auto;
    min-height: calc(100vh - 140px);
  }

  .content::before,
  .content::after {
    left: 0;
  }

  .category-section {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 18px;
    padding-left: 12px;
    margin-bottom: 16px;
  }

  .title-icon {
    font-size: 22px;
    margin-right: 10px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 20px;
    border-radius: 16px;
  }

  .card-icon {
    font-size: 32px;
  }

  .card-name {
    font-size: 16px;
  }

  .card-desc {
    font-size: 13px;
    min-height: 44px;
  }
}

@media screen and (max-width: 480px) {
  .sidebar {
    width: 100%;
  }

  .logo {
    padding: 16px 20px;
  }

  .logo-icon {
    font-size: 24px;
  }

  .logo-text {
    font-size: 18px;
  }

  .menu {
    padding: 10px 14px;
    gap: 6px;
  }

  .menu li {
    padding: 8px 14px;
    font-size: 13px;
  }

  .menu-icon {
    font-size: 14px;
    margin-right: 6px;
  }

  .menu-text {
    font-size: 13px;
    white-space: nowrap;
  }

  .content {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 16px;
  }

  .cards-grid {
    gap: 14px;
  }

  .card {
    padding: 16px;
  }

  .card-icon {
    font-size: 28px;
  }

  .card-name {
    font-size: 15px;
  }

  .card-desc {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .rating {
    padding: 8px 12px;
  }

  .star {
    font-size: 16px;
  }

  .rating-text {
    font-size: 12px;
    margin-left: 8px;
    padding-left: 8px;
  }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
  .sidebar {
    width: 200px;
  }

  .logo {
    padding: 16px 18px;
  }

  .logo-icon {
    font-size: 22px;
  }

  .logo-text {
    font-size: 18px;
  }

  .menu {
    padding: 8px;
  }

  .menu li {
    padding: 10px 14px;
    margin: 4px 0;
  }

  .content {
    margin-left: 200px;
    padding: 20px;
  }

  .content::before,
  .content::after {
    left: 200px;
  }
}