/*
Theme Name: Neoplastic Support Portal
Theme URI: https://support.neoplasticdisease.com.gr
Description: Σύστημα αιτημάτων υποστήριξης για το ΠΜΣ Νεοπλασματική Νόσος – ΕΚΠΑ
Version: 1.0
Author: GuardLayer
Text Domain: nps
*/

/* ═══════════════════════════
   TOKENS — ίδια με κυρίως site
   ═══════════════════════════ */
:root {
  --navy:      #162744;
  --navy2:     #1e3356;
  --navy3:     #253e66;
  --gold:      #c9a84c;
  --gold2:     #e2c06a;
  --gold3:     #f5e0a0;
  --gold-dim:  rgba(201,168,76,0.15);
  --gold-line: rgba(201,168,76,0.30);
  --blue:      #1e3f7a;
  --blue2:     #2a5298;
  --white:     #ffffff;
  --dim:       rgba(255,255,255,0.65);
  --dim2:      rgba(255,255,255,0.38);
  --glass:     rgba(255,255,255,0.07);
  --gborder:   rgba(255,255,255,0.13);
  --r:         12px;
  --r2:        18px;
}

/* ═══════════════════════════
   RESET + BASE
   ═══════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--gold3); }
img { display: block; max-width: 100%; }

/* ═══════════════════════════
   BACKGROUND (ίδιο με site)
   ═══════════════════════════ */
.nps-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(150deg, #1d3354 0%, #253e66 35%, #1a3050 65%, #162540 100%);
}
.nps-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(201,168,76,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(42,82,152,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 50% 45%, rgba(255,255,255,0.02) 0%, transparent 50%);
  animation: bgShift 10s ease-in-out infinite alternate;
}
@keyframes bgShift { 0% { opacity:.88; } 100% { opacity:1; } }

.nps-wrap { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ═══════════════════════════
   HEADER / NAV
   ═══════════════════════════ */
.nps-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,39,68,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gold-line);
}
.nps-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Logo */
.nps-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nps-logo-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #b8892a);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
}
.nps-logo-text { line-height: 1.2; }
.nps-logo-title { font-size: 13px; font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.nps-logo-sub   { font-size: 10px; color: var(--dim2); letter-spacing: .05em; }

/* Nav links */
.nps-nav { display: flex; align-items: center; gap: 4px; }
.nps-nav a {
  color: var(--dim);
  font-size: 13px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.nps-nav a:hover {
  color: var(--white);
  background: var(--glass);
  border-color: var(--gborder);
}
.nps-nav a.current {
  color: var(--gold2);
  background: var(--gold-dim);
  border-color: var(--gold-line);
}
.nps-nav .nps-btn-new {
  background: linear-gradient(135deg, var(--gold), #b8892a);
  color: var(--navy) !important;
  font-weight: 700; border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(201,168,76,.30);
}
.nps-nav .nps-btn-new:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,.45);
}

/* User pill */
.nps-user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--gborder);
  border-radius: 999px;
  background: var(--glass);
  font-size: 12px; font-weight: 500; color: var(--dim);
}
.nps-avatar {
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #b8892a);
  color: var(--navy); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.nps-burger {
  display: none;
  background: var(--glass);
  border: 1px solid var(--gborder);
  border-radius: 8px; padding: 8px; cursor: pointer; color: var(--white);
}
.nps-burger svg { display: block; width: 20px; height: 20px; }

/* ═══════════════════════════
   BREADCRUMB
   ═══════════════════════════ */
.nps-bread {
  background: linear-gradient(180deg, rgba(201,168,76,.07), transparent);
  border-bottom: 1px solid rgba(201,168,76,.14);
  padding: 11px 28px;
}
.nps-bread-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--dim2);
}
.nps-bread-inner a { color: var(--gold2); font-size: 12.5px; }
.nps-bread-inner a:hover { color: var(--gold3); }
.nps-bread-sep { opacity: .4; }
.nps-bread-cur { color: var(--white); font-weight: 500; }

/* ═══════════════════════════
   MAIN CONTENT
   ═══════════════════════════ */
.nps-main {
  flex: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 36px 28px 72px;
}
.nps-page-title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold3) 55%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0; animation: fadeUp .6s .1s ease forwards;
}
.nps-page-sub {
  font-size: 14px; color: var(--dim); margin-bottom: 28px;
  opacity: 0; animation: fadeUp .6s .2s ease forwards;
}
.nps-content {
  opacity: 0; animation: fadeUp .7s .3s ease forwards;
}

/* ═══════════════════════════
   GLASS CARD (shared with site)
   ═══════════════════════════ */
.nps-card {
  background: var(--glass);
  border: 1px solid var(--gborder);
  border-radius: var(--r2);
  backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: all .3s;
}
.nps-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
}
.nps-card:hover {
  background: rgba(201,168,76,.07);
  border-color: var(--gold-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 52px rgba(0,0,0,.3);
}

/* ═══════════════════════════
   SUPPORT FORMS & TABLES
   ═══════════════════════════ */
.nps-form { display: grid; gap: 18px; }
.nps-field { display: grid; gap: 7px; }
.nps-field label {
  font-size: 12.5px; font-weight: 600; color: var(--dim2);
  letter-spacing: .04em; text-transform: uppercase;
}
.nps-field input[type=text],
.nps-field textarea,
.nps-reply-form textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--gborder);
  border-radius: var(--r);
  background: rgba(255,255,255,.05);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.nps-field input[type=text]:focus,
.nps-field textarea:focus,
.nps-reply-form textarea:focus {
  border-color: var(--gold-line);
  background: rgba(201,168,76,.06);
}
.nps-field input[type=text]::placeholder,
.nps-field textarea::placeholder,
.nps-reply-form textarea::placeholder { color: rgba(255,255,255,.22); }
.nps-field input[type=file] { font-size: 13px; color: var(--dim); }
.nps-field small { font-size: 12px; color: var(--dim2); }

/* Buttons */
.nps-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--r);
  border: none;
  background: linear-gradient(135deg, var(--gold), #b8892a);
  color: var(--navy); font-family: "Outfit", sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(201,168,76,.28);
  transition: transform .12s, filter .15s, box-shadow .15s;
}
.nps-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: var(--navy); box-shadow: 0 10px 30px rgba(201,168,76,.42); }
.nps-btn-ghost {
  background: var(--glass);
  border: 1px solid var(--gborder);
  color: var(--dim) !important;
  box-shadow: none;
}
.nps-btn-ghost:hover { background: rgba(201,168,76,.10); border-color: var(--gold-line); color: var(--white) !important; filter: none; }

/* Alerts */
.nps-success {
  background: rgba(47,227,155,.10);
  border: 1px solid rgba(47,227,155,.25);
  color: #a7f3d0;
  padding: 13px 16px; border-radius: var(--r); margin-bottom: 20px;
}
.nps-error {
  background: rgba(255,80,80,.10);
  border: 1px solid rgba(255,80,80,.22);
  color: #fca5a5;
  padding: 13px 16px; border-radius: var(--r); margin-bottom: 20px;
}

/* Status pills */
.nps-status {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.nps-open       { background: var(--gold-dim); color: var(--gold2); border: 1px solid var(--gold-line); }
.nps-inprogress { background: rgba(42,82,152,.25); color: #93c5fd; border: 1px solid rgba(42,82,152,.40); }
.nps-closed     { background: var(--glass); color: var(--dim2); border: 1px solid var(--gborder); }
.nps-new-badge  { background: var(--gold-dim); color: var(--gold2); border: 1px solid var(--gold-line); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }

/* Table */
.nps-table-wrap { overflow-x: auto; border-radius: var(--r2); border: 1px solid var(--gborder); }
.nps-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nps-table th {
  text-align: left; padding: 11px 14px;
  background: rgba(201,168,76,.06);
  border-bottom: 1px solid var(--gold-line);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold2);
}
.nps-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; color: var(--white); }
.nps-table tr:last-child td { border-bottom: none; }
.nps-table tr:hover td { background: rgba(201,168,76,.04); }
.nps-link { color: var(--gold2); font-weight: 600; font-size: 13px; }
.nps-link:hover { color: var(--gold3); }

/* List header */
.nps-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.nps-list-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--gold2); }
.nps-empty { color: var(--dim); padding: 28px 0; }

/* Ticket detail */
.nps-ticket-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1px solid var(--gold-line);
}
.nps-ticket-header h2 { margin: 0; flex: 1; font-size: 18px; color: var(--white); }
.nps-ticket-header small { font-size: 12px; color: var(--dim2); }

/* Messages */
.nps-message { padding: 15px 18px; border-radius: var(--r2); margin-bottom: 12px; }
.nps-message--user {
  background: var(--glass);
  border: 1px solid var(--gborder);
}
.nps-message--admin {
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.22);
}
.nps-message-meta {
  font-size: 11px; font-weight: 700; color: var(--dim2);
  margin-bottom: 8px; display: flex; gap: 14px; align-items: center;
  letter-spacing: .04em; text-transform: uppercase;
}
.nps-message--admin .nps-message-meta { color: var(--gold2); }
.nps-message-body { font-size: 15px; line-height: 1.65; color: var(--white); }
.nps-attachment { margin-top: 10px; font-size: 13px; }
.nps-attachment a { color: var(--gold2); }

/* Reply form */
.nps-reply-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--gold-line); display: grid; gap: 12px; }
.nps-reply-form textarea { min-height: 100px; }
.nps-closed-note { color: var(--dim2); font-style: italic; margin-top: 18px; font-size: 13px; }

/* Back link */
.nps-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold2); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
  transition: color .12s, transform .12s;
}
.nps-back:hover { color: var(--gold3); transform: translateX(-3px); }

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.nps-footer {
  border-top: 1px solid var(--gold-line);
  background: rgba(201,168,76,.03);
  padding: 22px 28px;
}
.nps-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim2);
}
.nps-footer-inner a { color: var(--dim2); font-size: 12px; }
.nps-footer-inner a:hover { color: var(--gold2); }
.nps-footer-logo { display: flex; align-items: center; gap: 8px; }
.nps-footer-logo span { font-size: 12px; font-weight: 600; color: var(--gold2); }

/* ═══════════════════════════
   ANIMATIONS
   ═══════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 680px) {
  .nps-header-inner { padding: 0 18px; }
  .nps-main { padding: 24px 18px 48px; }
  .nps-burger { display: flex; }
  .nps-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(22,39,68,.97);
    border-bottom: 1px solid var(--gold-line);
    flex-direction: column; align-items: stretch;
    padding: 12px 20px; gap: 4px;
  }
  .nps-nav.is-open { display: flex; }
  .nps-nav a { border-radius: var(--r); border-color: var(--gborder); }
  .nps-user-pill { display: none; }
}
