/* ===========================
   VARIABLES
=========================== */
:root {
  --fb-blue: #1877f2;
  --gray: #65676b;
  --light: #f0f2f5;
  --card: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 12px;
  --font: "Cairo", sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--light);
  color: #050505;
  line-height: 1.6;
}

/* ===========================
   COVER IMAGE & PROFILE PICTURE
=========================== */
.cover {
  position: relative;
  width: 100%;
  height: 300px;
  background: #ddd;
  overflow: hidden;
}

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

.profile-pic {
  position: absolute;
  bottom: -70px;
  right: 30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   PAGE INFO
=========================== */
.page-info {
  margin-top: 90px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin: 20px auto;
  max-width: 900px;
}

.page-info h1 {
  font-size: 22px;
}

.username {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 8px;
}

.bio {
  font-size: 15px;
  margin-bottom: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.like-btn {
  background: var(--fb-blue);
  color: #fff;
}

.follow-btn {
  background: #42b72a;
  color: #fff;
}

.message-btn {
  background: #e4e6eb;
}

/* ===========================
   NAVBAR
=========================== */
.nav-bar {
  max-width: 900px;
  margin: 10px auto;
  display: flex;
  gap: 20px;
  background: var(--card);
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-bar a {
  text-decoration: none;
  font-weight: 600;
  color: var(--gray);
  transition: 0.2s;
}

.nav-bar a:hover {
  color: var(--fb-blue);
}

/* ===========================
   POSTS
=========================== */
.posts {
  max-width: 900px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.post-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.post-header h2 {
  font-size: 16px;
  margin: 0;
}

.post-header span {
  font-size: 13px;
  color: var(--gray);
}

.post-text {
  margin-bottom: 12px;
  font-size: 15px;
}

.post-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.post-actions {
  display: flex;
  gap: 12px;
}

.post-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font-weight: 600;
}

.post-actions button:hover {
  color: var(--fb-blue);
}
