/* ============================================================
   frameroom.css — shared styles for all Frame Room pages
   go2.art/frameroom/frameroom.css
   ============================================================ */

:root {
  --fr-coral:     #ff7760;
  --brand-teal:   #1E566C;
}

/* ── Page wrapper ── */
.fr-page { background: #f7f5f2; padding: 28px 0 80px; }

/* ── Page header ── */
.fr-page-header {
  padding: 20px 0 14px;
  border-bottom: 1px solid #e0ddd9;
  margin-bottom: 0;
}
.fr-page-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; color: #222; }
.fr-page-header p  { font-size: 0.88rem; color: #666; margin: 0; }

/* ── Hero (gallery page) ── */
.fr-hero {
  text-align: center;
  padding: 24px 16px 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e0ddd9;
}
.fr-hero h1 { font-size: 28px; margin-bottom: 6px; letter-spacing: -0.5px; color: #222; }
.fr-hero p  { color: #666; font-size: 15px; margin: 0; }

/* ── Subnav ── */
.fr-subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0ddd9;
  margin-bottom: 0;
}
.fr-subnav a {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  background: white;
  transition: all 0.15s;
}
.fr-subnav a:hover  { border-color: var(--brand-teal); color: var(--brand-teal); }
.fr-subnav a.active { background: var(--brand-teal); color: white; border-color: var(--brand-teal); }

/* ── Filter row ── */
.fr-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.fr-filter-btn {
  width: auto !important;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 13px;
  background: white;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
  font-family: inherit;
  display: inline-block;
}
.fr-filter-btn:hover  { border-color: var(--brand-teal); color: var(--brand-teal); }
.fr-filter-btn.active { background: #222; color: white; border-color: #222; }

/* ── Gallery grid ── */
.fr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Gallery cards ── */
.fr-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e0ddd9;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.fr-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.fr-card-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #f7f5f2;
  cursor: zoom-in;
  overflow: hidden;
}
.fr-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: transform 0.3s;
}
.fr-card:hover .fr-card-img-wrap img { transform: scale(1.03); }
.fr-card-body    { padding: 12px 14px; }
.fr-card-name {
  font-size: 14px; font-weight: 600; color: #222;
  margin-bottom: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.fr-card-desc {
  font-size: 13px; color: #888; margin-bottom: 10px;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-height: 18px;
}
.fr-card-actions { display: flex; gap: 6px; }

/* ── Action buttons ── */
.fr-action-btn {
  width: auto !important;
  flex: 1;
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid #e0ddd9;
  background: #f7f5f2;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
}
.fr-action-btn:hover  { border-color: #bbb; background: #edeae6; color: #222; }
.fr-action-btn.heart  { border-color: rgba(255,119,96,0.35); color: #ff7760; background: rgba(255,119,96,0.06); }
.fr-action-btn.heart:hover { background: rgba(255,119,96,0.12); border-color: #ff7760; }
.fr-action-btn.heart.voted { background: rgba(255,119,96,0.14); border-color: #ff7760; font-weight: 600; }
.fr-action-btn.try    { border-color: rgba(30,86,108,0.3); color: var(--brand-teal); background: rgba(30,86,108,0.06); }
.fr-action-btn.try:hover { background: rgba(30,86,108,0.12); }

/* ── Strip gallery (homepage) ── */
.fr-gallery-strip-section {
  border-top: 1px solid #e0ddd9;
  padding: 36px 0;
  margin-top: 24px;
}
.fr-gallery-strip-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; color: #222; }
.fr-gallery-strip-sub   { color: #666; font-size: 0.84rem; margin-bottom: 20px; }
.fr-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.fr-strip-card {
  background: white;
  border: 1px solid #e0ddd9;
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.fr-strip-card:hover { border-color: rgba(30,86,108,0.3); }
.fr-strip-card-img {
  aspect-ratio: 1/1; overflow: hidden;
  position: relative; cursor: zoom-in;
}
.fr-strip-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fr-strip-card-name {
  padding: 8px 10px 2px;
  border-top: 1px solid #e0ddd9;
  font-size: 0.76rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222;
}
.fr-strip-card-actions {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 5px; padding: 0 7px 8px;
}
.fr-strip-card-actions button {
  width: auto !important;
  border: 1px solid #ddd;
  background: #f7f5f2;
  color: #666;
  border-radius: 6px; font-size: 0.64rem;
  font-family: inherit; padding: 5px 3px;
  text-align: center; cursor: pointer; margin: 0;
}
.fr-strip-card-actions button:hover { border-color: rgba(30,86,108,0.35); color: var(--brand-teal); }
.fr-heart-btn { border-color: rgba(255,119,96,0.3) !important; color: #ff7760 !important; background: rgba(255,119,96,0.06) !important; }
.fr-heart-btn:hover { background: rgba(255,119,96,0.12) !important; }
.fr-heart-btn.voted { background: rgba(255,119,96,0.14) !important; }
.fr-gallery-view-all {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand-teal); font-size: 0.83rem;
  text-decoration: none;
  border: 1px solid rgba(30,86,108,0.25);
  padding: 8px 20px; border-radius: 6px;
  transition: all 0.2s;
}
.fr-gallery-view-all:hover { background: rgba(30,86,108,0.06); border-color: var(--brand-teal); }

/* ── Lightbox ── */
.fr-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center; padding: 20px;
}
.fr-lightbox.open { display: flex; }
.fr-lightbox-inner { position: relative; max-width: 720px; width: 100%; }
.fr-lightbox-inner img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; display: block; }
.fr-lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 32px !important; height: 32px; border-radius: 50%;
  background: #222; color: white; border: none;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
}
.fr-lightbox-caption { text-align: center; color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 10px; }

/* ── Toast ── */
.fr-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #111; color: white;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999; white-space: nowrap;
}
.fr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Loading / empty ── */
.fr-loading { text-align: center; padding: 52px; color: #aaa; font-size: 0.84rem; }
.fr-empty   { text-align: center; padding: 52px; color: #aaa; }
.fr-gallery-grid .fr-loading,
.fr-gallery-grid .fr-empty { grid-column: 1/-1; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .fr-gallery-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .fr-gallery-grid  { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .fr-card-body     { padding: 8px 10px; }
  .fr-gallery-strip { grid-template-columns: 1fr 1fr; }
}