* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #eef2f7;
  color: #111827;
}

/* NAVBAR */
.navbar {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.navbar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
}

/* BANNER */
.banner {
  height: 260px;
  background: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee") center/cover no-repeat;
  position: relative;
}
.image-placeholder,
.banner-text,
.empty-box {
  text-align: center;
  color: #777;
  font-size: 14px;
  padding: 1rem;
}

.empty-banner {
  background: linear-gradient(135deg,#eee,#ddd);
  min-height: 180px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.edit-input,
.edit-textarea {
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  font-family:Poppins;
}

@media(max-width:768px){
  .profile-section{
    flex-direction:column;
    text-align:center;
  }
}


.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
 
}
#changeBannerBtn {
  position:absolute;
  right:1rem;
  z-index:10; /* on top of overlay */
}

/* PROFILE SECTION */
.profile-section {
  margin: -100px 40px 40px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);

  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

/* PROFILE IMAGE */
.profile-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 7px solid white;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* DETAILS */
.profile-details {
  flex: 1;
}

.username {
  font-size: 34px;
  font-weight: 700;
  color: #1e3a8a;
}

/* BIO */
.bio {
  margin: 14px 0 26px;
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
  max-width: 650px;
}

/* STATS */
.stats {
  display: flex;
  gap: 45px;
  margin-bottom: 26px;
}

.stats strong {
  font-size: 30px;
  font-weight: 700;
}

.stats span {
  display: block;
  font-size: 14px;
  color: #6b7280;
}

/* ACTION BUTTONS */
.profile-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.edit {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
}

.share {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

/* BADGES */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badges span {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #3730a3;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* PINNED QUOTE */
.pinned-quote {
  margin: 0 40px 40px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fde68a, #fef3c7);
}

.pinned-quote blockquote {
  font-size: 20px;
  font-style: italic;
  margin-top: 10px;
}

/* QUOTES */
.quotes-section {
  padding: 30px 40px 60px;
}

.quotes-section h3 {
  font-size: 22px;
  margin-bottom: 22px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

/* QUOTE CARD */
.quote-card {
  padding: 28px;
  border-radius: 22px;
  font-weight: 500;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-8px);
}

.action {
    display: flex;
    align-items:center;
    gap: 4px;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
}

/* CARD COLORS */
.blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.green { background: linear-gradient(135deg, #dcfce7, #ecfdf5); }
.purple { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.orange { background: linear-gradient(135deg, #ffedd5, #fff7ed); }

/* MOBILE */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    margin: -80px 20px 30px;
    padding: 30px;
  }

  .stats {
    justify-content: center;
    gap: 28px;
  }

  .profile-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .username {
    font-size: 28px;
  }
}
