/* ============================================================
   Co-Invest — ci.css
   /public_html/co-invest/assets/css/ci.css
   Font principal: Inter (sans-serif, profesional)
   Palette: --navy #182333, --gold #ccac66, --cream #faf7f2
   ============================================================ */

/* ── Font override pentru Co-Invest ────────────────────────── */
body {
  font-family: 'Inter', 'Montserrat', sans-serif;
}

/* ── Variabile suplimentare ─────────────────────────────────── */
:root {
  --ci-radius:    10px;
  --ci-radius-sm: 6px;
  --ci-shadow:    0 2px 16px rgba(24,35,51,0.08);
  --ci-shadow-md: 0 4px 28px rgba(24,35,51,0.12);
  --ci-border:    #dbd6cc;
  --ci-green:     #2e7d5e;
  --ci-amber:     #b8860b;
  --ci-red:       #c0392b;
  --ci-darkblue:  #00008b;
}

/* ════════════════════════════════════════════════════════════
   SUB-NAVBAR
   ════════════════════════════════════════════════════════════ */
.ci-subnav {
  background: #fff;
  border-bottom: 1px solid var(--ci-border);
  box-shadow: 0 1px 0 rgba(204,172,102,0.15);
  position: sticky;
  top: 73px;           /* sub navbar-ul principal sticky */
  z-index: 990;
}

.ci-subnav-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  height: 44px;
}

/* Label fix stânga */
.ci-subnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 4px;
}
.ci-subnav-brand:hover { color: #b89a55; }

/* Separator vertical după label */
.ci-subnav-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--ci-border);
  flex-shrink: 0;
}

/* Zona scrollabilă */
.ci-subnav-scroll {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  flex: 1;
  min-width: 0;
}
.ci-subnav-scroll::-webkit-scrollbar { display: none; }

/* Linkuri din sub-navbar */
.ci-subnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(24,35,51,0.55);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.ci-subnav-link i { font-size: 14px; }
.ci-subnav-link:hover {
  color: var(--navy);
  border-bottom-color: rgba(204,172,102,0.4);
}
.ci-subnav-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* CTA înregistrare (neautentificat) */
.ci-subnav-link.ci-subnav-cta {
  color: var(--gold);
  font-weight: 600;
}
.ci-subnav-link.ci-subnav-cta:hover { color: #b89a55; }

/* Badge mesaje necitite */
.ci-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  line-height: 1;
}

/* Gradient fade dreapta */
.ci-subnav-fade {
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, transparent, #fff 70%);
  pointer-events: none;
  transition: opacity 0.3s;
  /* Pe desktop ascundem dacă nu e nevoie */
}

/* User info desktop */
.ci-subnav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--ci-border);
  flex-shrink: 0;
}
.ci-subnav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ci-border);
}
.ci-subnav-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-verified-icon {
  color: var(--gold);
  font-size: 16px;
}
.ci-subnav-logout {
  color: rgba(24,35,51,0.35);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
  margin-left: 2px;
}
.ci-subnav-logout:hover { color: var(--ci-red); }

/* ── Mobil: fade și user info ───────────────────────────────── */
@media (max-width: 991px) {
  .ci-subnav-inner { padding: 0 12px; }
  .ci-subnav-link  { padding: 0 10px; font-size: 12px; }
  .ci-subnav-brand { font-size: 10px; letter-spacing: 0.14em; }
  /* Fade vizibil pe mobil mereu dacă există conținut */
  .ci-subnav-fade  { width: 48px; }
}

/* ════════════════════════════════════════════════════════════
   STATUS DOTS (online / offline)
   ════════════════════════════════════════════════════════════ */
.ci-online-dot,
.ci-offline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ci-online-dot  { background: #2e7d5e; box-shadow: 0 0 0 2px rgba(46,125,94,0.2); }
.ci-offline-dot { background: #bab8b8; }

/* ════════════════════════════════════════════════════════════
   BADGES (availability, verified)
   ════════════════════════════════════════════════════════════ */
.ci-badge-green,
.ci-badge-amber,
.ci-badge-gray,
.ci-badge-gold,
.ci-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.ci-badge-green    { background: rgba(46,125,94,0.1);  color: #1e5c42; }
.ci-badge-amber    { background: rgba(184,134,11,0.1); color: #7a5800; }
.ci-badge-gray     { background: rgba(186,184,184,0.2);color: #636567; }
.ci-badge-gold     { background: rgba(204,172,102,0.15);color: #8a6d2a; }
.ci-badge-verified { background: rgba(204,172,102,0.15);color: #8a6d2a; }

/* ════════════════════════════════════════════════════════════
   CARDURI PARTENERI (pagina /parteneri.php)
   ════════════════════════════════════════════════════════════ */
.ci-partner-card {
  background: #fff;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius);
  padding: 24px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.ci-partner-card:hover {
  box-shadow: var(--ci-shadow-md);
  border-color: rgba(204,172,102,0.4);
}

.ci-partner-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-partner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ci-border);
  flex-shrink: 0;
}
.ci-partner-info { flex: 1; min-width: 0; }
.ci-partner-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ci-darkblue);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-partner-country {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ci-partner-budget {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  font-family: ''Inter', 'Montserrat', sans-serif;
}
.ci-partner-card p {
	font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ci-partner-budget span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

.ci-partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ci-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--light-bg);
  color: var(--navy);
  border: 1px solid var(--ci-border);
}

.ci-partner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ci-border);
}

/* Card demo — ușor mai opac */
.ci-partner-card.is-demo { opacity: unset; }

/* ════════════════════════════════════════════════════════════
   BUTOANE
   ════════════════════════════════════════════════════════════ */
.ci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  border-radius: var(--ci-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
}
.ci-btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.ci-btn-primary:hover { background: #243450; color: #fff; }

.ci-btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.ci-btn-gold:hover { background: #b89a55; color: var(--navy); }

.ci-btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--ci-border);
}
.ci-btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.ci-btn-sm { padding: 7px 12px; font-size: 12px; }
.ci-btn-full { width: 100%; }

/* ════════════════════════════════════════════════════════════
   FORMULARE
   ════════════════════════════════════════════════════════════ */
.ci-form-group { margin-bottom: 40px; }
.ci-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.ci-input,
.ci-select,
.ci-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ci-border);
  border-radius: var(--ci-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.ci-input:focus,
.ci-select:focus,
.ci-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(204,172,102,0.12);
}
.ci-textarea { resize: vertical; min-height: 100px; }
.ci-input-error { border-color: var(--ci-red) !important; }
.ci-field-error {
  font-size: 12px;
  color: var(--ci-red);
  margin-top: 4px;
}
.contul_meu {
	font-size: 14px;
	margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════════
   ALERTE / NOTICE
   ════════════════════════════════════════════════════════════ */
.ci-alert {
  padding: 14px 18px;
  border-radius: var(--ci-radius-sm);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.ci-alert-success { background: rgba(46,125,94,0.08);  color: #1e5c42; border: 1px solid rgba(46,125,94,0.2); }
.ci-alert-error   { background: rgba(192,57,43,0.08);  color: #7a1f15; border: 1px solid rgba(192,57,43,0.2); }
.ci-alert-info    { background: rgba(204,172,102,0.08); color: #6b5320; border: 1px solid rgba(204,172,102,0.25); }
.ci-alert-warning { background: rgba(184,134,11,0.08); color: #7a5800; border: 1px solid rgba(184,134,11,0.2); }

/* ════════════════════════════════════════════════════════════
   CHAT / MESAGERIE
   ════════════════════════════════════════════════════════════ */
.ci-chat-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 180px);
  min-height: 500px;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius);
  overflow: hidden;
  background: #fff;
}

/* Sidebar conversații */
.ci-chat-sidebar {
  border-right: 1px solid var(--ci-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ci-chat-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ci-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.ci-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(232,227,216,0.5);
  transition: background 0.15s;
  text-decoration: none;
}
.ci-conv-item:hover  { background: var(--light-bg); }
.ci-conv-item.active { background: rgba(204,172,102,0.08); border-left: 2px solid var(--gold); }
.ci-conv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ci-conv-info { flex: 1; min-width: 0; }
.ci-conv-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-conv-preview {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.ci-conv-time { font-size: 11px; color: var(--gray); }

/* Zona de mesaje */
.ci-chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ci-chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ci-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ci-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bule mesaje */
.ci-msg {
  display: flex;
  gap: 10px;
  max-width: 70%;
}
.ci-msg.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ci-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-end;
}
.ci-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--light-bg);
  border: 1px solid var(--ci-border);
  word-break: break-word;
}
.ci-msg.own .ci-msg-bubble {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.ci-msg-time {
  font-size: 10px;
  color: var(--gray);
  margin-top: 4px;
  text-align: right;
}
.ci-msg.own .ci-msg-time { color: rgba(255,255,255,0.5); }

/* Input mesaj */
.ci-chat-input-wrap {
  padding: 16px 20px;
  border-top: 1px solid var(--ci-border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ci-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--ci-border);
  border-radius: var(--ci-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}
.ci-chat-input:focus { border-color: var(--gold); }

/* ── Chat mobil ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ci-chat-wrap { grid-template-columns: 1fr; }
  .ci-chat-sidebar { display: none; }
  .ci-chat-sidebar.show { display: flex; }
  .ci-msg { max-width: 88%; }
}

/* ════════════════════════════════════════════════════════════
   PAGINA PROFIL PUBLIC
   ════════════════════════════════════════════════════════════ */
.ci-profile-hero {
  background: #f8f8f8;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: var(--ci-shadow);
}
.ci-profile-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ci-border);
  flex-shrink: 0;
}
.ci-profile-details { flex: 1; }
.ci-profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ════════════════════════════════════════════════════════════
   UTILITARE
   ════════════════════════════════════════════════════════════ */
.ci-divider {
  height: 1px;
  background: var(--ci-border);
  margin: 28px 0;
}
.ci-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.ci-section-sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}
.ci-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.ci-page-wrap-narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Responsive general ─────────────────────────────────────── */
@media (max-width: 767px) {
  .ci-page-wrap        { padding: 24px 16px 60px; }
  .ci-page-wrap-narrow { padding: 32px 16px 60px; }
  .ci-profile-hero     { flex-direction: column; gap: 16px; }
  .ci-profile-avatar-lg{ width: 68px; height: 68px; }
}
