/* ════════════════════════════════════════════════════════════════ */
/* PATHFINDER SHARED UI COMPONENTS & BUTTON STYLES */
/* Applied consistently across all pages */
/* ════════════════════════════════════════════════════════════════ */

/* --- NAVIGATION & ACTION BUTTONS --- */

/* Nav Action Buttons - Student & Admin */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 200ms cubic-bezier(0.19, 1, 0.22, 1);
  border: 1.5px solid transparent;
}

.nav-login.student {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-login.student:hover {
  color: #FFFFFF;
  background: rgba(218, 164, 27, 0.2);
  border-color: rgba(218, 164, 27, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(218, 164, 27, 0.15);
}

.nav-login.admin {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-login.admin:hover {
  color: #FFFFFF;
  background: rgba(218, 164, 27, 0.2);
  border-color: rgba(218, 164, 27, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(218, 164, 27, 0.15);
}

/* --- FOOTER CONTACT BUTTONS --- */

footer a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 200ms cubic-bezier(0.19, 1, 0.22, 1);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

footer a[href*="wa.me"],
.footer-contact a[href*="wa.me"] {
  color: #fff;
  background: #25D366;
  border-color: #25D366;
}
footer a[href*="wa.me"]:hover,
.footer-contact a[href*="wa.me"]:hover {
  background: #1FA855;
  border-color: #1FA855;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

footer a[href^="mailto"],
.footer-contact a[href^="mailto"] {
  color: #fff;
  background: #0066CC;
  border-color: #0066CC;
}
footer a[href^="mailto"]:hover,
.footer-contact a[href^="mailto"]:hover {
  background: #004BA0;
  border-color: #004BA0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

footer a[href^="tel"],
.footer-contact a[href^="tel"] {
  color: #fff;
  background: #FF6B35;
  border-color: #FF6B35;
}
footer a[href^="tel"]:hover,
.footer-contact a[href^="tel"]:hover {
  background: #E55100;
  border-color: #E55100;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

footer a svg,
.footer-contact a svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

/* --- FOOTER LAYOUT --- */
footer p[style*="display: flex"],
.footer-contact {
  display: flex !important;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

footer .divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .nav-login {
    font-size: 11px;
    padding: 10px 12px;
    gap: 4px;
  }
  .nav-login span:nth-child(2) {
    display: none;
  }

  footer a,
  .footer-contact a {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  .nav-login {
    font-size: 10px;
    padding: 8px 10px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }
  .nav-login span:nth-child(2) {
    display: none;
  }

  footer a,
  .footer-contact a {
    font-size: 0;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  footer a span,
  .footer-contact a span {
    display: none;
  }
  footer a svg,
  .footer-contact a svg {
    width: 20px;
    height: 20px;
  }
}

/* --- UTILITY CLASSES --- */
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button-group.stacked {
  flex-direction: column;
  align-items: stretch;
}

.button-group.stacked a,
.button-group.stacked button {
  width: 100%;
}

/* ════════════════════════════════════════════════════════════════ */
/* SKELETON SCREENS (LOADING STATES)                                */
/* ════════════════════════════════════════════════════════════════ */
.skeleton {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.08),
    transparent
  );
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  100% { left: 100%; }
}

.skeleton-title { height: 24px; border-radius: 6px; width: 40%; margin-bottom: 16px; }
.skeleton-text { height: 14px; border-radius: 4px; width: 80%; margin-bottom: 8px; }
.skeleton-text.short { width: 40%; }
.skeleton-card { height: 120px; border-radius: 8px; margin-bottom: 12px; }
.skeleton-chart { height: 300px; border-radius: 12px; margin-bottom: 16px; }
