@import url('jl-update-base.css');

/* ============================================================
   HALAMAN TIPS LIBURAN (COMPACT PREMIUM UI)
   ============================================================ */
.tips-body {
  background: #f8fafc;
  color: #334155;
}

.magazine-layout {
  padding: 40px 15px;
  max-width: 1100px;
  margin: 0 auto;
}

.magazine-hero {
  text-align: center;
  margin-bottom: 35px;
}

.magazine-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.magazine-hero h1 i {
  color: var(--accent);
  margin-right: 8px;
}

.magazine-hero p {
  color: #64748b;
  font-size: 0.95rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layout */
.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

@media (max-width: 880px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  .tips-aside {
    order: 2;
  }
}

/* Article Main Container */
.article-main {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px -2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

.article-main h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 800;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 10px;
}

.article-main p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Tips Items */
.tips-tip {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(15px);
  border: 1px solid transparent;
  margin-bottom: 15px;
}

.tips-tip:last-child {
  margin-bottom: 0;
}

.tips-tip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tips-tip:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transform: translateX(4px);
}

.tips-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 74, 173, 0.08); /* Light primary */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.tips-tip h3 {
  margin: 0 0 5px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.tips-muted {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Learn More Link */
.tips-learn-more-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.tips-learn-more-link:hover {
  color: #b45309;
  text-decoration: underline;
}

/* Sidebar */
.sidebar-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px -2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 90px;
}

.sidebar-widget h4 {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li {
  margin-bottom: 10px;
}
.sidebar-widget ul li:last-child {
  margin-bottom: 0;
}

.sidebar-widget ul li a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
}

.sidebar-widget ul li a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.sidebar-widget ul li.active a {
  color: var(--accent);
  font-weight: 700;
  background: #fff8f1;
}

.sidebar-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 20px 0;
}

/* Promo Sidebar */
.sidebar-promo {
  text-align: center;
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.sidebar-promo h5 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Utilities */
.btn-sm.wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}
.btn-sm.wa:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}
.mt-4 { margin-top: 25px; }

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .magazine-layout {
    padding: 30px 15px;
  }
  .article-main {
    padding: 20px 15px;
  }
  .article-main h2 {
    font-size: 1.25rem;
  }
  .tips-tip {
    padding: 10px;
    gap: 10px;
  }
  .tips-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .tips-tip h3 {
    font-size: 1rem;
  }
  .sidebar-card {
    padding: 20px 15px;
  }
}
