/* styles.css */

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', sans-serif;
  background: #0e1e2e;
  color: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #121c2c;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #90e0ef;
}

.search {
  background: #1a263a;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #fff;
  width: 300px;
}

.nav-icons .icon {
  margin-left: 1rem;
  cursor: pointer;
}

/* Layout */
.container {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.sidebar {
  width: 15%;
  position: relative;
}

.sidebar.left ul {
  list-style: none;
  padding: 1rem;
  line-height: 2;
}

.sidebar.right {
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Stories */
.stories {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  height: 6px;
  background: transparent;
}

.stories::-webkit-scrollbar-thumb {
  background: #90e0ef;
  border-radius: 10px;
}

.story {
  min-width: 120px;
  background: #1a263a;
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.story:hover {
  transform: scale(1.05);
}

.story img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #90e0ef;
  margin-bottom: 0.5rem;
}

/* Reels */
.reels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reel {
  background: #1a263a;
  border-radius: 12px;
  padding: 1rem;
  aspect-ratio: 9/16;
  position: relative;
}

.reel video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.reel-info {
  margin-top: 0.5rem;
}

.reel-info h4 {
  margin-bottom: 0.3rem;
}

/* Social Icons */
.social-icons {
  position: sticky;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-icons a img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s, transform 0.3s;
}

.social-icons a img:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .feed {
    width: 100%;
  }
}
