/*
====================================
  FINAL RESPONSIVE HEADER STYLES
====================================
*/

/* --- Desktop Header (Default) --- */
header {
  max-width: 1200px;
  width: 90%;
  margin: 48px auto 64px auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 48px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.powered-by {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.5rem; /* Icon size for desktop */
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  transform: scale(1.1);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

/*
====================================
  MOBILE NAVIGATION BAR
====================================
*/
@media (max-width: 768px) {
  header nav {
    justify-content: center;
  }

  /* --- Create the Fixed Bottom Tab Bar --- */
  /* The .nav-links list becomes our new navigation bar. */
  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 65px; /* Standard mobile tab bar height */

    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);

    display: flex;
    justify-content: space-around; /* Evenly space the icons */
    align-items: center;
    z-index: 1000; /* Ensure it's on top of all other content */
  }

  /* --- Style the Icons and Links in the Tab Bar --- */
  .nav-links li {
    flex-grow: 1; /* Each icon takes up equal space */
  }

  .nav-links a {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center;
    gap: 4px; /* Space between icon and text */
    font-size: 1.2rem; /* Icon size for mobile */
  }

  /* --- Add Text Labels Below Icons (CSS only) --- */
  .nav-links a::after {
    font-size: 0.7rem; /* Small text for the label */
    font-weight: 500;
  }

  /* Assign the text content for each label */
  .nav-links a[href="index.html"]::after {
    content: "Home";
  }
  .nav-links a[href="add-class.html"]::after {
    content: "Add Class";
  }
  .nav-links a[href="your-class.html"]::after {
    content: "Your Class";
  }

  /* Make the active link more prominent */
  .nav-links a.active {
    color: var(--accent);
  }
  .nav-links a.active::after {
    font-weight: 600; /* Bolder text for the active label */
  }
}
