/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--white);
  border-color: var(--color-accent);
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--pink-primary);
  border-color: var(--pink-primary);
}

.btn--outline:hover,
.btn--outline:active {
  background: var(--pink-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--pink-primary);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn:focus-visible {
  outline: 3px solid var(--pink-muted);
  outline-offset: 2px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-surface-inverse);
  box-shadow: var(--shadow-header);
  z-index: 1000;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-xl);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo__mark {
  width: 40px;
  height: 40px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-logo__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-on-surface-inverse);
  letter-spacing: 0.04em;
}

.site-logo__sub {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: oklch(65% 0.01 285);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: end;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(75% 0.01 285);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.main-nav__link:hover {
  color: var(--color-on-surface-inverse);
  background: oklch(100% 0 0 / 0.06);
}

.main-nav__link.active {
  color: var(--color-accent);
  font-weight: 600;
}

.main-nav__link--cta {
  background: var(--color-accent);
  color: var(--white) !important;
  font-weight: 600;
  margin-left: 0.5rem;
}

.main-nav__link--cta:hover {
  background: var(--color-accent-hover);
  color: var(--white) !important;
}

.main-nav__link--cta.active {
  color: var(--white) !important;
  box-shadow: inset 0 0 0 2px var(--color-on-surface-inverse);
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-links__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--pink-light);
  color: var(--pink-primary);
  transition: all var(--transition);
}

.social-links__link:hover {
  background: var(--pink-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.social-links__link svg {
  width: 18px;
  height: 18px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid var(--color-border-inverse);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  justify-self: end;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-on-surface-inverse);
  transition: all var(--transition);
  border-radius: 2px;
  margin: 0 auto;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.active span:nth-child(2) {
  transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-overlay.active {
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: oklch(75% 0.01 285);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.site-footer__brand .site-logo__name {
  color: var(--white);
}

.site-footer__brand .site-logo__sub {
  color: oklch(60% 0.01 285);
}

.site-footer__desc {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.site-footer__links li {
  margin-bottom: var(--space-sm);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  transition: color var(--transition);
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__social {
  margin-top: var(--space-md);
}

.site-footer__social .social-links__link {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-footer__social .social-links__link:hover {
  background: var(--pink-primary);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--pink-light);
}

.card__body {
  padding: var(--space-lg);
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--pink-light);
  color: var(--pink-primary);
}

.badge--sinta1 { background: #FEF3C7; color: #92400E; }
.badge--sinta2 { background: #D1FAE5; color: #065F46; }
.badge--sinta3 { background: #DBEAFE; color: #1E40AF; }
.badge--scopus { background: #FEE2E2; color: #991B1B; }
.badge--garuda { background: var(--pink-light); color: var(--pink-dark); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* ===== FILTER ===== */
.filter-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.filter-panel__title {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--pink-light);
}

.filter-group {
  margin-bottom: var(--space-xl);
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-chips {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.filter-chip:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
}

.filter-chip input[type="checkbox"] {
  accent-color: var(--pink-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-chip input:checked + span,
.filter-chip:has(input:checked) {
  color: var(--pink-primary);
  font-weight: 600;
}

.filter-actions {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.filter-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.filter-count strong {
  color: var(--pink-primary);
}

/* ===== JOURNAL GRID ===== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.journal-card .card__image {
  height: 180px;
}

.journal-card__path {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pink-primary);
}

.journal-card__desc {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card__issn {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-dark);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #EF4444;
}

.form-error {
  color: #EF4444;
  font-size: var(--fs-xs);
  margin-top: var(--space-xs);
}

.form-success {
  background: #D1FAE5;
  color: #065F46;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  display: none;
}

.form-success.show {
  display: block;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination__btn:hover,
.pagination__btn.active {
  background: var(--pink-primary);
  border-color: var(--pink-primary);
  color: var(--white);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__btn--wide {
  width: auto;
  padding: 0 1rem;
}

.pagination .dots {
  border-color: transparent;
  background: transparent;
}

.pagination .dots:hover {
  background: transparent;
  color: var(--text-muted);
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 992px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: min(300px, 85vw);
    height: calc(100vh - var(--header-height));
    background: var(--black-soft);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    border-left: 1px solid var(--color-border-inverse);
    transition: right var(--transition-slow);
    z-index: 999;
    margin-left: 0;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.125rem;
  }

  .main-nav__link {
    font-size: var(--fs-base);
    padding: 0.75rem 1rem;
    display: block;
    width: 100%;
    color: oklch(80% 0.01 285);
  }

  .main-nav__link--cta {
    margin-left: 0;
    margin-top: var(--space-sm);
    text-align: center;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-logo__brand {
    display: none;
  }
}
