/* Facebook-specific styling. */

.fb-body {
  background: #f0f2f5;
  color: #050505;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Top nav */
.fb-topnav {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky; top: 49px; z-index: 800;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.fb-nav-inner {
  display: flex; align-items: center;
  padding: 0 16px;
  height: 56px;
  gap: 12px;
}
.fb-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1877f2;
  color: white;
  font-weight: 800;
  font-size: 28px;
  display: grid; place-items: center;
  font-family: Helvetica, Arial, sans-serif;
}
.fb-search {
  background: #f0f2f5;
  border-radius: 50px;
  padding: 8px 12px;
  width: 240px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.fb-search input {
  background: transparent; border: none; outline: none;
  width: 100%; font: inherit;
}
.fb-nav-icons {
  display: flex; flex: 1; justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 4px;
}
.fb-nav-icons a {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 22px;
  color: #65676b;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.fb-nav-icons a:hover { background: #f0f2f5; }
.fb-nav-icons a.active { color: #1877f2; }
.fb-nav-icons a.active::after {
  content: '';
  position: absolute; bottom: -8px; left: 8px; right: 8px;
  height: 3px; background: #1877f2;
  border-radius: 2px;
}
.fb-nav-right {
  display: flex; gap: 4px;
  align-items: center;
}
.fb-nav-right a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #e4e6eb;
  display: grid; place-items: center;
  cursor: pointer; text-decoration: none;
  font-size: 18px;
  color: #050505;
}
.fb-nav-right a:hover { background: #d8dadf; }
.fb-me-avatar {
  background: linear-gradient(135deg, #ff6b35, #c64a17) !important;
  color: white !important;
  font-weight: 700;
}

/* Page container */
.fb-page {
  max-width: 1004px;
  margin: 16px auto 80px;
  padding: 0 16px;
}

.fb-page-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
}

.fb-cover {
  height: 348px;
  background:
    linear-gradient(135deg, rgba(26,26,26,0.85), rgba(255,107,53,0.4)),
    linear-gradient(45deg, #1a1a1a 25%, #444 50%, #ff6b35 75%, #c64a17 100%);
  position: relative;
}
.fb-cover::after {
  content: 'DRAGONFLY';
  position: absolute;
  bottom: 24px; left: 32px;
  font-size: 24px; letter-spacing: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.fb-page-info {
  padding: 16px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  position: relative;
}
.fb-profile-photo {
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 5px solid white;
  background: white url('brand/dragonfly-logo-square.jpg') center / cover no-repeat;
  flex-shrink: 0;
  margin-top: -84px;
  text-indent: -9999px;
  overflow: hidden;
}
.fb-page-title { flex: 1; padding-bottom: 16px; }
.fb-page-title h1 {
  font-size: 32px; font-weight: 700;
  margin: 0 0 4px;
  color: #050505;
}
.fb-page-meta {
  font-size: 15px; color: #65676b;
  margin: 0 0 4px;
}
.fb-page-meta strong { color: #050505; }
.fb-page-friends {
  font-size: 14px; color: #65676b;
  margin-top: 8px;
}
.fb-page-actions {
  display: flex; gap: 8px;
  padding-bottom: 16px;
}
.fb-btn {
  background: #e4e6eb;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  color: #050505;
  display: flex; align-items: center; gap: 6px;
}
.fb-btn:hover { background: #d8dadf; }
.fb-btn-primary { background: #1877f2; color: white; }
.fb-btn-primary:hover { background: #166fe5; }
.fb-btn-icon { padding: 8px 12px; }

.fb-page-tabs {
  border-top: 1px solid #ced0d4;
  padding: 0 16px;
  display: flex;
  gap: 4px;
}
.fb-page-tabs a {
  padding: 16px 12px;
  text-decoration: none;
  color: #65676b;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.fb-page-tabs a.active {
  color: #1877f2;
  border-bottom-color: #1877f2;
}
.fb-page-tabs a:not(.active):hover {
  background: #f0f2f5;
  border-radius: 4px 4px 0 0;
}

/* Two-column content */
.fb-content {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 880px) {
  .fb-content { grid-template-columns: 1fr; }
  .fb-side-left { display: none; }
}

.fb-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
}
.fb-card-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.fb-intro {
  text-align: center;
  margin: 0 0 14px;
  font-size: 15px;
}
.fb-detail {
  font-size: 15px;
  padding: 6px 0;
  color: #050505;
}

.fb-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.fb-photo-tile {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

/* Create post */
.fb-create-post {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
}
.fb-create-row {
  display: flex; gap: 8px; align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ced0d4;
}
.fb-mini-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white url('brand/dragonfly-logo-square.jpg') center / cover no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
.fb-create-btn {
  flex: 1;
  background: #f0f2f5; border: none;
  padding: 10px 16px;
  border-radius: 50px;
  text-align: left;
  color: #65676b;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.fb-create-btn:hover { background: #e4e6eb; }
.fb-create-types {
  display: flex; gap: 8px;
  padding-top: 8px;
}
.fb-create-types button {
  flex: 1;
  background: none; border: none;
  padding: 8px;
  border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 15px;
  color: #65676b; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.fb-create-types button:hover { background: #f0f2f5; }

.fb-filter-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px;
  font-size: 17px;
}
.fb-filter-row strong { font-weight: 700; }
.fb-filter-row span { font-size: 15px; color: #65676b; cursor: pointer; }

/* Posts */
.fb-post {
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.fb-post-header {
  padding: 12px 16px 0;
  display: flex; gap: 8px;
  align-items: flex-start;
}
.fb-post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white url('brand/dragonfly-logo-square.jpg') center / cover no-repeat;
  flex-shrink: 0;
  text-indent: -9999px;
  overflow: hidden;
}
.fb-post-author { flex: 1; min-width: 0; }
.fb-post-name { font-weight: 600; font-size: 15px; color: #050505; }
.fb-post-meta { font-size: 13px; color: #65676b; }
.fb-post-meta::after { content: ' · 🌐'; font-size: 12px; }
.fb-post-more {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  padding: 4px 8px;
  color: #65676b;
  border-radius: 50%;
  align-self: flex-start;
}

.fb-post-body {
  padding: 12px 16px 8px;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}
.fb-post-hashtags {
  padding: 0 16px 12px;
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
}
.fb-post-hashtags .ht { color: #1877f2; font-weight: 500; margin-right: 2px; }

.fb-post-image {
  margin: 0;
}

.fb-post-engagement {
  display: flex; align-items: center;
  padding: 10px 16px;
  font-size: 15px;
  color: #65676b;
}
.fb-reactions {
  display: inline-flex; align-items: center;
}
.fb-reaction-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-right: -4px;
  display: inline-grid; place-items: center;
  font-size: 11px;
  border: 2px solid white;
  position: relative;
}
.fb-reaction-icon.like { background: #1877f2; }
.fb-reaction-icon.love { background: #f33e58; }
.fb-reaction-icon.care { background: #f7b125; }
.fb-eng-count { margin-left: 8px; cursor: pointer; }
.fb-eng-count:hover { text-decoration: underline; }
.fb-eng-right { margin-left: auto; }
.fb-eng-right span { cursor: pointer; }
.fb-eng-right span:hover { text-decoration: underline; }

.fb-post-actions {
  border-top: 1px solid #ced0d4;
  display: flex;
  padding: 4px 8px;
}
.fb-action {
  flex: 1;
  background: none; border: none;
  padding: 8px;
  border-radius: 4px;
  color: #65676b;
  font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
}
.fb-action:hover { background: #f0f2f5; }
.fb-action svg { width: 20px; height: 20px; }

/* Image area shared (re-declared for FB standalone) */
.image-area {
  position: relative;
  background: #1a1a1a; color: #fdfcfb;
  padding: 32px 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  overflow: hidden;
}
.aspect-191 { aspect-ratio: 1.91 / 1; }
.aspect-45  { aspect-ratio: 4 / 5; }
.aspect-11  { aspect-ratio: 1 / 1; }

.tile-bg::before {
  content: '';
  position: absolute; left: 50%; top: 22%;
  width: 56px; height: 1px; background: #ff6b35;
  transform: translateX(-50%);
}
.tile-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; line-height: 1.45;
  font-weight: 500;
  max-width: 90%;
}
.tile-mark {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center;
  font-size: 9px; letter-spacing: 3px; color: #ff6b35;
  font-weight: 600;
}
.tile-attr {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 11px; color: #888; font-style: italic;
}
.carousel-cover { background: #0f0f10; }
.carousel-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,107,53,0.95); color: white;
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.press-bg { background: #fdfcfb; color: #1a1a1a; }
.press-bg::before { display: none; }
.press-label {
  font-size: 10px; letter-spacing: 3px; color: #ff6b35;
  margin-bottom: 14px; font-weight: 700;
}
.press-content {
  font-family: Georgia, serif;
  font-size: 14px; line-height: 1.5;
  white-space: pre-line;
  max-width: 92%;
}
.press-bg .tile-mark { color: #1a1a1a; }
.photo-bg {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a 70%);
  color: #aaa;
}
.photo-bg::before { display: none; }
.photo-icon { font-size: 36px; opacity: 0.4; margin-bottom: 12px; }
.photo-topic { font-family: Georgia, serif; font-size: 17px; color: #fff; max-width: 90%; }
.photo-note { font-size: 11px; color: #888; margin-top: 10px; font-style: italic; max-width: 80%; }
