/* ==========================================================================
   ΘΕΜΑ «DevFolio» (γύρος 81) — σκούρο προσωπικό site / portfolio
   Χρώματα από Εμφάνιση → Προσαρμογή (theme.json → colors): --df-accent, --df-bg, --df-surface, --df-text
   ========================================================================== */
:root {
    --df-accent: #2f8cff;
    --df-bg: #0a1224;
    --df-surface: #111b31;
    --df-text: #e8eef8;
    --df-muted: #9fb0c8;
    --df-line: rgba(255, 255, 255, .08);
    --df-font: "Montserrat", "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
.df { margin: 0; background: var(--df-bg); color: var(--df-text); font-family: var(--df-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.df a { color: inherit; }
.df img { max-width: 100%; }
.df-wrap { width: min(1280px, 100% - 32px); margin: 0 auto; }
.df-narrow { width: min(820px, 100% - 32px); }
.df-main { min-height: 50vh; }

/* ---------- Κεφαλίδα ---------- */
.df-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--df-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--df-line); }
.df-has-hero .df-header { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 0; }
html:has(.nx-adminbar) .df-header { top: 38px; }   /* μπάρα διαχειριστή του CMS */
.df-header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; padding: 14px 0; }
.df-has-hero .df-header-in { min-height: 118px; }
.df-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; min-width: 0; }
.df-logo { width: auto; height: 46px; max-width: 120px; object-fit: contain; }
.df-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.df-name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.df-tagline { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--df-muted); }
.df-nav { display: flex; align-items: center; gap: 28px; }
.df-menu { list-style: none; display: flex; align-items: center; gap: 44px; margin: 0; padding: 0; }
.df-menu .menu-item { position: relative; }
.df-menu > .menu-item > a { display: inline-block; padding: 10px 0; font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; color: #fff; position: relative; }
.df-menu > .menu-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--df-accent); transform: scaleX(0); transition: transform .2s ease; }
.df-menu > .menu-item > a:hover::after, .df-menu > .menu-item > a:focus-visible::after, .df-menu > .menu-item > a.active::after { transform: scaleX(1); }
.df-menu > .menu-item > a.active { color: var(--df-accent); }
.df-menu .sub-menu { list-style: none; position: absolute; top: 100%; left: -16px; min-width: 210px; margin: 0; padding: 8px; background: var(--df-surface); border: 1px solid var(--df-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.df-menu .has-sub:hover > .sub-menu, .df-menu .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.df-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--df-text); }
.df-menu .sub-menu a:hover, .df-menu .sub-menu a.active { background: rgba(255, 255, 255, .06); color: var(--df-accent); }
.df-lang { display: flex; gap: 4px; }
.df-lang a { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-decoration: none; color: var(--df-muted); padding: 4px 7px; border-radius: 6px; border: 1px solid transparent; }
.df-lang a.active, .df-lang a:hover { color: #fff; border-color: var(--df-line); }
.df-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.df-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--df-line); color: #fff; font-size: 18px; cursor: pointer; }

/* ---------- Εισαγωγή (hero) ---------- */
.df-hero { position: relative; min-height: min(100vh, 1000px); display: flex; align-items: center; overflow: hidden; background: var(--df-bg); }
.df-hero-img { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; object-position: center; }
.df-hero-shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, var(--df-bg) 0%, var(--df-bg) 38%, color-mix(in srgb, var(--df-bg) 55%, transparent) 55%, transparent 75%),
    linear-gradient(0deg, var(--df-bg) 0%, transparent 22%),
    radial-gradient(120% 80% at 20% 40%, rgba(47, 140, 255, .07), transparent 60%); }
.df-hero-in { position: relative; z-index: 1; padding: 150px 0 90px; }
.df-hero-copy { max-width: 640px; }
.df-kicker { margin: 0 0 6px; font-size: 20px; font-weight: 500; letter-spacing: 8px; text-transform: uppercase; color: #aab6cc; }
.df-kicker-sm { font-size: 13px; letter-spacing: 5px; color: var(--df-accent); }
.df-hero-name { margin: 0; font-size: clamp(38px, 8vw, 112px); font-weight: 900; line-height: 1.02; letter-spacing: -2px; color: #fff; }
.df-hero-name span { color: var(--df-accent); }
.df-hero-title { margin: 12px 0 0; font-size: clamp(30px, 4vw, 54px); font-weight: 400; line-height: 1.15; color: var(--df-text); }
.df-hero-text { margin: 26px 0 0; max-width: 520px; font-size: 19px; line-height: 1.6; color: #b7c3d7; }
.df-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 26px 42px; margin: 44px 0 0; padding: 0; }
.df-skills li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 96px; font-size: 13px; line-height: 1.45; color: #d6deea; }
.df-skills li i { font-size: 30px; color: #fff; margin-bottom: 12px; }
.df-skills li span:first-of-type { font-weight: 500; }
.df-cta { display: inline-flex; align-items: center; gap: 20px; margin-top: 56px; padding: 18px 30px; border: 2px solid var(--df-accent); border-radius: 14px; font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; color: #fff; transition: background .2s, box-shadow .2s; }
.df-cta i { color: var(--df-accent); font-size: 18px; transition: transform .2s, color .2s; }
.df-cta:hover, .df-cta:focus-visible { background: var(--df-accent); box-shadow: 0 10px 30px rgba(47, 140, 255, .3); }
.df-cta:hover i, .df-cta:focus-visible i { color: #fff; transform: translateX(4px); }

/* ---------- Ενότητες / κάρτες ---------- */
.df-section { padding: 70px 0; }
.df-section-alt { background: rgba(255, 255, 255, .02); border-top: 1px solid var(--df-line); }
.df-page-top { padding-top: 56px; }
.df-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.df-section-title { margin: 0 0 26px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.5px; color: #fff; }
.df-section-head .df-section-title { margin: 0; }
.df-section-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--df-accent); }
.df-link { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--df-accent); }
.df-link i { margin-left: 6px; }
.df-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.df-card { display: flex; flex-direction: column; background: var(--df-surface); border: 1px solid var(--df-line); border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.df-card:hover { transform: translateY(-4px); border-color: rgba(47, 140, 255, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.df-card-img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #16223d, #0d1629); overflow: hidden; }
.df-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.df-card:hover .df-card-img img { transform: scale(1.04); }
.df-card-img.is-empty { display: flex; align-items: center; justify-content: center; font-size: 34px; color: rgba(47, 140, 255, .55); }
.df-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.df-card h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.df-card h3 a { text-decoration: none; color: #fff; }
.df-card h3 a:hover { color: var(--df-accent); }
.df-card p { margin: 0; color: var(--df-muted); font-size: 15px; }
.df-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--df-muted); }
.df-more { font-weight: 700; text-decoration: none; color: var(--df-accent); white-space: nowrap; }
.df-chip { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-decoration: none; color: var(--df-accent); background: rgba(47, 140, 255, .12); }
.df-empty { color: var(--df-muted); }
.df-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 34px; color: var(--df-muted); font-size: 14px; }
.df-pager a { padding: 9px 16px; border: 1px solid var(--df-line); border-radius: 10px; text-decoration: none; color: #fff; }
.df-pager a:hover { border-color: var(--df-accent); color: var(--df-accent); }

/* ---------- Άρθρο / σελίδα ---------- */
.df-article { padding-bottom: 60px; }
.df-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--df-muted); margin-bottom: 14px; }
.df-crumbs a { text-decoration: none; color: var(--df-accent); }
.df-article-title { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; color: #fff; }
.df-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--df-muted); margin-bottom: 22px; }
.df-lead { font-size: 20px; line-height: 1.6; color: #c4cfdf; margin: 0 0 24px; }
.df-figure { margin: 0 0 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--df-line); }
.df-figure img { display: block; width: 100%; }
.df-body { font-size: 18px; line-height: 1.8; color: #d9e1ee; overflow-wrap: anywhere; }
.df-body h2, .df-body h3 { color: #fff; line-height: 1.3; margin: 1.6em 0 .6em; }
.df-body a { color: var(--df-accent); }
.df-body img { height: auto; border-radius: 12px; }
.df-body blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--df-accent); background: rgba(255, 255, 255, .03); border-radius: 0 10px 10px 0; }
.df-body pre, .df-body code { font-family: Consolas, "Courier New", monospace; background: #0d1629; border-radius: 8px; }
.df-body pre { padding: 16px; overflow-x: auto; border: 1px solid var(--df-line); }
.df-body code { padding: 2px 6px; }
.df-body table { width: 100%; border-collapse: collapse; }
.df-body td, .df-body th { border: 1px solid var(--df-line); padding: 8px 10px; }
.df-preview { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: rgba(251, 191, 36, .12); color: #fcd34d; font-size: 14px; }
.df-404 { text-align: center; }
.df-404-code { font-size: clamp(90px, 16vw, 170px); font-weight: 900; line-height: 1; color: var(--df-accent); letter-spacing: -4px; }
.df-404 .df-section-title::after { margin-left: auto; margin-right: auto; }
.df-404 .df-cta { margin-top: 26px; }

/* ετικέτες / σχόλια / widgets (κοινά κομμάτια του CMS) πάνω σε σκούρο φόντο */
.df .nx-post-tags a, .df .nx-tag { color: var(--df-accent); }
.df .nx-comments, .df .nx-comment { color: var(--df-text); }
.df .nx-comment-form input, .df .nx-comment-form textarea, .df .nx-search input { background: #0d1629; border: 1px solid var(--df-line); color: #fff; border-radius: 10px; }
.df .nx-comment-form button, .df .nx-search button { background: var(--df-accent); color: #fff; border: 0; border-radius: 10px; }

/* ---------- Υποσέλιδο ---------- */
.df-footer { border-top: 1px solid var(--df-line); background: #070d1b; color: var(--df-muted); }
.df-footer-widgets { padding: 40px 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.df-footer .nx-widget-title { color: #fff; font-size: 15px; }
.df-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 30px 0; }
.df-brand-foot { margin-right: 0; }
.df-brand-foot .df-logo { height: 34px; }
.df-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.df-footer-menu a { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }
.df-footer-menu a:hover { color: var(--df-accent); }
.df-footer .nx-social { display: flex; gap: 10px; }
.df-footer .nx-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--df-line); color: #fff; text-decoration: none; }
.df-footer .nx-social a:hover { background: var(--df-accent); border-color: var(--df-accent); }
.df-footer .nx-footer-text { margin: 0; font-size: 13px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .df-menu { gap: 26px; }
    .df-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .df-hero-img { width: 70%; opacity: .75; }
}

/* ---------- Κινητό ---------- */
@media (max-width: 860px) {
    .df-burger { display: inline-flex; }
    .df-nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; background: var(--df-surface); border: 1px solid var(--df-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
    .df-header-in { position: relative; flex-wrap: nowrap; }
    .df-nav-toggle:checked ~ .df-nav { display: flex; }
    .df-nav-toggle:checked + .df-burger { border-color: var(--df-accent); color: var(--df-accent); }
    .df-nav-toggle:focus-visible + .df-burger { outline: 2px solid var(--df-accent); outline-offset: 2px; }
    .df-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .df-menu > .menu-item > a { display: block; padding: 12px 10px; }
    .df-menu > .menu-item > a::after { left: 10px; right: auto; width: 26px; bottom: 6px; }
    .df-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; min-width: 0; }
    .df-lang { padding: 6px 10px 2px; }
    .df-has-hero .df-header-in, .df-header-in { min-height: 72px; }
    .df-hero { min-height: 0; align-items: flex-end; }
    .df-hero-img { width: 100%; opacity: .45; }
    .df-hero-shade { background: linear-gradient(0deg, var(--df-bg) 8%, color-mix(in srgb, var(--df-bg) 75%, transparent) 55%, color-mix(in srgb, var(--df-bg) 55%, transparent) 100%); }
    .df-hero-in { padding: 120px 0 60px; }
    .df-kicker { font-size: 15px; letter-spacing: 6px; }
    .df-hero-text { font-size: 17px; }
    .df-hero-text br { display: none; }   /* στο κινητό το κείμενο ρέει ελεύθερα */
    .df-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-top: 34px; }
    .df-cta { margin-top: 38px; padding: 16px 22px; gap: 14px; letter-spacing: 2px; }
    .df-section { padding: 48px 0; }
    .df-page-top { padding-top: 34px; }
}
@media (max-width: 560px) {
    .df-cards { grid-template-columns: 1fr; }
    .df-logo { height: 38px; }
    .df-name { font-size: 16px; }
    .df-tagline { letter-spacing: 2px; font-size: 10px; }
    .df-hero-name { letter-spacing: -1px; font-size: clamp(38px, 12.5vw, 64px); }
    .df-body { font-size: 17px; }
    .df-footer-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .df-card, .df-card-img img, .df-cta, .df-cta i, .df-menu a::after { transition: none; }
}
