/* Entelechy Visions Facebook page */
:root {
  --fb-blue: #1877F2;
  --fb-blue-hover: #166FE5;
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --text: #050505;
  --muted: #65676B;
  --divider: #E4E6EB;
  --link: #216FDB;
  --border: #CED0D4;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  --page-max: min(100vw - 24px, 1280px);
  --sidebar: 360px;
  --gap: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Helvetica, Arial, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.3333;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.page {
  width: var(--page-max);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 32px;
}
.page-header {
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cover {
  display: block;
  width: 100%;
  background: #fff;
  line-height: 0;
  cursor: zoom-in;
  text-decoration: none;
}
.cover:hover { text-decoration: none; opacity: 0.96; }
.cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-end;
  gap: 16px;
  padding: 0 20px 16px;
  margin-top: -48px;
  position: relative;
}
.avatar {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: #111 url("assets/pfp.png") center / cover no-repeat;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  text-decoration: none;
  flex-shrink: 0;
}
.avatar:hover { text-decoration: none; filter: brightness(0.97); }
.identity-text { padding-bottom: 12px; min-width: 0; }
.page-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 32px;
  font-weight: 700;
}
.verified { width: 22px; height: 22px; flex-shrink: 0; }
.page-category { margin-top: 2px; color: var(--muted); }
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0 16px;
  height: 36px;
  border-radius: 6px;
  background: var(--fb-blue);
  color: #fff;
  font-weight: 600;
}
.page-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border-top: 1px solid var(--divider);
  box-shadow: var(--shadow);
  padding: 0 8px 0 12px;
  min-height: 52px;
}
.tabs { display: flex; list-style: none; }
.tabs li a {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.tabs li.active a { color: var(--fb-blue); border-bottom-color: var(--fb-blue); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: #E4E6EB;
  color: var(--text);
  font-weight: 600;
}
.content {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
  align-items: start;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card + .card { margin-top: 16px; }
.card h2 { font-size: 20px; font-weight: 700; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.about-list { list-style: none; margin-top: 12px; }
.about-list li { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; }
.about-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  display: grid;
  place-items: center;
  font-style: italic;
  font-weight: 700;
}
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo { aspect-ratio: 1; background: #B0B3B8; }
.mini-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111 url("assets/pfp.png") center / cover no-repeat;
  flex-shrink: 0;
  cursor: zoom-in;
  text-decoration: none;
}
.mini-avatar:hover { text-decoration: none; filter: brightness(0.97); }
.post { padding: 0; overflow: hidden; }
.post-text { padding: 16px 16px 12px; }
.post-media { width: 100%; height: clamp(280px, 36vw, 440px); background: var(--fb-blue); }
.post-stats {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
  color: var(--muted);
}
.reactions { display: flex; align-items: center; }
.rx { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -4px; }
.rx:first-child { margin-left: 0; }
.rx.like { background: #1877F2; }
.rx.love { background: #F33E58; }
.rx.care { background: #F7B125; }
.rx-count { margin-left: 6px; }
.counts { display: flex; gap: 12px; }
.post-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 8px;
  border-bottom: 1px solid var(--divider);
}
.post-actions button { height: 44px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.comments-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 4px;
}
.view-comments, .sort { color: var(--muted); font-weight: 600; }
.comment-compose {
  display: flex;
  gap: 8px;
  padding: 8px 16px 16px;
  align-items: center;
}
.comment-field {
  flex: 1;
  display: flex;
  background: #F0F2F5;
  border-radius: 20px;
  padding: 0 12px;
  min-height: 36px;
}
.comment-field input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
}
.site-footer { margin-top: 24px; padding: 0 4px; color: #8A8D91; font-size: 12px; }
.about-heading-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.about-heading-link:hover {
  color: var(--fb-blue);
  text-decoration: none;
}
.about-page {
  max-width: 720px;
  padding-top: 40px;
  animation: about-zoom-in 0.28s ease-out;
}
@keyframes about-zoom-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.about-zoom-card {
  padding: 28px 28px 20px;
  transform-origin: top center;
}
.about-zoom-card h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.about-list-zoom {
  margin-top: 8px;
}
.about-list-zoom li {
  gap: 16px;
  padding: 14px 0;
  font-size: 18px;
  line-height: 1.45;
}
.about-list-zoom .about-icon {
  width: 24px;
  height: 24px;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-list-zoom .link {
  font-size: 18px;
  word-break: break-word;
}
.contact-page { max-width: 560px; padding-top: 40px; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); font-weight: 600; font-size: 14px; }
.back-link:hover { color: var(--fb-blue); text-decoration: none; }
.contact-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.contact-intro { color: var(--muted); margin-bottom: 20px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: #F0F2F5;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}
.contact-option:hover { background: #E4E6EB; text-decoration: none; border-color: var(--border); }
.contact-label { font-size: 17px; font-weight: 700; color: var(--fb-blue); }
.contact-hint { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .content { grid-template-columns: 1fr; }
  .identity { grid-template-columns: auto 1fr; }
  .btn-contact { grid-column: 1 / -1; justify-content: center; }
}
