/*
 * Cleopatra 2.0 — cleo-social.css v2.0.7
 * Estilos del plugin: composer, feed, nav, botón FOTO
 */

/* ═══════════════════════════════════════
   VARIABLES
═══════════════════════════════════════ */
.cleo-app {
  --crema:       #F5F0E8;
  --crema-dark:  #EDE7D9;
  --crema-mid:   #E3D9C8;
  --choco:       #4A2C1A;
  --choco-hover: #3A2010;
  --choco-light: rgba(74,44,26,0.09);
  --teal-dark:   #0D3D3A;
  --teal-mid:    #1A6B62;
  --teal-light:  #2E9E8F;
  --teal-bright: #4DBFB0;
  --text-muted:  #7A5C40;
  --nav-h:       68px;

  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--choco);
  background: var(--crema);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 12px);
  position: relative;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.cleo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--crema);
  border-bottom: 1px solid var(--crema-mid);
  padding: 0 16px;
}

.cleo-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.cleo-logo {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--choco);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cleo-logo-eye {
  font-size: 18px;
}

.cleo-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cleo-header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--choco);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.cleo-header-icon-btn:hover { color: var(--teal-mid); }

.cleo-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--crema-mid);
}
.cleo-avatar-mini--init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  background: var(--choco);
  color: var(--crema);
}

.cleo-header-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 0 10px;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════
   COMPOSER / PUBLISH BOX
═══════════════════════════════════════ */
.cleo-publish-wrap {
  padding: 14px 16px 0;
}

.cleo-publish-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(74,44,26,.08);
  overflow: hidden;
}

.cleo-publish-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 8px;
}

.cleo-pub-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--crema-mid);
}
.cleo-pub-avatar--init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  background: var(--choco);
  color: var(--crema);
}

.cleo-composer__textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--choco);
  resize: none;
  outline: none;
  line-height: 1.55;
  min-height: 48px;
  padding: 0;
}
.cleo-composer__textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Barra de acciones ── */
.cleo-publish-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--crema-mid);
}

/* Botón FOTO — estilo Instagram */
.cleo-pub-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--crema-mid);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cleo-pub-attach-btn:hover {
  background: var(--crema-mid);
  color: var(--choco);
  border-color: #C8BAA0;
}
.cleo-pub-attach-btn svg {
  flex-shrink: 0;
}

/* Contador de caracteres */
.cleo-composer__count {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-left: auto;
  transition: color .2s;
}
.cleo-composer__count.is-near { color: #E67E22; }
.cleo-composer__count.is-over { color: #C0392B; }

/* Botón PUBLICAR */
.cleo-btn--primary {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--crema);
  background: var(--choco);
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cleo-btn--primary:hover:not(:disabled) {
  background: var(--choco-hover);
}
.cleo-btn--primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════
   FEED
═══════════════════════════════════════ */
.cleo-feed-wrap {
  padding: 20px 0 0;
}

.cleo-feed-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--text-muted);
  text-align: center;
  padding: 0 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cleo-feed-label::before,
.cleo-feed-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--crema-mid);
}

.cleo-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Post ── */
.cleo-post {
  background: #fff;
  margin: 0 16px 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(74,44,26,.07);
  position: relative;
}

.cleo-post__strip {
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-bright));
}

.cleo-post__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 6px;
}

.cleo-post__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--choco);
}

.cleo-post__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cleo-post__author {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--choco);
  text-decoration: none;
}
.cleo-post__author:hover { color: var(--teal-mid); }

.cleo-post__time {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
}

.cleo-post__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--choco);
  padding: 4px 14px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.cleo-post__image-wrap {
  padding: 0 0 12px;
}
.cleo-post__image {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* Estado vacío */
.cleo-empty {
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
  color: var(--text-muted);
}
.cleo-empty-eye {
  font-size: 32px;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════ */
.cleo-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-h);
  background: var(--crema);
  border-top: 1px solid var(--crema-mid);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cleo-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  padding: 8px 0;
  color: var(--text-muted);
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.cleo-nav-item:hover,
.cleo-nav-item.active {
  color: var(--choco);
}

.cleo-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cleo-nav-label {
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  letter-spacing: .12em;
}

/* Botón + central */
.cleo-nav-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--choco);
  border: none;
  color: var(--crema);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74,44,26,.35);
  transition: background .2s, transform .18s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.cleo-nav-add:hover {
  background: var(--choco-hover);
  transform: scale(1.06);
}
.cleo-nav-add:active {
  transform: scale(.95);
}

/* ═══════════════════════════════════════
   SKELETON LOADER
═══════════════════════════════════════ */
.cleo-skel {
  background: linear-gradient(90deg, #EDE7D9 25%, #E3D9C8 50%, #EDE7D9 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}
@keyframes skelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}