/* ===== MODERN OFFCANVAS SYSTEM - JP REDESIGN ===== */
/* File terpisah untuk menghindari konflik styling */

:root {
  /* Modern Color Palette - JP Brand */
  --jp-primary-50: #f0f9ff;
  --jp-primary-100: #e0f2fe;
  --jp-primary-200: #bae6fd;
  --jp-primary-300: #7dd3fc;
  --jp-primary-400: #38bdf8;
  --jp-primary-500: #0ea5e9;
  --jp-primary-600: #0284c7;
  --jp-primary-700: #0369a1;
  --jp-primary-800: #075985;
  --jp-primary-900: #0c4a6e;
  
  --jp-secondary-50: #f8fafc;
  --jp-secondary-100: #f1f5f9;
  --jp-secondary-200: #e2e8f0;
  --jp-secondary-300: #cbd5e1;
  --jp-secondary-400: #94a3b8;
  --jp-secondary-500: #64748b;
  --jp-secondary-600: #475569;
  --jp-secondary-700: #334155;
  --jp-secondary-800: #1e293b;
  --jp-secondary-900: #0f172a;
  
  --jp-accent-cyan: #22d3ee;
  --jp-accent-emerald: #10b981;
  --jp-accent-amber: #f59e0b;
  
  --jp-white: #ffffff;
  --jp-black: #000000;
  
  /* Spacing System */
  --jp-space-1: 0.25rem;
  --jp-space-2: 0.5rem;
  --jp-space-3: 0.75rem;
  --jp-space-4: 1rem;
  --jp-space-5: 1.25rem;
  --jp-space-6: 1.5rem;
  --jp-space-8: 2rem;
  --jp-space-10: 2.5rem;
  --jp-space-12: 3rem;
  --jp-space-16: 4rem;
  --jp-space-20: 5rem;
  
  /* Border Radius */
  --jp-radius-sm: 0.375rem;
  --jp-radius-md: 0.5rem;
  --jp-radius-lg: 0.75rem;
  --jp-radius-xl: 1rem;
  --jp-radius-2xl: 1.5rem;
  --jp-radius-full: 9999px;
  
  /* Shadows */
  --jp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --jp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --jp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --jp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --jp-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Typography */
  --jp-font-size-xs: 0.75rem;
  --jp-font-size-sm: 0.875rem;
  --jp-font-size-base: 1rem;
  --jp-font-size-lg: 1.125rem;
  --jp-font-size-xl: 1.25rem;
  --jp-font-size-2xl: 1.5rem;
  --jp-font-size-3xl: 1.875rem;
  --jp-font-size-4xl: 2.25rem;
  --jp-font-size-5xl: 3rem;
  --jp-font-size-6xl: 3.75rem;
  
  /* Transitions */
  --jp-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --jp-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --jp-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODERN OFFCANVAS CONTAINER ===== */
.jp-offcanvas {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--jp-transition-normal);
  z-index: 1002;
  overflow-y: auto;
  box-shadow: var(--jp-shadow-2xl);
}

.jp-offcanvas.jp-active {
  right: 0;
}

/* ===== MODERN OVERLAY ===== */
.jp-offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--jp-transition-normal);
  z-index: 1001;
}

.jp-offcanvas-overlay.jp-active {
  opacity: 1;
  visibility: visible;
}

/* ===== MODERN HEADER SECTION ===== */
.jp-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--jp-space-6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jp-offcanvas-logo {
  display: flex;
  align-items: center;
}

.jp-offcanvas-logo img {
  max-height: 50px;
  filter: drop-shadow(var(--jp-shadow-sm));
  transition: var(--jp-transition-normal);
}

.jp-offcanvas-logo:hover img {
  transform: scale(1.05);
}

.jp-offcanvas-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--jp-radius-lg);
  border: none;
  color: var(--jp-secondary-700);
  font-size: var(--jp-font-size-lg);
  cursor: pointer;
  transition: var(--jp-transition-normal);
  position: relative;
  overflow: hidden;
}

.jp-offcanvas-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 50%;
  transition: var(--jp-transition-normal);
  transform: translate(-50%, -50%);
}

.jp-offcanvas-close:hover::before {
  width: 100%;
  height: 100%;
}

.jp-offcanvas-close:hover {
  background: rgba(14, 165, 233, 0.2);
  transform: scale(1.05);
  color: var(--jp-primary-600);
}

/* ===== MODERN CONTENT SECTION ===== */
.jp-offcanvas-content {
  padding: var(--jp-space-6);
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.jp-offcanvas-description {
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.05) 0%, 
    rgba(34, 211, 238, 0.03) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--jp-radius-2xl);
  padding: var(--jp-space-6);
  margin-bottom: var(--jp-space-8);
  border: 1px solid rgba(14, 165, 233, 0.1);
  position: relative;
  overflow: hidden;
}

.jp-offcanvas-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--jp-primary-500), 
    var(--jp-accent-cyan), 
    var(--jp-primary-500));
  background-size: 200% 100%;
  animation: jp-gradient-shift 3s ease-in-out infinite;
}

.jp-offcanvas-description p {
  color: var(--jp-secondary-700);
  font-size: var(--jp-font-size-base);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* ===== MODERN NAVIGATION ===== */
.jp-offcanvas-nav {
  margin-bottom: var(--jp-space-8);
}

.jp-offcanvas-nav h3 {
  color: var(--jp-secondary-800);
  font-size: var(--jp-font-size-lg);
  font-weight: 700;
  margin-bottom: var(--jp-space-4);
  padding-left: var(--jp-space-2);
  position: relative;
}

.jp-offcanvas-nav h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, var(--jp-primary-500), var(--jp-accent-cyan));
  border-radius: var(--jp-radius-full);
  transform: translateY(-50%);
}

.jp-offcanvas-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jp-offcanvas-nav ul li {
  margin-bottom: var(--jp-space-1);
}

.jp-offcanvas-nav ul li a {
  display: flex;
  align-items: center;
  color: var(--jp-secondary-700);
  text-decoration: none;
  padding: var(--jp-space-4);
  border-radius: var(--jp-radius-lg);
  transition: var(--jp-transition-normal);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.jp-offcanvas-nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(14, 165, 233, 0.1), 
    transparent);
  transition: var(--jp-transition-normal);
}

.jp-offcanvas-nav ul li a:hover::before {
  left: 100%;
}

.jp-offcanvas-nav ul li a:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--jp-primary-600);
  transform: translateX(8px);
  box-shadow: var(--jp-shadow-md);
}

.jp-offcanvas-nav ul li a.jp-active {
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.15) 0%, 
    rgba(34, 211, 238, 0.1) 100%);
  color: var(--jp-primary-600);
  border-left: 3px solid var(--jp-primary-500);
  font-weight: 600;
}

/* ===== MODERN CONTACT SECTION ===== */
.jp-offcanvas-contact {
  margin-bottom: var(--jp-space-8);
}

.jp-offcanvas-contact h3 {
  color: var(--jp-secondary-800);
  font-size: var(--jp-font-size-lg);
  font-weight: 700;
  margin-bottom: var(--jp-space-4);
  padding-left: var(--jp-space-2);
  position: relative;
}

.jp-offcanvas-contact h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, var(--jp-primary-500), var(--jp-accent-cyan));
  border-radius: var(--jp-radius-full);
  transform: translateY(-50%);
}

.jp-offcanvas-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jp-offcanvas-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--jp-space-3);
  margin-bottom: var(--jp-space-4);
  padding: var(--jp-space-4);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--jp-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--jp-transition-normal);
  position: relative;
  overflow: hidden;
}

.jp-offcanvas-contact ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, var(--jp-primary-500), var(--jp-accent-cyan));
  transform: scaleY(0);
  transition: var(--jp-transition-normal);
}

.jp-offcanvas-contact ul li:hover::before {
  transform: scaleY(1);
}

.jp-offcanvas-contact ul li:hover {
  transform: translateY(-2px);
  box-shadow: var(--jp-shadow-lg);
  background: rgba(255, 255, 255, 0.8);
}

.jp-offcanvas-contact ul li i {
  color: var(--jp-primary-500);
  font-size: var(--jp-font-size-lg);
  margin-top: var(--jp-space-1);
  min-width: 20px;
}

.jp-offcanvas-contact ul li div {
  flex: 1;
}

.jp-offcanvas-contact ul li strong {
  display: block;
  color: var(--jp-secondary-800);
  font-weight: 600;
  margin-bottom: var(--jp-space-1);
  font-size: var(--jp-font-size-sm);
}

.jp-offcanvas-contact ul li a {
  color: var(--jp-primary-600);
  text-decoration: none;
  transition: var(--jp-transition-fast);
}

.jp-offcanvas-contact ul li a:hover {
  color: var(--jp-primary-700);
  text-decoration: underline;
}

/* ===== MODERN SOCIAL SECTION ===== */
.jp-offcanvas-social {
  margin-bottom: var(--jp-space-8);
}

.jp-offcanvas-social h3 {
  color: var(--jp-secondary-800);
  font-size: var(--jp-font-size-lg);
  font-weight: 700;
  margin-bottom: var(--jp-space-4);
  padding-left: var(--jp-space-2);
  position: relative;
}

.jp-offcanvas-social h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, var(--jp-primary-500), var(--jp-accent-cyan));
  border-radius: var(--jp-radius-full);
  transform: translateY(-50%);
}

.jp-offcanvas-social ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--jp-space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.jp-offcanvas-social ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.1) 0%, 
    rgba(34, 211, 238, 0.05) 100%);
  backdrop-filter: blur(10px);
  border-radius: var(--jp-radius-lg);
  color: var(--jp-secondary-700);
  text-decoration: none;
  transition: var(--jp-transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.jp-offcanvas-social ul li a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--jp-primary-500), var(--jp-accent-cyan));
  border-radius: 50%;
  transition: var(--jp-transition-normal);
  transform: translate(-50%, -50%);
}

.jp-offcanvas-social ul li a:hover::before {
  width: 100%;
  height: 100%;
}

.jp-offcanvas-social ul li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--jp-shadow-lg);
  color: var(--jp-white);
  border-color: var(--jp-primary-500);
}

.jp-offcanvas-social ul li a i {
  position: relative;
  z-index: 1;
  font-size: var(--jp-font-size-lg);
}

/* ===== MODERN FOOTER SECTION ===== */
.jp-offcanvas-footer {
  margin-top: auto;
  padding-top: var(--jp-space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.jp-offcanvas-footer p {
  color: var(--jp-secondary-500);
  font-size: var(--jp-font-size-sm);
  margin: 0;
  padding: var(--jp-space-4);
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--jp-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== MODERN ANIMATIONS ===== */
@keyframes jp-slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes jp-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jp-gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.jp-offcanvas.jp-active {
  animation: jp-slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jp-offcanvas-overlay.jp-active {
  animation: jp-fadeIn 0.3s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .jp-offcanvas {
    width: 100%;
    max-width: 100%;
  }
  
  .jp-offcanvas-content {
    padding: var(--jp-space-4);
  }
  
  .jp-offcanvas-header {
    padding: var(--jp-space-4);
  }
  
  .jp-offcanvas-social ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .jp-offcanvas-contact ul li {
    flex-direction: column;
    gap: var(--jp-space-2);
    text-align: center;
  }
  
  .jp-offcanvas-social ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== SCROLLBAR STYLING ===== */
.jp-offcanvas-content::-webkit-scrollbar {
  width: 6px;
}

.jp-offcanvas-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--jp-radius-full);
}

.jp-offcanvas-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--jp-primary-500), var(--jp-accent-cyan));
  border-radius: var(--jp-radius-full);
}

.jp-offcanvas-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--jp-primary-600), var(--jp-primary-400));
}
