:root {
  --primary-color: #ff6600;
  --secondary-color: #2c3e50;
  --accent-color: #27ae60;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(
    135deg,
    #ff6600 0%,
    #ff8533 50%,
    #ffaa66 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    #2c3e50 0%,
    #34495e 50%,
    #4a6741 100%
  );
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header {
  text-align: center;
  padding: 60px 20px;
  background: var(--gradient-secondary);
  color: white;
  position: relative;
  border-radius: 15px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page-header h1 {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Grid Layout for Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 20px;
}

.category-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: inherit;
}

.category-image-panel {
  width: 100%;
  height: 200px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
    padding-top: 20px;
  overflow: hidden;
}

.category-image-panel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image-panel img {
  transform: scale(1.05);
}

.category-content-panel {
  padding: 20px;
  text-align: center;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.category-card:hover .category-title {
  color: var(--primary-color);
}

/* Loading, Error and Empty States */
#loadingIndicator,
#errorMessage,
#emptyState {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 1.1rem;
}

#loadingIndicator i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

#errorMessage {
  color: #dc3545;
}

#emptyState i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 10px;
  }
  
  .category-image-panel {
    height: 150px;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  .page-header {
    padding: 40px 20px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-image-panel {
    height: 180px;
  }
}