/* Import global styles to maintain consistency */
@import url("global.css");

/* Projects page specific styles */

/* Container for Sidebar and Projects */
.container {
  display: flex;
  padding: 20px;
}

/* Sidebar for Categories */
.sidebar {
  width: 200px;
  margin-right: 20px;
}

.sidebar h2 {
  margin-bottom: 15px;
  font-size: 1.5em;
  color: var(--accent-color);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  padding: 5px 10px;
  transition: background-color 0.3s;
  display: block;
  border-radius: 4px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: var(--primary-color);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  flex: 1;
}

/* Project Card */
.project-card {
  background-color: var(--header-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card-content p {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.project-link {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.project-link:hover {
  background-color: var(--accent-color);
}

/* Projects Menu Styles (for the auto-generated menu) */
.projects-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects-menu ul li {
  margin: 5px 0;
  position: relative;
}
/* Clickable links styled as buttons using a teal color scheme */
.projects-menu ul li a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #008080;  /* Teal */
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 300;
  font-size: 14px;
}
.projects-menu ul li a:hover {
  background-color: #006666;  /* Darker teal on hover */
}
/* Non-clickable folder names styled differently */
.projects-menu ul li span {
  display: inline-block;
  padding: 8px 16px;
  background-color: #CCCCCC;  /* Light gray */
  color: #666666;            /* Darker gray text */
  border-radius: 4px;
  font-weight: 300;
  font-size: 14px;
}
/* Nested menu styles for subfolders */
.projects-menu ul ul {
  margin-left: 20px; /* Indent nested items */
  margin-top: 5px;
}
.projects-menu ul ul li a {
  background-color: #33a3a3;  /* Lighter teal for sub-items */
}
.projects-menu ul ul li a:hover {
  background-color: #008080;
}
.projects-menu ul ul li span {
  background-color: #E0E0E0;  /* Even lighter gray for nested non-clickable items */
  color: #666666;
}
/* Style for the toggle button */
.toggle-btn {
  cursor: pointer;
  margin-right: 8px;
  font-weight: bold;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
}
