/* KORRASOFT mini CMS — δημόσιο θέμα */
:root {
  --accent: #1e9e5a;
  --navy: #0f1f3d;
  --navy2: #173d80;
  --ink: #18202f;
  --muted: #5d6879;
  --line: #e3e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy2); }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 36px; width: auto; }
.brand b { letter-spacing: .02em; }
.brand small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy2), var(--navy)); color: #fff; font-weight: 800;
}
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav > a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.top nav > a:hover, .top nav > a.on { background: var(--bg); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 8px; }
.langs a { padding: 3px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.langs a.on { background: var(--navy); color: #fff; }

/* ---------- blocks */
.blk { padding: 56px 0; }
.blk + .blk { padding-top: 8px; }
.blk-hero { padding: 0 !important; }
.blk-hero + .blk { padding-top: 56px; }
.blk-h { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
.blk-intro { color: var(--muted); max-width: 720px; margin: 0 0 28px; font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(30, 158, 90, .25), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; }
.hero-light { background: linear-gradient(180deg, #fff, var(--bg)); }
.hero-in { display: grid; gap: 40px; align-items: center; }
.hero.has-img .hero-in { grid-template-columns: 1fr 1.15fr; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; margin: 12px 0 16px; letter-spacing: -.02em; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); opacity: .9; margin: 0 0 28px; max-width: 560px; }
.hero:not(.has-img) .hero-txt { text-align: center; max-width: 780px; margin-inline: auto; }
.hero:not(.has-img) .lead { margin-inline: auto; }
.hero:not(.has-img) .btns { justify-content: center; }
.hero-img img { border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12); }
.hero-light .hero-img img { box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .08s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: inherit; border-color: currentColor; opacity: .9; }
.hero-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--muted); }
.btn-light { background: #fff; color: var(--navy); }

/* grid / features */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feat { padding: 24px; }
.feat-ic { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); margin-bottom: 14px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); }

/* prose */
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose h3 { margin: 22px 0 8px; }
.prose code { background: #eef1f6; padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.prose.center { text-align: center; }

/* download */
.dl { display: flex; gap: 28px; padding: 32px; align-items: flex-start; border-top: 4px solid var(--accent); }
.dl-ic { width: 96px; height: 96px; flex: none; }
.dl-body { flex: 1; min-width: 0; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.dl-meta b { color: var(--ink); font-weight: 600; }
.dl-count { margin-top: 12px; color: var(--muted); font-size: 14px; }
.dl-notes { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery figure, figure.single { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.img-small figure { max-width: 480px; margin-inline: auto; }
.img-normal figure { max-width: 860px; margin-inline: auto; }
figure.single img { border-radius: 12px; box-shadow: var(--shadow); margin-inline: auto; }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .prose { padding-bottom: 6px; color: #333c4b; }

/* changelog */
.cl-item { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin-bottom: 18px; }
.cl-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.cl-ver { font-weight: 700; font-size: 18px; }
.cl-date { color: var(--muted); font-size: 14px; }

/* cta */
.cta { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; border-radius: 18px; padding: 44px 32px; text-align: center; }
.cta h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.cta p { opacity: .85; margin: 0 auto 22px; max-width: 620px; }

/* software list */
.soft { display: flex; gap: 16px; padding: 22px; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.soft:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 24, 40, .12); }
.soft-ic { width: 64px; height: 64px; flex: none; border-radius: 14px; }
.soft-ic.ph { display: grid; place-items: center; background: var(--bg); color: var(--navy2); font-size: 26px; }
.soft h3 { margin: 2px 0 4px; font-size: 18px; }
.soft p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.soft .link { color: var(--accent); font-weight: 600; font-size: 14px; }

.backlink { padding: 0 0 40px; }

/* ---------- footer */
.foot { background: var(--navy); color: rgba(255, 255, 255, .75); margin-top: 40px; font-size: 14px; }
.foot-in { padding: 28px 0; display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: #fff; }

/* ---------- admin bar */
.adminbar { background: #111; color: #fff; font-size: 13px; display: flex; gap: 14px; padding: 6px 16px; align-items: center; }
.adminbar a { color: #fff; text-decoration: none; }
.adminbar .draft { background: #b45309; padding: 1px 8px; border-radius: 4px; }

/* ---------- lightbox */
.lbx { position: fixed; inset: 0; background: rgba(8, 12, 22, .92); display: grid; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lbx img { max-width: min(1400px, 100%); max-height: 86vh; border-radius: 8px; }
.lbx p { color: #ddd; text-align: center; margin: 12px 0 0; }

/* ---------- responsive */
@media (max-width: 900px) {
  .hero.has-img .hero-in { grid-template-columns: 1fr; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blk { padding: 40px 0; }
  .hero { padding: 48px 0 40px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .dl { flex-direction: column; padding: 22px; }
  .dl-ic { width: 72px; height: 72px; }
  .top-in { padding: 8px 0; }
  .brand small { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
}
