/* ===============================
   HEADER STICKY UMUM
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 4px solid rgba(4, 152, 235, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 100%;
  padding: 15px 60px 10px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===============================
   LOGO
================================ */

.brand img {
  filter: brightness(100%);
  width: auto;
  height: 50px;
}


/* ===============================
   NAVIGASI DESKTOP
================================ */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 5px 6px;
  position: relative;
  transition: color .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0498eb;
}

.nav-link:hover::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #FFDE59;
}

/* ===============================
   USER MENU (LOGIN)
================================ */
.user-menu {
  display: none;
  position: relative;
}

.site-header.logged-in .nav-login {
  display: none;
}

.site-header.logged-in .user-menu {
  display: block;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #0498eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 10px;
  display: none;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-fullname {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.logout {
  display: block;
  font-size: 1rem;
  color: #0498eb;
  text-decoration: none;
}

.logout:hover {
  text-decoration: underline;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    padding: 10px 20px;
  }

  .brand img {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .nav-link {
      font-size: 0.875rem;
      font-weight: 500;
  }

}


/* === FOOTER === */
.footer {
    margin-top: 28px;
    width: 100%;
    padding: 10px 60px;
    background: rgba(4, 152, 235, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.12);
}

.footer-left {
    color: #fff;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.footer-left a {
    color: #fff;
    text-decoration: none;
}

.footer-left a:hover {
    color: #03d3fc;
    text-decoration: underline;
}

.footer-right {
    display: flex;
    gap: 18px;
}

.footer-right a {
    color: #fff;
    font-size: 1.875rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    text-decoration: none;
    transition: 0.3s;
}

.footer-right a:hover {
    color: #eaf6ff;
    transform: translateY(-3px);
}

/* === MOBILE === */
@media (max-width: 768px) {

    .footer {
        margin-top: auto;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px 20px;
        font-size: 0.75rem;
    }

    .footer-right {
        order: 1;
        justify-content: center;
    }
    .footer-left { 
        order: 2; 
        text-align: center; }

}
