@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  margin:0; padding:0;
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #fff;
}

.container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #00e0ff;
  text-shadow: 0 0 10px #00e0ff;
}

/* Auth Boxes */
.auth-box {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.auth-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #00e0ff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.auth-box button:hover {
  background: #00b8cc;
}

.auth-box span {
  color: #00e0ff;
  cursor: pointer;
  font-weight: 600;
}

/* App Container */
.top-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.top-bar input, .top-bar select {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn {
  background: #00e0ff;
  color: #000;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
}

.btn:hover {
  background: #00b8cc;
}

/* Post Box */
.post-box {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.post-box textarea, .post-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.post-btn {
  width: 100%;
}

/* Posts */
.post {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.post:hover {
  transform: translateY(-5px);
}

.post-date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}

.post img {
  max-width: 100%;
  border-radius: 15px;
  margin-bottom: 10px;
}

/* Buttons in Post */
.post button {
  margin-right: 10px;
  border-radius: 10px;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.like-btn.liked {
  color: #ff3860;
  transform: scale(1.2);
}

/* Comment Section */
.comment-section {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

.comment-input {
  width: 75%;
  display: inline-block;
  padding: 8px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.comment-btn {
  width: 23%;
  display: inline-block;
  padding: 8px;
  margin-left: 2%;
  border-radius: 10px;
  background: #00e0ff;
  color: #000;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.comment-btn:hover {
  background: #00b8cc;
}

.comment {
  background: rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 10px;
  margin-top: 5px;
  word-wrap: break-word;
}

body {
  margin:0; padding:0;
  font-family: 'Poppins', sans-serif;
  background: #121212; /* default dark */
  color: #fff;
  transition: 0.5s;
}

/* Small devices: Mobile (max-width 600px) */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  h1 {
    font-size: 24px;
    text-shadow: 0 0 5px #00e0ff;
  }

  /* Top bar inputs/buttons stack */
  .top-bar {
    flex-direction: column;
    gap: 10px;
  }
  .top-bar input, .top-bar select, .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Post box adjustments */
  .post-box {
    padding: 10px;
  }
  .post-box textarea, .post-box input {
    width: 100%;
    margin-bottom: 8px;
  }
  .post-btn { padding: 8px; font-size: 14px; }

  /* Posts */
  .post { padding: 10px; }
  .post-date { font-size: 11px; }

  /* Comments */
  .comment-input, .comment-btn {
    width: 100% !important;
    margin: 5px 0;
  }
  .comment-btn { margin-left: 0 !important; padding: 6px; font-size: 13px; }
}


input, textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  box-sizing: border-box;   /* OVERFLOW KO KHATAM KAR DETA HAI */
  border-radius: 6px;
}

select option{
    background-color: #121212;
    outline: none;
    
}

/* Medium devices: Tablets (601px - 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .container { padding: 15px; }
  .top-bar { flex-wrap: wrap; gap: 10px; }
  .top-bar input, .top-bar select { flex: 1 1 45%; }
  .btn { flex: 1 1 45%; }

  .post-box textarea, .post-box input { width: 100%; }
  .comment-input, .comment-btn { width: 48% !important; }
}

/* Images responsive */
.post img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}
