@font-face {
  font-family: 'Roboto Medium';
  src: url('../fonts/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto Regular';
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins Medium';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins Light';
  src: url('../fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #161618;
  font-family: Arial, sans-serif;
}

.container {
  width: 100%;
  min-height: 100vh;
  background-color: #161618;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  height: 90px;
  position: relative;
  z-index: 10;
  margin-top: 20px;
}

.logo {
  height: 150px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav-buttons {
  display: flex;
  gap: 48px;
}

.nav-button {
  font-family: 'Roboto Medium', Arial, sans-serif;
  font-size: 14px;
  color: #FF4500;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.nav-button:hover {
  opacity: 0.8;
}

.profile-wrapper {
  position: relative;
  max-width: 1130px;
  margin: 0 auto;
  padding-top: 150px;
}

.cover-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1130px;
  height: 180px;
  object-fit: cover;
  z-index: 2;
  border-radius: 12px 12px 0 0;
  background-color: #FF4500;
}

.decorative-box {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1130px;
  height: 200px;
  background-color: #1A1D1F;
  border-radius: 0 0 12px 12px;
  z-index: 1;
  overflow: hidden;
}

.user-info-logout {
  position: absolute;
  top: 120px;
  left: 40px;
  display: flex;
  gap: 40px;
  align-items: flex-end;
  z-index: 10;
  margin: 0;
}

.avatar-container {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1A1D1F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #888;
}

.user-text {
  position: relative;
  margin-bottom: -4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-grow: 1;
}

.username {
  font-family: 'Poppins Medium', sans-serif;
  font-size: 24px;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.2;
}

.email {
  font-family: 'Poppins Light', sans-serif;
  font-size: 14px;
  color: #B0B0B0;
  margin-bottom: 6px;
}

.logout-button {
  font-family: 'Roboto Medium', sans-serif;
  font-size: 12px;
  color: #FF4500;
  background-color: transparent;
  border: 1.5px solid #FF4500;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
  white-space: nowrap;
}

.logout-button:hover {
  background-color: #FF4500;
  color: #ffffff;
}

.posts-container {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0px;
  padding-top: 215px;
}

.post-card {
  background: #333338;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: #FF4500;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 69, 0, 0.1);
}

.post-header {
  margin-bottom: 8px;
}

.post-title {
  font-family: 'Roboto Medium', Arial, sans-serif;
  font-size: 17px;
  color: #FFFFFF;
  line-height: 1.5;
  text-transform: capitalize;
  font-weight: 500;
}

.post-description {
  margin-bottom: 5px; 
}

.post-text {
  font-family: 'Roboto Regular', sans-serif;
  font-size: 17px;
  color: #FFFFFF;
  opacity: 0.87;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  order: 2;
}

.post-meta-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.post-author {
  font-family: 'Roboto Medium', sans-serif;
  font-size: 12px;
  color: #FF4500;
  font-weight: 500;
}

.post-date {
  font-family: 'Roboto Regular', sans-serif;
  font-size: 12px;
  color: #FFFFFF;
  opacity: 0.6;
}

.post-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto Regular', Arial, sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.6;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.action-item:hover {
  opacity: 1;
  color: #FF4500;
}

.action-item.liked {
  color: #FF4500 !important;
  opacity: 1 !important;
}

.action-item.liked .action-icon {
  fill: #FF4500;
  stroke: #FF4500;
}

.action-item.liked:hover {
  color: #FF4500 !important;
  opacity: 0.8 !important;
}

.action-item .action-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.action-count {
  font-family: 'Roboto Regular', sans-serif;
  font-size: 14px;
  color: inherit;
  font-weight: 400;
}

.no-posts {
  text-align: center;
  padding: 30px 20px;
  background: #1A1D1F;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-top: 0px;
}

.no-posts-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-posts-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #333;
}

.no-posts h3 {
  color: #FFFFFF;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.no-posts p {
  color: #B0B0B0;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeIn 0.5s ease-out;
}


@media (max-width: 1200px) {
  .header {
    padding: 0 40px;
  }
  
  .nav-buttons {
    gap: 32px;
  }
  
  .profile-wrapper {
    max-width: 95%;
    margin: 0 auto;
  }
  
  .posts-container {
    max-width: 95%;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  .header {
    padding: 0 30px;
  }
  
  .nav-buttons {
    gap: 24px;
  }
  
  .nav-button {
    font-size: 13px;
  }
  
  .profile-wrapper {
    max-width: 100%;
    padding: 120px 20px 0;
  }
  
  .posts-container {
    max-width: 100%;
    padding: 0 10px;
    padding-top: 190px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    gap: 15px;
    padding: 15px 20px;
  }

  .nav-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .profile-wrapper {
    padding-top: 100px;
  }

  .cover-img {
    height: 120px;
  }

  .decorative-box {
    top: 80px;
    height: 160px;
  }

  .user-info-logout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    gap: 15px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .user-text {
    align-items: center;
    margin-bottom: 10px;
  }

  .username {
    font-size: 20px;
  }

  .email {
    font-size: 13px;
  }

  .logout-button {
    align-self: center;
  }

  .posts-container {
    padding-top: 260px;
  }

  .post-card {
    padding: 16px 20px;
    margin-bottom: 16px;
    gap: 10px;
  }

  .post-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

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

  .post-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .post-actions {
    width: 100%;
    justify-content: space-around;
    gap: 10px;
  }

  .action-item {
    padding: 6px 10px;
    font-size: 13px;
  }

  .action-item .action-icon {
    width: 15px;
    height: 15px;
  }

  .action-count {
    font-size: 13px;
  }

  .no-posts {
    padding: 20px 15px;
    margin: 0 auto;
    min-height: 200px;
  }
  
  .no-posts-avatar {
    width: 100px;
    height: 100px;
  }
  
  .no-posts h3 {
    font-size: 22px;
  }
  
  .no-posts p {
    font-size: 15px;
    max-width: 350px;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 12px 15px;
  }

  .nav-buttons {
    gap: 15px;
  }

  .nav-button {
    font-size: 12px;
  }

  .profile-wrapper {
    padding-top: 80px;
  }

  .posts-container {
    gap: 15px;
    padding: 0 5px;
    padding-top: 240px;
  }

  .post-card {
    padding: 14px 16px;
    margin-bottom: 14px;
  }

  .post-title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .post-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .post-author {
    font-size: 11px;
  }

  .post-date {
    font-size: 11px;
  }

  .action-item {
    padding: 5px 8px;
    font-size: 12px;
  }

  .action-item .action-icon {
    width: 14px;
    height: 14px;
  }

  .action-count {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .user-info-logout {
    left: 20px;
    right: 20px;
    transform: none;
    width: calc(100% - 40px);
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .username {
    font-size: 18px;
  }

  .email {
    font-size: 12px;
  }

  .logout-button {
    font-size: 10px;
    padding: 6px 12px;
    border-width: 1px;
  }

  .posts-container {
    padding-top: 220px;
  }

  .post-card {
    padding: 12px 14px;
  }

  .post-title {
    font-size: 14px;
  }

  .post-text {
    font-size: 13px;
  }

  .post-footer {
    gap: 10px;
  }

  .post-actions {
    gap: 8px;
  }

  .action-item {
    padding: 4px 6px;
    font-size: 11px;
  }

  .action-item .action-icon {
    width: 13px;
    height: 13px;
  }

  .action-count {
    font-size: 11px;
  }

  .no-posts {
    padding: 15px 10px;
    margin: 0 auto;
    min-height: 150px;
  }
  
  .no-posts-avatar {
    width: 60px;
    height: 60px;
  }
  
  .no-posts h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .no-posts p {
    font-size: 12px;
    max-width: 250px;
  }
  
  .no-posts-content {
    gap: 12px;
  }
}

@media (max-width: 320px) {
  .header {
    padding: 10px 12px;
  }

  .nav-buttons {
    gap: 10px;
  }

  .nav-button {
    font-size: 11px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .username {
    font-size: 16px;
  }

  .email {
    font-size: 11px;
  }

  .logout-button {
    font-size: 9px;
    padding: 4px 8px;
  }

  .posts-container {
    padding-top: 200px;
  }

  .post-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .post-title {
    font-size: 13px;
  }

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

  .action-item {
    padding: 3px 5px;
    font-size: 10px;
  }

  .action-item .action-icon {
    width: 12px;
    height: 12px;
  }

  .action-count {
    font-size: 10px;
  }

  .no-posts {
    padding: 12px 8px;
    margin: 0 auto;
    min-height: 120px;
  }
  
  .no-posts-avatar {
    width: 50px;
    height: 50px;
  }
  
  .no-posts h3 {
    font-size: 15px;
  }
  
  .no-posts p {
    font-size: 11px;
    max-width: 220px;
  }
}