@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

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

html,
body {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  line-height: 1.4;
  background: #f9f9f9;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  width: 120px;
  height: auto;
}

.center-nav {
  display: flex;
  align-items: center;
}

.search {
  display: flex;
}

.search input {
  width: 100%;
  min-width: 400px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  outline: none;
}

.search button {
  padding: 0 15px;
  border: 1px solid #ccc;
  background: #f1f1f1;
  cursor: pointer;
}

.mic {
  padding: 10px;
  border-radius: 50%;
  background: #ececec;
  display: grid;
  place-items: center;
  margin-left: 10px;
}

.mic img {
  width: 20px;
}

.side-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.side-nav img {
  width: 24px;
  cursor: pointer;
}

/* Sidebar */
aside {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 80px;
  background: white;
  border-right: 1px solid #ddd;
  position: fixed;
  top: 60px;
  bottom: 0;
}

.container {
  display: flex;
}

/* Sidebar Icons */
.side-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.side-icons img {
  width: 24px;
}

.side-icons p {
  font-size: 10px;
}

/* Main */
.main-container {
  flex: 1;
  margin-left: 80px;
}

.tags {
  display: flex;
  padding: 10px 20px;
  gap: 10px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #eee;
  background: white;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  cursor: pointer;
}

.dark {
  background: black;
  color: white;
}

.light {
  background: #eee;
  color: #444;
}

/* Cards */
main {
  padding: 20px;
  margin-left: 80px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  width: 200px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  display: block;
}

.avatar-content {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.avatar img {
  width: 40px;
  border-radius: 50%;
}

.content {
  flex: 1;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.channel-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.content-status {
  display: flex;
  font-size: 12px;
  gap: 10px;
  color: gray;
}

/* ✅ Responsive Media Queries */
@media (max-width: 992px) {
  .search input {
    min-width: 250px;
  }
}

/* ⚡ Updated: kuch bhi hide nahi hoga small/medium pe */
@media (max-width: 768px) {
  .search input {
    min-width: 180px;
  }
}

@media (max-width: 576px) {
  .side-nav {
    gap: 10px;
  }
}
