/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Roboto';
  src: url('instagram/Roboto.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Roboto', sans-serif;
}

.container {
  display: flex;
  max-width: 1200px; /* or whatever max width you want */
  margin: 0 auto;
  gap: 20px; /* spacing between columns */
  padding: 20px;
}

.insta-logo {
  height: 10px;
  width: auto;
  display: block;
  margin-left: 5px;
  margin-top: 15px;
  margin-bottom: 70px;
}

.search-bar {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
}

.nav-icons i {
  font-size: 20px;
  margin-left: 20px;
  cursor: pointer;
}

main {
  display: flex;
  flex: 1;
  padding-left: 70px;      /* make room for fixed sidebar */
  padding-top: 70px;        /* if you have a top header */
}

main .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto;
  padding: 20px;
  max-width: 1265px; /* same as Instagram's max width */
}

.feed {
  flex: 2;
  width: 100%;
  margin-left: 0px;
}

.stories {
  display: flex;
  gap: 35px;
  padding: 16px 0;
  overflow-x: auto;
  border: 0px solid #dbdbdb;
  background: white;
  margin-left: 10px;
}

.story-item {
  text-align: center;
  width: 75px;
  flex-shrink: 0;
}

.story-avatar {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 4px solid #f70078; /* Instagram-style ring */
  object-fit: cover;
}

.story-username {
  font-size: 12px;
  color: #333;
  margin-top: 5px;
  margin-left: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.post {
  background: #fff;
  border: 1px solid #dbdbdb;
  margin-bottom: 20px;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  background: #bbb;
  border-radius: 50%;
  margin-right: 10px;
}

.username {
  font-weight: bold;
}

.post-img {
  width: 100%;
  display: block;
}

.post-actions {
  padding: 10px;
  font-size: 18px;
}

.post-actions i {
  margin-right: 15px;
  cursor: pointer;
}

.post-caption {
  padding: 0 10px 10px;
}

/* === Right Sidebar === */
.sidebar {
  max-width: 320px;
  flex-shrink: 0;
  flex: 1;
  padding-top: 20px;
  font-size: 14px;
  color: #262626;
  margin-left: 30px;
}

.profile-preview {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-preview img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-right: 14px;
}

.profile-text {
  display: flex;
  flex-direction: column;
}

.profile-text strong {
  font-weight: 600;
  color: #262626;
}

.profile-text span {
  color: #8e8e8e;
  font-size: 13px;
}

.suggestions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #8e8e8e;
  font-weight: 500;
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-info {
  display: flex;
  align-items: center;
}

.suggestion-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.suggestion-info .username {
  font-weight: 500;
  font-size: 13px;
}

.suggestion button {
  background: none;
  border: none;
  color: #0095f6;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.nav-menu,
.nav-more {
  list-style: none;
  padding: 0;
  margin: 20px;
}

.nav-menu li,
.nav-more li {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.nav-menu li:hover,
.nav-more li:hover {
  background-color: #f2f2f2;
}

.nav-menu i,
.nav-more i {
  font-size: 18px;
  margin-right: 15px;
}

.nav-menu span,
.nav-more span {
  font-weight: 500;
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 70px) {
  .sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;             /* match your layout needs */
  height: 100vh;            /* full vertical height */
  background-color: #fff;
  border-right: 1px solid #dbdbdb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 10px;
  z-index: 999;
  flex-shrink: 0;
  } 

  .nav-menu span,
  .nav-more span,

  .main .container {
    margin-left: 20px;
  }

  .nav-menu i,
  .nav-more i {
    margin-right: 0;
    text-align: center;
    width: 70%;
  }
}

@media (min-width: 900px) {
  .sidebar {
    display: block;
  }
}
