/* ================= SKILLGLIDER THEME ================= */
:root {
  /* SkillGlider Palette */
  --primary: #ff7a00;           /* main orange */
  --primary-dark: #e66b00;      /* hover orange */
  --secondary: #0a2540;         /* dark blue */
  --secondary-soft: rgba(10, 37, 64, 0.18);
  --text: #0a2540;              /* main text */
  --accent: #f6f8fb;            /* light bg */
  --accent-dark: #e5e9ef;       /* light hover */

  /* Utility */
  --black: #0a2540;
  --light: #f6f8fb;
  --gray: #6b7280;

  /* SkillGlider brand helpers */
  --skill-orange: #ff7a00;
  --skill-dark: #0a2540;
}

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

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

/* ================= NAVBAR ================= */
.navskill {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navskill-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.navskill-brand i {
  font-size: 28px;
}

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

.navskill-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: 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: 6px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  transition: 0.3s ease;
}

.navskill-login:hover,
.navskill-signup:hover {
  background: var(--primary);
  color: #fff;
}

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

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

#adminLink:hover {
  background: var(--primary-dark);
}

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

.navskill-logout:hover {
  background: var(--primary-dark);
}

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

/* ================= 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;
  background-clip: text;
  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;
  background-clip: text;
  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;
}

/* ================= LISTING 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;
}

/* ================= SKILLGLIDER CARD ================= */
.listing-card {
  background: #ffffff;
  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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  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(-8px);
  box-shadow: 0 25px 50px 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;
  background-clip: text;
  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;
  color: var(--text);
  position: relative;
  padding-left: 20px;
}

.listing-card ul li::before {
  content: "✨";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ================= SKILLGLIDER BUTTON ================= */
.listing-card .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: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.listing-card .open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 122, 0, 0.4);
}

/* ================= BACK TO HOME BUTTON ================= */
.back-home-top {
position: fixed;
top: 20px;
left: 20px;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: #fff;
font-weight: 600;
padding: 12px 24px;
border-radius: 50px;
text-decoration: none;
font-size: 15px;
box-shadow: 0 10px 30px rgba(255, 122, 0, 0.4);
z-index: 1000;
transition: all 0.3s ease;
}

.back-home-top:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(255, 122, 0, 0.5);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .listing-container,
  .hackathon-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .listing-card {
    padding: 25px 24px;
  }
}

/* ================= SKILLGLIDER MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  /* HEADINGS RESPONSIVE */
  h1 {
    font-size: 26px !important;
    line-height: 1.3;
    margin-bottom: 25px;
  }
  
  .category-title {
    font-size: 20px !important;
    margin: 30px 0 20px;
  }
  
  /* LAYOUT - SINGLE COLUMN */
  .listing-container,
  .hackathon-cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  /* CARDS - COMPACT MOBILE */
  .listing-card {
    padding: 25px 24px !important;
    margin-bottom: 15px;
  }
  
  .listing-card h3 {
    font-size: 20px !important;
    margin-bottom: 15px;
  }
  
  .desc {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .listing-card ul li {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 25px;
  }
  
  /* BUTTONS - TOUCH FRIENDLY */
  .listing-card .open-btn,
  .back-home-top {
    padding: 16px 32px !important;
    font-size: 16px !important; /* Minimum touch target */
    min-height: 52px; /* iOS/Android touch target */
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* FIXED BUTTON POSITIONING */
  .back-home-top {
    top: 15px;
    left: 15px;
    right: 15px;
    padding: 16px 24px !important;
    font-size: 16px !important;
    text-align: center;
  }
  
  /* TOUCH HOVER FIX */
  .listing-card:hover,
  .back-home-top:hover,
  .open-btn:hover {
    transform: none !important;
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.25) !important;
  }
  
  /* TOUCH ACTIVE STATE */
  .listing-card:active,
  .back-home-top:active,
  .open-btn:active {
    transform: scale(0.98);
  }
}

/* ================= EXTRA SMALL SCREENS ================= */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 24px !important;
  }
  
  .listing-card {
    padding: 20px 20px !important;
    border-radius: 16px;
  }
  
  .listing-card h3 {
    font-size: 18px !important;
  }
  
  .listing-card ul li {
    padding-left: 22px;
    font-size: 14px;
  }
  
  /* FULL WIDTH BUTTONS */
  .open-btn,
  .back-home-top {
    padding: 18px 30px !important;
    font-size: 15px !important;
  }
}

/* ================= ULTRA RESPONSIVE - PORTRAIT MODE ================= */
@media (max-height: 600px) {
  body {
    padding: 10px 15px;
  }
  
  .listing-card {
    padding: 20px !important;
  }
  
  .back-home-top {
    position: static !important;
    margin-bottom: 20px;
    display: inline-block;
  }
}

/* ================= HIGH DPI / RETINA ================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .listing-card {
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.12);
  }
  
  .listing-card:hover {
    box-shadow: 0 20px 40px rgba(255, 122, 0, 0.2);
  }
}

