/* thefacebook.com circa 2004 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Verdana, "Lucida Grande", Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: #333;
  background: #fff;
}

a { color: #3b5998; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
  background: #3b5998;
  border-bottom: 1px solid #1a3c7a;
  padding: 4px 0;
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.header h1 {
  color: #fff;
  font-size: 20px;
  font-family: "Klavika", "Lucida Grande", Tahoma, sans-serif;
  letter-spacing: -0.5px;
}
.header h1 span { font-weight: normal; font-size: 11px; }
.header-nav { display: flex; gap: 8px; align-items: center; }
.header-nav a {
  color: #d8dfea;
  font-size: 11px;
  font-weight: bold;
}
.header-nav a:hover { color: #fff; text-decoration: underline; }
.header-search input {
  font-size: 11px;
  padding: 2px 4px;
  border: 1px solid #1a3c7a;
  width: 140px;
}
.header-search button {
  font-size: 10px;
  padding: 2px 6px;
  background: #627aad;
  color: #fff;
  border: 1px solid #1a3c7a;
  cursor: pointer;
}
.badge {
  background: #e22;
  color: #fff;
  font-size: 9px;
  padding: 0 4px;
  border-radius: 8px;
  margin-left: 2px;
}

/* Subheader */
.subheader {
  background: #d8dfea;
  border-bottom: 1px solid #a0aec0;
  padding: 3px 0;
  font-size: 11px;
}
.subheader-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  gap: 12px;
}
.subheader a { color: #3b5998; font-weight: bold; }

/* Main content */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px;
}

/* Two column layout */
.two-col { display: flex; gap: 15px; }
.col-left { width: 200px; flex-shrink: 0; }
.col-right { flex: 1; min-width: 0; }

/* Boxes */
.box {
  border: 1px solid #a0aec0;
  margin-bottom: 10px;
}
.box-header {
  background: #d8dfea;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 11px;
  color: #333;
  border-bottom: 1px solid #a0aec0;
}
.box-body { padding: 8px; }

/* Profile */
.profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid #a0aec0;
  display: block;
}
.profile-name {
  font-size: 14px;
  font-weight: bold;
  margin: 5px 0;
}
.profile-status {
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}
.profile-info { line-height: 1.8; }
.profile-info b { color: #3b5998; }
.poke-btn, .friend-btn, .btn {
  display: inline-block;
  background: #627aad;
  color: #fff;
  border: 1px solid #3b5998;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.poke-btn:hover, .friend-btn:hover, .btn:hover {
  background: #4e69a2;
  text-decoration: none;
  color: #fff;
}
.btn-danger { background: #c33; border-color: #a00; }
.btn-danger:hover { background: #a00; }
.btn-accept { background: #3a3; border-color: #282; }
.btn-accept:hover { background: #282; }

/* Wall */
.wall-post {
  border-bottom: 1px solid #e0e0e0;
  padding: 6px 0;
}
.wall-post:last-child { border-bottom: none; }
.wall-post .author { font-weight: bold; }
.wall-post .time {
  color: #999;
  font-size: 10px;
}
.wall-post .content { margin-top: 3px; }
.wall-form textarea {
  width: 100%;
  height: 50px;
  font-family: inherit;
  font-size: 11px;
  padding: 4px;
  border: 1px solid #a0aec0;
  resize: vertical;
}
.wall-form button { margin-top: 4px; }

/* Feed */
.feed-item {
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 8px;
}
.feed-item:last-child { border-bottom: none; }
.feed-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #ccc;
}
.feed-content { flex: 1; }

/* Friends grid */
.friends-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.friend-card {
  text-align: center;
  width: 80px;
}
.friend-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ccc;
}
.friend-card .name {
  font-size: 10px;
  margin-top: 3px;
  word-wrap: break-word;
}

/* Forms */
.form-group { margin-bottom: 8px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 2px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 3px 5px;
  font-size: 11px;
  font-family: inherit;
  border: 1px solid #a0aec0;
}
.form-group textarea { height: 60px; resize: vertical; }
.error { color: #c00; margin-bottom: 8px; }
.success { color: #090; margin-bottom: 8px; }

/* Landing page */
.landing {
  text-align: center;
  padding: 60px 20px;
}
.landing h2 {
  font-size: 22px;
  color: #3b5998;
  margin-bottom: 10px;
}
.landing p {
  font-size: 13px;
  color: #666;
  max-width: 500px;
  margin: 0 auto 20px;
}
.landing .tagline {
  font-size: 11px;
  color: #999;
  font-style: italic;
  margin-top: 30px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 10px;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}

/* Poke notification */
.poke-alert {
  background: #fffbe6;
  border: 1px solid #e8d655;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 11px;
}

/* Suggestions sidebar */
.suggestion { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.suggestion img { width: 30px; height: 30px; object-fit: cover; border: 1px solid #ccc; }

/* Search results */
.search-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}
.search-result img { width: 50px; height: 50px; object-fit: cover; border: 1px solid #ccc; }

/* Era Picker (shared across all eras) */
.era-picker {
  background: #1a1a2e;
  padding: 8px 0;
  margin-top: 20px;
  border-top: 2px solid #16213e;
}
.era-picker-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.era-label { color: #888; font-size: 11px; margin-right: 4px; }
.era-btn {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  color: #aaa;
  background: #2a2a3e;
  border: 1px solid #444;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s;
}
.era-btn:hover { background: #3a3a5e; color: #fff; text-decoration: none; }
.era-active { background: #3b5998; color: #fff; border-color: #3b5998; font-weight: bold; }
