/* ==========================================================================
   Energy Policy Turkey (EPT) — TESPAM
   Navy & Gold kurumsal kimlik
   ========================================================================== */

:root {
  --navy-900: #071427;
  --navy-800: #0b1e3d;
  --navy-700: #122a4f;
  --navy-600: #1b3a68;
  --gold-500: #d4a017;
  --gold-400: #e3b53b;
  --gold-300: #f0cd6f;
  --orange-500: #e8720c;
  --paper: #f7f5ef;
  --paper-2: #ffffff;
  --ink-900: #1b1d22;
  --ink-600: #4b5160;
  --ink-400: #7b8494;
  --border: #e3e0d6;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 30, 61, 0.10);
  --shadow-sm: 0 2px 8px rgba(11, 30, 61, 0.08);
  --max-width: 1180px;
  --serif: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-500); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-800); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-600); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: #b9c3d6;
  font-size: .78rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; flex-wrap: wrap; gap: 4px; }
.topbar-lang em { color: var(--gold-300); font-style: normal; }

.site-header { background: var(--navy-800); box-shadow: var(--shadow); position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 58px; width: auto; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #d7deec;
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(212, 160, 23, 0.16);
  color: var(--gold-300);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 30%, rgba(212,160,23,0.20), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 72px 20px 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow { display: inline-block; color: var(--gold-300); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .3em; }
.hero p.lead { color: #c9d2e3; font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure img { max-height: 220px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn-gold { background: linear-gradient(120deg, var(--gold-400), var(--orange-500)); color: var(--navy-900); }
.btn-gold:hover { color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(212,160,23,.35); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 34px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.section-title h2 { font-size: 1.7rem; margin: 0; position: relative; padding-bottom: 10px; }
.section-title h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--orange-500));
  border-radius: 3px;
}
.section-title .muted { color: var(--ink-400); font-size: .92rem; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .vol-badge {
  display: inline-block; align-self: flex-start; background: var(--navy-800); color: var(--gold-300);
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .04em;
}
.article-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--navy-800); }
.article-card h3 a:hover { color: var(--gold-500); }
.article-authors { font-size: .84rem; color: var(--ink-400); margin-bottom: 10px; font-style: italic; }
.article-excerpt { font-size: .92rem; color: var(--ink-600); flex-grow: 1; }
.article-card-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.volume-card { text-align: center; }
.volume-cover {
  width: 100%; aspect-ratio: 3/4; border-radius: 8px; margin-bottom: 14px;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-600) 60%, var(--gold-500) 165%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.volume-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.12), transparent 45%);
}
.volume-cover .vol-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-300); }
.volume-cover .vol-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #cfd8ea; margin-top: 4px; }
.volume-cover img.custom-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Latest issue banner ---------- */
.latest-issue { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.latest-issue .volume-cover { aspect-ratio: 3/4; }
.latest-issue-list { display: grid; gap: 10px; }
.latest-issue-list .mini-article { border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.latest-issue-list .mini-article:last-child { border-bottom: none; }
.latest-issue-list a { font-weight: 600; color: var(--navy-800); }
.latest-issue-list a:hover { color: var(--gold-500); }
.latest-issue-list .article-authors { margin: 2px 0 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .84rem; color: var(--ink-400); margin-bottom: 20px; }
.breadcrumbs a { color: var(--ink-400); }
.breadcrumbs a:hover { color: var(--gold-500); }

/* ---------- Article detail ---------- */
.article-detail { max-width: 820px; }
.article-detail .vol-badge { margin-bottom: 14px; }
.article-detail h1 { font-size: 1.9rem; margin-bottom: 10px; }
.article-meta { color: var(--ink-400); font-size: .92rem; margin-bottom: 24px; }
.article-meta .authors { color: var(--navy-700); font-weight: 600; font-style: normal; }
.pdf-box {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 20px 0 30px; flex-wrap: wrap;
}
.pdf-box .pdf-icon { font-size: 1.8rem; }
.pdf-note { font-size: .8rem; color: var(--ink-400); margin-top: 6px; }
.abstract-box { background: #fbf9f3; border-left: 4px solid var(--gold-500); padding: 18px 22px; border-radius: 0 8px 8px 0; margin-bottom: 10px; }
.abstract-box h4 { margin-bottom: 8px; font-size: 1rem; }

/* ---------- Board ---------- */
.board-member { text-align: center; padding: 26px 18px; }
.board-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
}
.board-member h3 { font-size: 1.02rem; margin-bottom: 2px; }
.board-member .role { color: var(--gold-500); font-size: .84rem; font-weight: 700; }
.board-member .bio { font-size: .86rem; margin-top: 8px; }

/* ---------- Rules / plain content ---------- */
.prose { max-width: 800px; }
.prose p { color: var(--ink-600); font-size: 1rem; }
.prose ol, .prose ul { color: var(--ink-600); padding-left: 1.3em; }
.prose li { margin-bottom: .6em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--navy-800); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: .95rem; font-family: var(--sans);
  background: #fff; color: var(--ink-900);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; border-color: var(--gold-400); }
.field-hint { font-size: .78rem; color: var(--ink-400); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c3d6; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 46px 20px 30px; }
.footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(.9); }
.footer-col h4 { color: var(--gold-300); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col a { display: block; color: #b9c3d6; padding: 4px 0; font-size: .92rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px; font-size: .8rem; color: #7d879c; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.alert-error { background: #fdeceb; color: #a02b1f; border: 1px solid #f3c6c1; }
.alert-success { background: #ecf7ee; color: #21693a; border: 1px solid #bfe3c6; }
.alert-info { background: #eef3fb; color: #1d3f72; border: 1px solid #c7d7f0; }

/* ---------- Admin ---------- */
.admin-body { background: #eef1f6; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--navy-900); color: #cfd8ea; flex-shrink: 0; padding: 24px 0; }
.admin-sidebar .brand { padding: 0 20px 20px; }
.admin-sidebar .brand img { height: 42px; }
.admin-sidebar nav a { display: block; padding: 12px 22px; color: #cfd8ea; font-weight: 600; font-size: .92rem; border-left: 3px solid transparent; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(212,160,23,.12); border-left-color: var(--gold-500); color: var(--gold-300); }
.admin-main { flex-grow: 1; padding: 30px 36px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.admin-table th { color: var(--navy-800); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-gold { background: #fbeecb; color: #8a6a10; }
.badge-gray { background: #ececec; color: #666; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); padding: 20px; }
.login-box { background: #fff; border-radius: 14px; padding: 40px 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-box img { height: 50px; margin: 0 auto 20px; display: block; }
.login-box h1 { font-size: 1.25rem; text-align: center; margin-bottom: 20px; }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: .82rem; }
.icon-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.text-danger { color: #a02b1f; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-400); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-400); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-figure { order: -1; }
  .latest-issue { grid-template-columns: 1fr; }
  .latest-issue .volume-cover { max-width: 220px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-800);
    flex-direction: column; padding: 10px 20px 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col a { padding: 6px 0; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { padding: 20px; }
}
