/* ================= SKILLGLIDER THEME ================= */
:root {
  --primary: #ff7a00;
  --primary-dark: #e66b00;
  --secondary: #0a2540;
  --text: #353535;
  --gray: #666;
  --light: #f6f8fb;
  --border: #e0e0e0;
  --success: #22c55e;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: var(--light);
  color: var(--text);
  margin: 0;
}

/* Add spacing only to content section */
.page-content {
  padding: 40px 20px;
}

/* ================= NAVSKILL NAVBAR ================= */
/* Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding-top: 80px; /* Adjust based on navbar height */
}

:root {
  --primary: #ff7a00;
  --primary-dark: #e66b00;
  --text: #353535;
  --gray: #666;
  --light: #f6f6f6;
  --border: #e0e0e0;
  --success: #22c55e;
}

/* Navbar Container */
.navskill {
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Inner Flex Container */
.navskill-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px; /* controls full navbar spacing */
}

/* Brand */
.navskill-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;

  margin-left: 20px; /* control movement here */
}

.navskill-brand i {
  font-size: 28px;
  color: var(--primary);
}

/* Menu Links */
.navskill-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navskill-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s ease;
}

.navskill-menu a:hover {
  color: var(--primary);
}

/* Auth Buttons */
#authButtons {
  display: flex;
  gap: 15px;
}

.navskill-login,
.navskill-signup {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.navskill-login:hover,
.navskill-signup:hover {
  color: white;
}

/* Dashboard Link */
.navskill-dashboard {
  font-weight: 700;
  color: var(--primary);
  display: none;
  text-decoration: none;
}

/* Admin Link */
#adminLink {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  display: none;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

#adminLink:hover {
}

/* Logout Button */
.navskill-logout {
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  transition: 0.3s ease;
}

.navskill-logout:hover {
}

/* ================= NAVSKILL NAVBAR - MOBILE ONLY ================= */

@media (max-width: 768px) {

  .navskill-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
    gap: 10px;
  }

  .navskill-brand {
    margin-left: 0;
  }

  .navskill-menu {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: center;
  }

  .navskill-menu a {
    width: 100%;
  }

  #authButtons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .navskill-login,
  .navskill-signup,
  .navskill-dashboard,
  .navskill-logout,
  #adminLink {
    width: 100%;
    text-align: center;
  }

}

/* ================= PAGE TITLE ================= */
h1 {
  text-align: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  font-weight: 700;
}

/* ================= CATEGORY TITLE ================= */
.category-title {
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 40px 0 30px;
  text-align: center;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ================= GRID LAYOUT ================= */
.listing-container,
.hackathon-cards {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* ================= CARD ================= */
.listing-card {
  background: #fff;
  padding: 30px 32px;
  border-radius: 22px;
  border-top: 5px solid var(--primary);
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.listing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(255, 122, 0, 0.15);
}

/* Content */
.listing-card h3 {
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  font-weight: 600;
}

.desc {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 18px;
}

.listing-card ul {
  list-style: none;
  margin-bottom: 22px;
}

.listing-card ul li {
  margin-bottom: 8px;
  font-size: 15px;
  padding-left: 22px;
  position: relative;
}

.listing-card ul li::before {
  content: "✨";
  position: absolute;
  left: 0;
}

/* Button */
.open-btn {
  margin-top: auto;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.open-btn:hover::before {
  left: 100%;
}

.open-btn:hover {
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .navskill-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navskill-menu,
  #authButtons {
    flex-direction: column;
    width: 100%;
  }

  .navskill-login,
  .navskill-signup,
  #adminLink,
  .navskill-dashboard,
  .navskill-logout {
    width: 100%;
    text-align: left;
  }

  .listing-container,
  .hackathon-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .listing-card {
    padding: 24px;
  }

  .open-btn {
    width: 100%;
  }

  .listing-card:hover,
  .open-btn:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 24px;
  }

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

  .listing-card h3 {
    font-size: 18px;
  }
}
