
/* ============================================
   FAMILIA: JURNAL HUKUM KELUARGA
   ELSEVIER-INSPIRED ACADEMIC DESIGN
   Clean | Editorial | Minimal | Responsive
============================================ */

/* COLOR SYSTEM */
:root {
  --familia-primary: #0B6166;
  --familia-primary-dark: #074d51;
  --familia-accent: #e97128;
  --familia-text: #263b3b;
  --familia-muted: #667573;
  --familia-border: #e3e8e6;
  --familia-soft: #f5f7f6;
  --familia-hover: #edf3f1;
  --familia-white: #ffffff;
}

/* ============================================
   SIDEBAR BASE
============================================ */

.sidebar {
  width: 100%;
  max-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--familia-text);
}

/* ============================================
   ONLINE SUBMISSION
============================================ */

.btn-submit-orange {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 46px;
  padding: 12px 16px;

  background: var(--familia-primary);
  color: #ffffff !important;

  border: 1px solid var(--familia-primary);
  border-radius: 3px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1px;
  text-align: center;
  text-decoration: none !important;

  box-shadow: none;
  transform: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-submit-orange:hover {
  background: var(--familia-primary-dark);
  border-color: var(--familia-primary-dark);
  color: #ffffff !important;

  transform: none;
  box-shadow: none;
}

.btn-submit-orange:active {
  background: #0d302c;
  transform: none;
}

.btn-submit-orange::before,
.btn-submit-orange::after,
.btn-submit-orange .icon {
  display: none !important;
  content: none !important;
}

.btn-submit-orange .text {
  display: inline-block;
  color: inherit;
  font-weight: 700;
}

/* ============================================
   SIDEBAR SECTION HEADINGS
============================================ */

.sidebar-header-clean,
.sidebar-header {
  position: relative;

  margin: 24px 0 10px;
  padding: 0 0 12px;

  background: transparent;
  color: var(--familia-text);

  border: none;
  border-bottom: 1px solid var(--familia-border);
  border-radius: 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.35px;
  text-align: left;

  box-shadow: none;
}

/* Subtle Elsevier-inspired accent */
.sidebar-header-clean::after,
.sidebar-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;

  width: 42px;
  height: 2px;

  background: var(--familia-accent);
  opacity: 1;
}

/* ============================================
   NAVIGATION MENU
============================================ */

.menu {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  background: #ffffff;
}

.menu li {
  position: relative;
  margin: 0;
  padding: 0;

  border-bottom: 1px solid var(--familia-border);
}

.menu li:last-child {
  border-bottom: none;
}

/* Remove old decorative dividers */
.menu li::after {
  display: none;
  content: none;
}

.menu a {
  display: block;
  position: relative;

  min-height: 42px;
  padding: 11px 28px 11px 12px;

  background: #ffffff;
  color: var(--familia-primary);

  border: none;
  border-radius: 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-decoration: none !important;

  box-shadow: none;
  transform: none;

  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

/* Subtle navigation indicator */
.menu a::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;

  width: 6px;
  height: 6px;

  border-top: 1px solid #a3afab;
  border-right: 1px solid #a3afab;

  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.menu a:hover {
  background: var(--familia-hover);
  color: var(--familia-primary-dark);

  box-shadow: none;
  transform: none;
}

/* Active navigation */
.menu li.active a,
.menu a[aria-current="page"] {
  background: var(--familia-soft);
  color: var(--familia-primary-dark);
  font-weight: 700;

  border-left: 3px solid var(--familia-primary);
  padding-left: 9px;
}

/* Remove icons and icon dividers */
.menu .icon-img,
.menu a i,
.menu a span::before {
  display: none !important;
}

.menu a span {
  padding-left: 0;
}

/* ============================================
   CONTACT & RESEARCH TOOLS
============================================ */

.menu li.tool {
  margin: 0;
  border-bottom: 1px solid var(--familia-border);
}

.tool a,
.tool.wa a,
.tool.mendeley a,
.tool.turnitin a,
.tool.grammarly a {
  display: block;

  min-height: 42px;
  padding: 11px 28px 11px 12px;

  background: #ffffff !important;
  background-image: none !important;
  color: var(--familia-primary) !important;

  border: none;
  border-radius: 0;

  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;

  box-shadow: none;
  transform: none;
}

/* Remove brand watermarks and gradients */
.tool a::before {
  display: none !important;
  content: none !important;
}

.tool a::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;

  width: 6px;
  height: 6px;

  border-top: 1px solid #a3afab;
  border-right: 1px solid #a3afab;

  background: none;
  opacity: 1;

  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.tool a:hover,
.tool.wa a:hover,
.tool.mendeley a:hover,
.tool.turnitin a:hover,
.tool.grammarly a:hover {
  background: var(--familia-hover) !important;
  color: var(--familia-primary-dark) !important;

  box-shadow: none;
  transform: none;
}

/* ============================================
   JOURNAL IMAGES
============================================ */

.sidebar table {
  max-width: 100%;
}

.sidebar table img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar table td {
  max-width: 100%;
}

/* ============================================
   VISITORS HISTORY
============================================ */

.sidebar-gif-frame {
  width: 100%;
  padding: 14px;
  margin: 10px 0 15px;

  background: var(--familia-soft);
  border: 1px solid var(--familia-border);
  border-radius: 3px;

  text-align: center;
  box-shadow: none;
}

.sidebar-gif-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ============================================
   INDEXING SLIDER
============================================ */

.indexing-slider {
  position: relative;
  width: 100%;
  overflow: hidden;

  margin: 22px 0;
  padding: 12px 0;

  background: #ffffff;
  border-top: 1px solid var(--familia-border);
  border-bottom: 1px solid var(--familia-border);
}

.slider-track {
  display: flex;
  align-items: center;
  width: max-content;

  animation: scrollLeft 35s linear infinite;
}

.slider-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 16px;
  text-decoration: none;
}

.slider-track img {
  width: 135px;
  height: 45px;
  object-fit: contain;

  filter: grayscale(100%);
  opacity: 0.75;

  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

.slider-track a:hover img {
  filter: none;
  opacity: 1;
  transform: none;
}

.indexing-slider:hover .slider-track,
.indexing-slider:focus-within .slider-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   JOURNAL FOOTER
============================================ */

.journal-footer {
  background: transparent;
  color: var(--familia-text);
  font-family: Arial, Helvetica, sans-serif;

  border-top: 1px solid var(--familia-border);
}

.footer-container {
  display: flex;
  align-items: center;
  gap: 24px;

  padding: 28px 35px;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 110px;
  min-height: 110px;
  padding: 12px;

  background: #ffffff;
  border: 1px solid var(--familia-border);
  border-radius: 3px;

  box-shadow: none;
  transition: none;
}

.footer-logo-box img {
  display: block;
  max-width: 100px;
  height: auto;
}

.footer-logo-box:hover {
  transform: none;
  box-shadow: none;
}

.footer-info h3 {
  margin: 0 0 5px;

  color: var(--familia-primary-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-info span {
  display: block;
  margin-bottom: 9px;

  color: var(--familia-muted);
  font-size: 12px;
}

.footer-info p {
  margin: 4px 0;

  color: var(--familia-text);
  font-size: 13px;
  line-height: 1.6;
}

.footer-info a {
  color: var(--familia-primary);
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--familia-primary-dark);
  text-decoration: underline;
}

/* ============================================
   ACCESSIBILITY
============================================ */

.btn-submit-orange:focus-visible,
.menu a:focus-visible,
.footer-info a:focus-visible {
  outline: 2px solid var(--familia-primary);
  outline-offset: 3px;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .menu a,
  .tool a {
    min-height: 44px;
    font-size: 13px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 18px;
    text-align: center;
  }

  .footer-logo-box {
    min-width: 100px;
    min-height: 100px;
  }

  .footer-info h3 {
    font-size: 17px;
  }
}

/* ============================================
   REDUCED MOTION
============================================ */

@media (prefers-reduced-motion: reduce) {
  .slider-track {
    animation: none;
  }

  .btn-submit-orange,
  .menu a,
  .tool a,
  .slider-track img {
    transition: none;
  }
}
