/* =========================
   Author Information — Elegant Animated Styles
   Compatible with OJS 3.3 block
   ========================= */

/* Base block container */
.block_author_information {
  --brand-dark: #184a40;      /* deep green */
  --brand-accent: #e0b44c;    /* gold accent */
  --muted: #6b7a74;
  --bg: #ffffff;
  --surface: #fbfcfb;
  --radius: 10px;
  margin: 0 0 1.25rem 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  box-shadow:
    0 6px 18px rgba(24,74,64,0.06),
    0 2px 6px rgba(24,74,64,0.04);
  overflow: hidden;
  transform-origin: left top;
  animation: ai-slideIn 420ms cubic-bezier(.2,.9,.25,1) both;
}

/* slide-in for the whole block */
@keyframes ai-slideIn {
  from { opacity: 0; transform: translateX(-14px) scale(.995); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}

/* Header with gradient and shimmer accent */
.block_author_information .title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 12px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(33,77,64,1) 0%, rgba(23,62,52,1) 60%);
  position: relative;
  border-bottom: 4px solid var(--brand-accent);
}

/* shimmer effect */
.block_author_information .title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.0) 50%, rgba(255,255,255,0.06) 100%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: ai-shimmer 2.6s linear infinite;
  mix-blend-mode: overlay;
}

@keyframes ai-shimmer {
  to { transform: translateX(120%); }
}

/* menu reset */
.block_author_information ul.menu {
  list-style: none;
  margin: 0;
  padding: 8px;
}

/* menu item card look */
.block_author_information ul.menu li {
  background: transparent;
  margin: 6px 6px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.9,.25,1), box-shadow .22s;
  will-change: transform;
  border: 1px solid rgba(16,24,22,0.04);
  opacity: 0;
  transform: translateY(8px);
  animation: ai-itemIn .48s cubic-bezier(.2,.9,.25,1) forwards;
}

/* staggered animation using nth-child */
.block_author_information ul.menu li:nth-child(1) { animation-delay: 0.08s; }
.block_author_information ul.menu li:nth-child(2) { animation-delay: 0.12s; }
.block_author_information ul.menu li:nth-child(3) { animation-delay: 0.16s; }
.block_author_information ul.menu li:nth-child(4) { animation-delay: 0.20s; }
.block_author_information ul.menu li:nth-child(5) { animation-delay: 0.24s; }
.block_author_information ul.menu li:nth-child(6) { animation-delay: 0.28s; }
.block_author_information ul.menu li:nth-child(7) { animation-delay: 0.32s; }
.block_author_information ul.menu li:nth-child(8) { animation-delay: 0.36s; }
.block_author_information ul.menu li:nth-child(9) { animation-delay: 0.40s; }
.block_author_information ul.menu li:nth-child(10) { animation-delay: 0.44s; }
.block_author_information ul.menu li:nth-child(11) { animation-delay: 0.48s; }
.block_author_information ul.menu li:nth-child(12) { animation-delay: 0.52s; }
.block_author_information ul.menu li:nth-child(13) { animation-delay: 0.56s; }
.block_author_information ul.menu li:nth-child(14) { animation-delay: 0.60s; }
.block_author_information ul.menu li:nth-child(15) { animation-delay: 0.64s; }
.block_author_information ul.menu li:nth-child(16) { animation-delay: 0.68s; }
.block_author_information ul.menu li:nth-child(17) { animation-delay: 0.72s; }

/* item entrance */
@keyframes ai-itemIn {
  to { opacity: 1; transform: translateY(0); }
}

/* link style inside item */
.block_author_information ul.menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--brand-dark);
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.00) 100%);
  border-radius: 6px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-weight: 500;
  font-size: 0.98rem;
}

/* small icon circle using pseudo element */
.block_author_information ul.menu li a::before {
  content: "";
  width: 38px;
  height: 38px;
  display: inline-block;
  border-radius: 8px;
  flex: 0 0 38px;
  background: linear-gradient(180deg, rgba(33,77,64,0.06), rgba(24,74,64,0.02));
  border: 1px solid rgba(24,74,64,0.06);
  box-shadow: 0 2px 6px rgba(23,62,52,0.03) inset;
  transition: transform .18s, background .18s;
}

/* right-side subtle chevron */
.block_author_information ul.menu li a::after {
  content: "›";
  margin-left: auto;
  font-weight: 700;
  color: var(--muted);
  transform: translateX(0);
  transition: transform .18s ease, color .18s ease;
}

/* hover/focus interaction */
.block_author_information ul.menu li a:hover,
.block_author_information ul.menu li a:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(24,74,64,0.08), 0 2px 6px rgba(24,74,64,0.04);
  background: linear-gradient(90deg, rgba(224,180,76,0.03), rgba(224,180,76,0.01));
  color: #072f27;
  outline: none;
}

/* accent bar on hover (left) */
.block_author_information ul.menu li a::before {
  box-sizing: border-box;
  padding-left: 6px;
}
.block_author_information ul.menu li a:hover::before {
  transform: translateX(-4px) scale(1.02);
  background: linear-gradient(180deg, rgba(33,77,64,0.14), rgba(33,77,64,0.06));
  border-color: rgba(33,77,64,0.12);
}

/* chevron animate */
.block_author_information ul.menu li a:hover::after {
  transform: translateX(6px);
  color: var(--brand-dark);
}

/* accessibility focus */
.block_author_information ul.menu li a:focus {
  box-shadow: 0 0 0 3px rgba(33,77,64,0.08);
}

/* divider subtle */
.block_author_information ul.menu li + li {
  margin-top: 4px;
}

/* small screens adapt */
@media (max-width: 520px) {
  .block_author_information { border-radius: 6px; }
  .block_author_information .title { font-size: .92rem; padding: 10px; }
  .block_author_information ul.menu li a { padding: 10px 12px; font-size: .95rem; }
  .block_author_information ul.menu li a::before { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; }
}

/* Optional subtle floating animation on hover for header */
.block_author_information .title:hover {
  transform: translateY(-2px);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
