/* ==========================================================
   JSTE — site stylesheet
   Design tokens ported EXACTLY from the original app's
   src/index.css / tailwind.config.ts — same palette, same
   fonts, same shadows/radius. Do not redesign; this file
   should track the original 1:1.
   ========================================================== */
:root {
  /* ---- Core palette (converted from the original's HSL vars) ---- */
  --jste-background: #fbfaf9;   /* hsl(40 20% 98%) */
  --jste-foreground: #171f26;   /* hsl(210 25% 12%) */
  --jste-card: #ffffff;
  --jste-primary: #1d5563;      /* hsl(192 55% 25%) — deep teal */
  --jste-primary-foreground: #fbfaf9;
  --jste-secondary: #f4f1ec;    /* hsl(40 25% 94%) */
  --jste-secondary-foreground: #171f26;
  --jste-muted: #f2f0ed;        /* hsl(40 15% 94%) */
  --jste-muted-foreground: #6a7581; /* hsl(210 10% 46%) */
  --jste-accent: #e79523;       /* hsl(35 80% 52%) — warm gold/orange */
  --jste-accent-foreground: #171f26;
  --jste-destructive: #dc2828;
  --jste-border: #dce0e5;
  --jste-success: #29a356;
  --jste-warning: #e79523;
  --jste-info: #2d8dd2;
  --jste-hero-dark: #1c2e40;    /* hsl(210 40% 18%) — hero gradient endpoint */
  --jste-radius: 0.375rem;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --section-gradient: linear-gradient(180deg, var(--jste-background), var(--jste-secondary));
  --card-shadow: 0 1px 3px 0 rgba(23,31,38,0.06), 0 1px 2px -1px rgba(23,31,38,0.06);
  --card-shadow-hover: 0 10px 15px -3px rgba(23,31,38,0.08), 0 4px 6px -4px rgba(23,31,38,0.06);
}

body {
  font-family: var(--font-body);
  color: var(--jste-foreground);
  background: var(--jste-background);
}

h1, h2, h3, h4, .font-serif { font-family: var(--font-display); }

a { color: var(--jste-primary); text-decoration: none; }
a:hover { color: var(--jste-accent); }

.btn-brand {
  background-color: var(--jste-accent);
  border-color: var(--jste-accent);
  color: var(--jste-accent-foreground);
  font-weight: 600;
  border-radius: var(--jste-radius);
}
.btn-brand:hover { background-color: #d1841c; border-color: #d1841c; color: var(--jste-accent-foreground); }

.btn-outline-brand {
  border-color: var(--jste-primary);
  color: var(--jste-primary);
  font-weight: 600;
  border-radius: var(--jste-radius);
}
.btn-outline-brand:hover { background-color: var(--jste-primary); color: var(--jste-primary-foreground); }

.btn, .form-control, .form-select, .card { border-radius: var(--jste-radius); }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; top: -50px; left: 0; z-index: 2000;
  background: var(--jste-primary); color: #fff; padding: .75rem 1.25rem;
  text-decoration: none; border-radius: 0 0 .375rem 0;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Navbar — light card style matching the original (bg-card/95 backdrop-blur, border-b) */
.site-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--jste-border);
}
.site-navbar nav a:hover { background: var(--jste-secondary); color: var(--jste-foreground) !important; }

/* Hero Slider */
.hero-section { position: relative; overflow: hidden; color: #fff; }
.hero-swiper, .hero-swiper .swiper-slide {
  position: relative;
  height: 78vh;
  min-height: 480px;
  max-height: 720px;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Matches the original's Tailwind gradient: from-primary/75 via-primary/70 to-primary/85 */
  background: linear-gradient(to bottom, rgba(29,85,99,.75) 0%, rgba(29,85,99,.70) 50%, rgba(29,85,99,.85) 100%);
}
.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 1rem;
}
.hero-eyebrow {
  margin-bottom: .75rem;
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.85);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto;
}
.hero-subtitle {
  max-width: 640px;
  margin: .75rem auto 0;
  color: rgba(255,255,255,.9);
}
.hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Swiper controls, themed to the brand accent */
.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; width: 9px; height: 9px; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--jste-accent); }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next {
  color: #fff; opacity: .75; transition: opacity .15s ease;
}
.hero-swiper .swiper-button-prev:hover, .hero-swiper .swiper-button-next:hover { opacity: 1; }
.hero-swiper .swiper-button-prev:after, .hero-swiper .swiper-button-next:after { font-size: 1.5rem; }

@media (max-width: 767.98px) {
  .hero-title { font-size: 1.9rem; }
  .hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { display: none; }
}

/* Cards */
.card-article {
  border: 1px solid var(--jste-border);
  border-radius: var(--jste-radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  background: var(--jste-card);
}
.card-article:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.card-article .badge-status { font-size: .7rem; }

.stat-box {
  border-radius: var(--jste-radius);
  background: var(--jste-secondary);
  padding: 2rem 1rem;
  text-align: center;
}
.stat-box .stat-number { font-size: 2.25rem; font-weight: 700; color: var(--jste-primary); font-family: var(--font-display); }

/* Section spacing */
.section { padding: 4.5rem 0; }
.section.section-gradient { background: var(--section-gradient); }
.section-title { margin-bottom: 2.5rem; }
.section-title .eyebrow { color: var(--jste-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* Footer — light card background, matching the original (bg-card, border-t) */
.site-footer { background: var(--jste-card); color: var(--jste-foreground); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--jste-muted-foreground); }
.footer-links a:hover { color: var(--jste-primary); }

/* Flash toasts */
.flash-toast { border-radius: 0; margin-bottom: 0; text-align: center; }

/* Status badges — pill style, mirrors the original's rounded-full status-* utility classes */
.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-submitted { background: rgba(45,141,210,.1); color: var(--jste-info); }
.status-review    { background: rgba(231,149,35,.1); color: var(--jste-warning); }
.status-accepted  { background: rgba(41,163,86,.1);  color: var(--jste-success); }
.status-rejected  { background: rgba(220,40,40,.1);  color: var(--jste-destructive); }
.status-published { background: rgba(29,85,99,.1);   color: var(--jste-primary); }

/* Dashboard app shell — matches original DashboardLayout.tsx */
.dash-body { background: var(--jste-background); }
.dash-sidebar-shell { background: var(--jste-card); border-right: 1px solid var(--jste-border); }
.dash-nav-link { color: var(--jste-muted-foreground); }
.dash-nav-link:hover { background: var(--jste-secondary); color: var(--jste-foreground); }
.dash-nav-link.active { background: var(--jste-primary); color: #fff; }
.dash-nav-badge {
  background: var(--jste-primary); color: #fff; border-radius: 999px;
  padding: 0 .4rem; font-size: .65rem; font-weight: 600; min-width: 18px; text-align: center;
}
.dash-nav-link.active .dash-nav-badge { background: #fff; color: var(--jste-primary); }
.dash-list-row { color: inherit; transition: background .15s ease; }
.dash-list-row:hover { background: var(--jste-secondary); }
.dash-list-row:last-child { border-bottom: none !important; }
.dash-stat { border-radius: var(--jste-radius); padding: 1.5rem; background: var(--jste-card); border: 1px solid var(--jste-border); box-shadow: var(--card-shadow); }

.timeline { position: relative; padding-left: 1.5rem; border-left: 2px solid var(--jste-border); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.94rem; top: .25rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--jste-accent);
}

@media (max-width: 991.98px) {
  .hero-section { padding: 4rem 0 3rem; text-align: center; }
  .dash-sidebar { min-height: auto; border-right: none; border-bottom: 1px solid var(--jste-border); }
}
