/* ===== Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to right, #eef2f3, #dbe9f4);
  padding: 0;
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
}

/* ========== HEADER & BOTTOM NAV STYLES REMOVED ========== */
/* Note: Header styles ab /components/header/header.css mein hain */
/* Note: Bottom Nav styles ab /components/bottomnav/bottomnav.css mein hain */
/* Note: Drawer menu styles ab /components/header/header.css mein hain */

/* ====== General Font (applies everywhere) ====== */
body,
#feedbackForm,
.yt-comments-container,
.add-comment-bar,
.yt-comment,
.yt-reply {
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ====== Main Content Wrapper ====== */
.feedback-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ====== Main Center Wrapper ====== */
.main-center-wrap {
  max-width: 600px;
  margin-left: 36px;
  margin-right: 36px;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .main-center-wrap { margin-left: 14px; margin-right: 14px; }
}

@media (max-width: 600px) {
  .main-center-wrap { margin-left: 2vw; margin-right: 2vw; }
}

.main-center-wrap h1 {
  font-size: 2.50rem;
  font-weight: 800;
  color: #19395e;
  text-align: center;
  margin-top: 36px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-family: 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 600px) {
  .main-center-wrap h1 {
    font-size: 1.35rem;
    margin-top: 22px;
    margin-bottom: 18px;
  }
}

/* ====== Form ====== */
#feedbackForm {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(40,52,102,0.08);
  max-width: 430px;
  margin: 24px auto 20px auto;
  padding: 22px 18px 17px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#feedbackForm label {
  font-weight: 500;
  font-size: 15px;
  color: #000103;
  margin-bottom: 2px;
}

#feedbackForm input[type="text"],
#feedbackForm textarea {
  border: 1px solid #ccd2df;
  border-radius: 7px;
  font-size: 15px;
  padding: 7px 10px;
  background: #fff;
  color: #1c2331;
}

#feedbackForm input[type="text"]:focus,
#feedbackForm textarea:focus { 
  border: 1.5px solid #4e90e6; 
  outline: none; 
}

#feedbackForm textarea { 
  min-height: 56px; 
  resize: vertical; 
}

.char-count { 
  font-size: 13px; 
  color: #8490a3; 
  text-align: right; 
}

#feedbackForm button[type="submit"] {
  background: #4e90e6;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 5px;
  transition: background .15s;
}

#feedbackForm button[type="submit"]:hover {
  background: #3d7dc9;
}

#feedbackForm button[type="submit"]:disabled { 
  background: #234074; 
  cursor: not-allowed; 
}

.msg { 
  font-size: 14px; 
  margin-top: 6px;
}

.msg.success { 
  color: #34b351; 
}

.msg.error { 
  color: #e34234; 
}

/* ===== Comments Section (YouTube Light Style) ===== */
.yt-comments-container {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  margin: 12px auto 60px auto;
  box-shadow: 0 2px 14px rgba(0,0,0,0.13);
  padding-bottom: 10px;
}

.yt-comments-container h2 {
  color: #1e293b;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 2px 15px;
  padding-top: 13px;
  letter-spacing: 0.02em;
}

/* ===== Main Comment ===== */
.yt-comment {
  padding: 15px 16px 2px 16px;
  border-bottom: 1px solid #f1f1f1;
  background: transparent;
}

.yt-comment:last-child { 
  border-bottom: none; 
}

.yt-comment-main { 
  min-width: 0; 
}

.yt-comment-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 3px;
}

.yt-comment-username {
  font-weight: 600;
  color: #19395e;
  font-size: 15px;
}

.yt-comment-time {
  font-size: 13px;
  color: #6a7b91;
}

.yt-comment-text {
  font-size: 15px;
  color: #232a35;
  margin-bottom: 4px;
  word-break: break-word;
  line-height: 1.45;
}

/* ===== Action Row ===== */
.yt-comment-actions-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  margin-bottom: 2px;
}

.yt-action-btn {
  cursor: pointer;
  color: #687488;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 3px;
  border-radius: 3px;
  user-select: none;
  transition: color .15s, background .15s;
}

.yt-action-btn svg {
  margin-right: 1px;
  vertical-align: middle;
  stroke: #687488;
  transition: stroke .15s;
}

.yt-action-btn.liked, 
.yt-action-btn.liked svg { 
  color: #1c73e8; 
  stroke: #1c73e8; 
}

.yt-action-btn:hover { 
  background: #f1f4f9; 
  color: #1c73e8; 
}

.yt-likes-count {
  font-size: 14px;
  color: #43526c;
  margin: 0 5px 0 0;
  user-select: none;
}

.yt-reply-btn {
  color: #3e4a5b;
  font-size: 14px;
  margin-left: 9px;
  font-weight: 500;
  border-radius: 3px;
  padding: 0 6px;
}

.yt-reply-btn:hover { 
  color: #1c73e8; 
  background: #eaf2fc; 
}

/* ===== Show Replies Link (YouTube style) ===== */
.yt-show-replies-row {
  margin: 0 0 1px 6px;
  padding: 2px 0 1px 0;
}

.yt-show-replies-btn {
  color: #1c73e8;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  user-select: none;
}

.yt-show-replies-btn:hover { 
  text-decoration: underline; 
}

.yt-replies-link { 
  margin-left: 2px; 
}

/* ===== Replies (nested, indented) ===== */
.yt-replies-list { 
  margin-left: 35px; 
  margin-top: 2px; 
}

.yt-reply {
  background: transparent;
  padding: 12px 0 4px 0;
  border-bottom: none;
}

.yt-reply .yt-comment-username { 
  color: #204c87; 
  font-size: 14px; 
}

.yt-reply .yt-comment-time { 
  color: #8ba0be; 
  font-size: 12.5px; 
}

.yt-reply .yt-comment-text { 
  font-size: 14.5px; 
  color: #263047; 
}

.yt-reply .yt-action-btn { 
  font-size: 13px; 
}

.yt-reply .yt-likes-count { 
  font-size: 13px; 
  color: #7c8799; 
}

.yt-reply .yt-reply-btn { 
  font-size: 13px; 
  padding: 0 5px; 
}

/* ===== Reply Input Box ===== */
.yt-reply-input-row {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.yt-reply-input-row input {
  flex: 1;
  border: 1px solid #d1d6e0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
  background: #f5f8fc;
  color: #1c2331;
}

.yt-reply-input-row button {
  border: none;
  background: #1c73e8;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  padding: 6px 15px;
  cursor: pointer;
  transition: background .12s;
}

.yt-reply-input-row button:hover {
  background: #125cb3;
}

.yt-reply-input-row .yt-cancel-reply {
  display: none !important; /* Hide cancel button */
}

/* ===== Add Comment Bar (bottom) ===== */
.add-comment-bar {
  display: flex;
  align-items: center;
  padding: 10px 10px 10px 15px;
  border-top: 1px solid #e5e9ef;
  background: #fafbfc;
  gap: 7px;
}

.add-comment-bar .emoji {
  font-size: 20px;
  cursor: pointer;
  margin-right: 2px;
  user-select: none;
  transition: filter 0.14s;
}

.add-comment-bar .emoji:hover { 
  filter: brightness(1.3);
}

.add-comment-bar .add-comment-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #223557;
  padding: 7px 6px;
  outline: none;
  margin: 0 7px;
}

.add-comment-bar .send-btn {
  background: #1c73e8;
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.14s;
}

.add-comment-bar .send-btn:hover { 
  background: #125cb3; 
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-center-wrap { 
    margin-left: 14px; 
    margin-right: 14px; 
  }
  
  .yt-comments-container { 
    max-width: 99vw; 
  }
  
  #feedbackForm { 
    max-width: 99vw; 
  }
}

@media (max-width: 600px) {
  .main-center-wrap { 
    margin-left: 2vw; 
    margin-right: 2vw; 
  }
  
  .yt-comments-container, 
  #feedbackForm {
    max-width: 99vw;
    padding: 9px 1vw;
  }
  
  .yt-comment, 
  .yt-reply { 
    padding-left: 2vw; 
    padding-right: 2vw; 
  }
  
  .yt-replies-list { 
    margin-left: 5vw; 
  }
}

/* =================== RESPONSIVE FIX =================== */
/* Desktop: footer sticks to bottom */
@media (min-width: 768px) {
  #footer-container {
    margin-top: auto;
  }
}

/* Mobile: footer sits above bottom nav */
@media (max-width: 767px) {
  #footer-container {
    margin-bottom: 55px; /* space for nav */
  }
}
