/* ============================================================
   IJAERD Journal Management System — Public Site CSS
   ============================================================ */

:root {
  --navy:       #0d2b55;
  --navy-light: #1a3f7a;
  --blue:       #1565c0;
  --blue-light: #1e88e5;
  --accent:     #c62828;
  --gold:       #f59e0b;
  --green:      #10b981;
  --bg:         #f4f6fb;
  --surface:    #ffffff;
  --border:     #dde3ef;
  --text:       #1a2340;
  --text-muted: #5a6480;
  --text-light: #8895b3;
  --shadow:     0 2px 16px rgba(13,43,85,.08);
  --shadow-md:  0 4px 24px rgba(13,43,85,.12);
  --radius:     10px;
  --radius-lg:  16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── TOPBAR ── */
.topbar { background: var(--navy); height: 64px; display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.topbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge { background: var(--accent); color: #fff; font-family: 'DM Serif Display', serif; font-size: 13px; padding: 5px 10px; border-radius: 6px; letter-spacing: .5px; }
.topbar-title { color: #fff; font-size: 15px; font-weight: 500; }
.topbar-subtitle { color: rgba(255,255,255,.5); font-size: 11px; }
.topbar-spacer { flex: 1; }
.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a { color: rgba(255,255,255,.75); font-size: 13px; padding: 6px 12px; border-radius: 6px; transition: all .2s; text-decoration: none; }
.topbar-nav a:hover, .topbar-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.topbar-btn { background: var(--accent); color: #fff; border: none; padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: background .2s; text-decoration: none; white-space: nowrap; }
.topbar-btn:hover { background: #a52020; }

/* ── NOTICE STRIP ── */
.notice-strip { background: var(--navy-light); overflow: hidden; }
.marquee { white-space: nowrap; animation: marquee 28s linear infinite; padding: 8px 0; font-size: 12.5px; color: rgba(255,255,255,.85); display: inline-block; }
.marquee span { padding: 0 40px; }
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── FLASH MESSAGES ── */
.flash { padding: 12px 20px; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.flash-error   { background: #fce4ec; color: #c62828; border-left: 4px solid #c62828; }
.flash-close { cursor: pointer; font-size: 16px; opacity: .6; margin-left: 12px; }
.flash-close:hover { opacity: 1; }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 13.5px; line-height: 1.7; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #2e7d32; }
.alert-error   { background: #fce4ec; color: #b71c1c; border-left: 4px solid #c62828; }
.alert-info    { background: #e3f2fd; color: #0d47a1; border-left: 4px solid #1565c0; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 24px; flex: 1; }

/* ── HERO ── */
.public-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 52px 40px; color: #fff; position: relative; overflow: hidden; }
.public-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.hero-content { max-width: 800px; }
.hero-title { font-family: 'DM Serif Display', serif; font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.hero-subtitle { font-size: 14.5px; color: rgba(255,255,255,.72); max-width: 600px; line-height: 1.7; margin-bottom: 22px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chip { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); padding: 5px 14px; border-radius: 20px; font-size: 12.5px; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 10px 20px; border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ── STATS GRID ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: box-shadow .2s; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.blue   { background: #e3f2fd; }
.stat-icon.green  { background: #e8f5e9; }
.stat-icon.orange { background: #fff3e0; }
.stat-icon.red    { background: #fce4ec; }
.stat-icon.purple { background: #f3e5f5; }
.stat-value { font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* ── CARD ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.card-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.card-body { padding: 20px 22px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--blue); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 13.5px; font-weight: 500; font-family: inherit; cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.btn-primary:hover { background: var(--navy); text-decoration: none; }
.btn-primary.btn-green { background: var(--green); }
.btn-primary.btn-green:hover { background: #059669; }
.btn-secondary { background: var(--surface); color: var(--blue); border: 1px solid var(--border); padding: 9px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 500; font-family: inherit; cursor: pointer; transition: all .2s; display: inline-block; text-decoration: none; }
.btn-secondary:hover { background: var(--bg); border-color: var(--blue); text-decoration: none; }
.btn-sm { padding: 6px 12px !important; font-size: 12.5px !important; border-radius: 6px !important; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; }
.badge-pending   { background: #fff8e1; color: #b8860b; }
.badge-review    { background: #e3f2fd; color: var(--blue); }
.badge-accepted  { background: #e8f5e9; color: #2e7d32; }
.badge-rejected  { background: #fce4ec; color: #c62828; }
.badge-published { background: #e0f2f1; color: #00695c; }
.badge-revision  { background: #f3e5f5; color: #7b1fa2; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { background: #f8fafc; color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid #f0f4f8; vertical-align: middle; }
tr:hover td { background: #f8fafc; }
tr:last-child td { border-bottom: none; }

/* ── FORMS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea { padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13.5px; color: var(--text); background: var(--surface); outline: none; transition: border-color .2s; width: 100%; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-hint { font-size: 11.5px; color: var(--text-light); }
.form-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.search-filter { display: flex; gap: 12px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input { flex: 1; width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13.5px; background: var(--surface); color: var(--text); outline: none; transition: border-color .2s; }
.search-input:focus { border-color: var(--blue); }
.filter-select { padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13.5px; background: var(--surface); color: var(--text); outline: none; cursor: pointer; }

/* ── TABS ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 16px; font-size: 13.5px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; position: relative; }
.timeline::before { content:''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.tl-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; position: relative; z-index: 1; border: 2px solid var(--surface); font-weight: 700; }
.tl-dot.green  { background: #e8f5e9; color: #2e7d32; }
.tl-dot.blue   { background: #e3f2fd; color: var(--blue); }
.tl-dot.orange { background: #fff3e0; color: #e65100; }
.tl-dot.red    { background: #fce4ec; color: #c62828; }
.tl-dot.gray   { background: #f0f4f8; color: var(--text-light); }
.tl-content { flex: 1; padding-top: 6px; }
.tl-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.tl-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tl-note { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; background: var(--bg); border-radius: 6px; padding: 8px 12px; }

/* ── INFO TILES ── */
.info-tile { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; }
.info-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 4px; }

/* ── PAPER CARDS ── */
.paper-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow); transition: box-shadow .2s; }
.paper-card:hover { box-shadow: var(--shadow-md); }
.paper-id { font-size: 11.5px; font-weight: 600; color: var(--blue); letter-spacing: .5px; }
.paper-title { font-size: 15px; font-weight: 600; color: var(--navy); margin: 6px 0 5px; line-height: 1.4; }
.paper-authors { font-size: 12.5px; color: var(--text-muted); }
.paper-meta { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.paper-meta-item { font-size: 12px; color: var(--text-light); }
.paper-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn { padding: 7px 13px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; transition: all .2s; text-decoration: none; }
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ── PAGE HEADER ── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--navy); line-height: 1.2; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { color: #fff; font-family: 'DM Serif Display', serif; font-size: 22px; margin-bottom: 10px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 20px 24px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ── PROGRESS BARS ── */
.progress-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.progress-fill.blue { background: var(--blue); }
.progress-fill.green { background: var(--green); }
.progress-fill.orange { background: var(--gold); }

/* ── DASH GRID ── */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ── TEXT UTILS ── */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12.5px; }
.font-bold { font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .public-hero { padding: 32px 20px; }
  .hero-title { font-size: 24px; }
  .container { padding: 16px; }
}
