/*
Theme Name: Facebook 2006
Theme URI: https://example.com
Author: Claude
Author URI: https://anthropic.com
Description: A nostalgic WordPress theme inspired by Facebook's iconic 2006 interface. Features the classic navy blue header, sidebar layout, wall posts, and that unmistakable early social network aesthetic.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: facebook2006
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, sticky-post, threaded-comments
*/

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #e8e8e8;
  color: #333;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* =====================================================
   TOP NAVIGATION
   ===================================================== */
#fb-topnav {
  background: #3b5998;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#fb-topnav .site-logo a {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  letter-spacing: -0.5px;
  text-decoration: none;
}

#fb-topnav .topnav-search {
  display: flex;
  align-items: center;
  gap: 5px;
}

#fb-topnav .topnav-search input[type="search"] {
  height: 24px;
  border: 1px solid #8b9dc3;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  background: #fff;
  width: 180px;
  outline: none;
}

#fb-topnav .topnav-search input[type="search"]:focus {
  border-color: #3b5998;
  box-shadow: 0 0 0 2px rgba(59,89,152,0.3);
}

#fb-topnav .topnav-search button {
  background: #5b74a8;
  border: 1px solid #3b5998;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 0 10px;
  border-radius: 3px;
  cursor: pointer;
  height: 24px;
}

#fb-topnav .topnav-search button:hover {
  background: #4a6090;
}

#fb-topnav .topnav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

#fb-topnav .topnav-user a {
  color: #d8dfea;
  text-decoration: none;
}

#fb-topnav .topnav-user a:hover {
  color: #fff;
  text-decoration: underline;
}

#fb-topnav .topnav-user .inbox-badge {
  background: #c00;
  color: #fff;
  border-radius: 8px;
  padding: 0 5px;
  font-size: 10px;
  margin-left: 3px;
}

/* =====================================================
   SUB NAVIGATION (Main Menu)
   ===================================================== */
#fb-subnav {
  background: #5b74a8;
  border-bottom: 1px solid #3b5998;
}

#fb-subnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px;
}

#fb-subnav ul li a {
  display: inline-block;
  color: #d8dfea;
  font-size: 12px;
  padding: 5px 11px;
  text-decoration: none;
  line-height: 1.6;
}

#fb-subnav ul li a:hover,
#fb-subnav ul li.current-menu-item a,
#fb-subnav ul li.current-page-ancestor a {
  background: #3b5998;
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   PAGE WRAPPER
   ===================================================== */
#fb-wrapper {
  max-width: 760px;
  margin: 10px auto;
  padding: 0 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
#fb-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =====================================================
   BOXES (shared panel style)
   ===================================================== */
.fb-box {
  background: #fff;
  border: 1px solid #b0b8cc;
  border-radius: 3px;
  overflow: hidden;
}

.fb-box-header {
  background: #d8dfea;
  border-bottom: 1px solid #b0b8cc;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-box-header h2,
.fb-box-header h3 {
  font-size: 13px;
  font-weight: bold;
  color: #3b5998;
  margin: 0;
}

.fb-box-header a.view-all {
  font-size: 11px;
  color: #3b5998;
}

/* =====================================================
   POSTS / FEED
   ===================================================== */
.fb-post {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #e8e8e8;
  align-items: flex-start;
}

.fb-post:last-child {
  border-bottom: none;
}

.fb-post-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #3b5998;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  background: #c5cde2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: #3b5998;
}

.fb-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-post-body {
  flex: 1;
  min-width: 0;
}

.fb-post-meta {
  margin-bottom: 4px;
}

.fb-post-meta .post-author {
  font-weight: bold;
  font-size: 13px;
  color: #3b5998;
}

.fb-post-meta .post-date {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
}

.fb-post-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.fb-post-title a {
  color: #3b5998;
}

.fb-post-excerpt {
  font-size: 12px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
}

.fb-post-thumbnail {
  float: right;
  margin: 0 0 6px 8px;
  border: 1px solid #b0b8cc;
  border-radius: 2px;
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.fb-post-actions {
  display: flex;
  gap: 10px;
  font-size: 11px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.fb-post-actions a {
  color: #3b5998;
}

.fb-post-actions .post-comments-count {
  color: #888;
}

/* Category tag */
.fb-post-cat {
  display: inline-block;
  background: #3b5998;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-bottom: 3px;
}

/* =====================================================
   SINGLE POST / PAGE
   ===================================================== */
.fb-single-post {
  padding: 12px;
}

.fb-single-post h1.entry-title {
  font-size: 18px;
  font-weight: bold;
  color: #3b5998;
  margin-bottom: 6px;
}

.fb-single-post .entry-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.fb-single-post .entry-meta a { color: #3b5998; }

.fb-single-post .entry-content {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.fb-single-post .entry-content p { margin-bottom: 1em; }
.fb-single-post .entry-content h2 { font-size: 16px; color: #3b5998; margin: 1em 0 0.5em; }
.fb-single-post .entry-content h3 { font-size: 14px; color: #3b5998; margin: 1em 0 0.5em; }
.fb-single-post .entry-content ul, .fb-single-post .entry-content ol { margin-left: 1.5em; margin-bottom: 1em; }
.fb-single-post .entry-content blockquote {
  border-left: 3px solid #3b5998;
  padding: 6px 12px;
  background: #f0f4fb;
  color: #555;
  margin: 1em 0;
  font-style: italic;
}

.fb-single-post .entry-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e8e8e8;
  font-size: 11px;
  color: #888;
}

/* =====================================================
   COMMENTS
   ===================================================== */
.fb-comments-box .fb-box-header {
  background: #3b5998;
}
.fb-comments-box .fb-box-header h2 {
  color: #fff;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-item {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.comment-item:last-child { border-bottom: none; }

.comment-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #3b5998;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  background: #c5cde2;
}

.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-body .comment-author {
  font-weight: bold;
  font-size: 12px;
  color: #3b5998;
}
.comment-body .comment-date { font-size: 11px; color: #999; margin-left: 6px; }
.comment-body .comment-text { font-size: 12px; color: #333; margin-top: 2px; }

/* Comment form */
.fb-comment-form {
  padding: 10px;
  border-top: 1px solid #e8e8e8;
}

.fb-comment-form input[type="text"],
.fb-comment-form input[type="email"],
.fb-comment-form input[type="url"],
.fb-comment-form textarea {
  width: 100%;
  border: 1px solid #b0b8cc;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  margin-bottom: 6px;
  outline: none;
}

.fb-comment-form input[type="text"]:focus,
.fb-comment-form textarea:focus {
  border-color: #3b5998;
}

.fb-comment-form textarea { height: 70px; resize: vertical; }

.fb-comment-form .btn-blue,
.fb-btn-blue {
  background: #5b74a8;
  border: 1px solid #3b5998;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 3px;
  cursor: pointer;
}

.fb-comment-form .btn-blue:hover,
.fb-btn-blue:hover {
  background: #3b5998;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.fb-pagination {
  padding: 8px 10px;
  font-size: 12px;
  color: #888;
  text-align: center;
  border-top: 1px solid #e8e8e8;
}

.fb-pagination a {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #b0b8cc;
  border-radius: 3px;
  margin: 0 2px;
  color: #3b5998;
  background: #fff;
  font-size: 12px;
}

.fb-pagination a:hover { background: #f0f4fb; }
.fb-pagination .current-page {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #3b5998;
  background: #3b5998;
  color: #fff;
  border-radius: 3px;
  margin: 0 2px;
  font-size: 12px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
#fb-sidebar {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Sidebar box header (blue) */
.fb-sidebar .fb-box-header {
  background: #3b5998;
  border-bottom: 1px solid #2e4a86;
}
.fb-sidebar .fb-box-header h2,
.fb-sidebar .fb-box-header h3 {
  color: #fff;
  font-size: 12px;
}

.fb-sidebar .fb-box ul {
  list-style: none;
  padding: 4px 0;
}

.fb-sidebar .fb-box ul li {
  padding: 4px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}

.fb-sidebar .fb-box ul li:last-child { border-bottom: none; }

.fb-sidebar .fb-box ul li a {
  color: #3b5998;
  display: block;
}

.fb-sidebar .fb-box ul li a:hover { text-decoration: underline; }

.fb-sidebar .fb-box ul li .count {
  float: right;
  background: #3b5998;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  padding: 1px 6px;
}

/* Sidebar search */
.fb-sidebar-search {
  padding: 8px;
  display: flex;
  gap: 4px;
}

.fb-sidebar-search input[type="search"] {
  flex: 1;
  height: 24px;
  border: 1px solid #b0b8cc;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  background: #fff;
  color: #333;
  outline: none;
}

.fb-sidebar-search button {
  background: #5b74a8;
  border: 1px solid #3b5998;
  color: #fff;
  font-size: 11px;
  padding: 0 8px;
  border-radius: 3px;
  cursor: pointer;
  height: 24px;
}

/* Recent posts in sidebar */
.sidebar-post-item {
  padding: 5px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}

.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item a { color: #3b5998; display: block; margin-bottom: 1px; }
.sidebar-post-item .sidebar-post-date { color: #999; font-size: 11px; }

/* =====================================================
   FOOTER
   ===================================================== */
#fb-footer {
  background: #3b5998;
  border-top: 1px solid #2e4a86;
  text-align: center;
  padding: 14px;
  margin-top: 14px;
}

#fb-footer .footer-links {
  margin-bottom: 6px;
}

#fb-footer .footer-links a {
  color: #d8dfea;
  font-size: 11px;
  margin: 0 6px;
  text-decoration: none;
}

#fb-footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

#fb-footer .footer-copy {
  font-size: 11px;
  color: #8b9dc3;
}

/* =====================================================
   404 / SEARCH / ARCHIVE PAGES
   ===================================================== */
.fb-page-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e8e8e8;
}

.fb-page-header h1 {
  font-size: 16px;
  color: #3b5998;
  font-weight: bold;
}

.fb-page-header .page-description {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

.fb-no-results {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
  #fb-wrapper {
    flex-direction: column;
  }

  #fb-sidebar {
    width: 100%;
  }

  #fb-topnav .topnav-search {
    display: none;
  }

  #fb-topnav .topnav-user {
    font-size: 11px;
    gap: 8px;
  }
}
