/*
Theme Name: Kefree App
Theme URI: https://kefree.com
Author: Kefree
Description: Ultra minimal theme for Kefree MVP
Version: 1.0
*/

/* ===== Kefree App Layout ===== */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fafafa;
  color: #111; /* IMPORTANTE: texto negro */
}

/* Contenedor general */
.kefree-feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem;
}

/* Lista */
.items-list {
  display: flex;
  flex-direction: column;
}

/* Card tipo app */
.item-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
}

/* Imagen */
.item-thumb {
  flex: 0 0 88px;
  height: 88px;
  background: #ddd;
  border-radius: 6px;
}

/* Info */
.item-info {
  flex: 1;
}

.item-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #111;
}

.item-meta {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 0.25rem;
}

/* Estado */
.item-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.item-status.available {
  color: #2e7d32;
}

.item-status.taken {
  color: #999;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}

.pagination button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* -----------------------------
   Kefree — Item states (FEED)
----------------------------- */

.item-row.is-taken {
  opacity: 0.55;
  filter: grayscale(100%);
}

.item-row.is-taken .item-status {
  color: #a00;
  font-weight: 600;
}

.item-row.is-available .item-status {
  color: #2e7d32;
}

/* -----------------------------
   Kefree — Clickable feed items (FIX)
----------------------------- */

.item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.item-link * {
  pointer-events: none;
}


/* -----------------------------
   Kefree — CTA buttons ACTIVE
----------------------------- */

.item-detail__cta .btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #2e7d32;
  background: #4caf50; /* verde */
  color: #111;         /* texto negro */
  cursor: pointer;
}

.item-detail__cta .btn:hover {
  background: #43a047;
}

.item-detail__cta .btn[disabled] {
  background: #e0e0e0;
  border-color: #ccc;
  color: #888;
  opacity: 1;
  cursor: not-allowed;
}



