/* Profile styles: simple comments added by me to explain sections. */

.profile-info-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.profile-image img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #A68CA5;
}

.profile-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.meta-top h2 {
  font-size: 1.8rem;
  margin: 0;
}

.edit-btn {
  background-color: #A68CA5;
  color: #F6F3F6;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
}

.edit-btn:hover {
  background-color: #A68CA5;
}

.profile-stats {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #5C475B;
  display: flex;
  gap: 20px;
}

.stat-link {
  text-decoration: none;
  color: #5C475B;
  font-weight: bold;
}

.stat-link:hover {
  text-decoration: underline;
}

.profile-bio {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}


.followers-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  text-align: left;
}

.followers-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.follower-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  background: #F6F3F6;
  padding: 10px 15px;
  border-radius: 10px;
}

.follower-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.follower-left img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #A68CA5;
}

.follower-left span {
  font-weight: bold;
  font-size: 1rem;
}

.remove-btn {
  background-color: #ff4d4d;
  color: #F6F3F6;
  border: none;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

.remove-btn:hover {
  background-color: #e03d3d;
}

.follow-btn {
  background-color: #A68CA5;
  color: black;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.follow-btn:hover {
  background-color: #7F627D;
}

.unfollow-btn {
  background-color: #f5c6c6;
  color: #222;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.unfollow-btn:hover {
  background-color: #e49b9b;
}

.user-link {
  color: #7F627D;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.user-link:hover {
  text-decoration: underline;
  color: #7F627D;
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}


.page-title {
  text-align: center;
  margin: 60px 0 30px 0;
  font-size: 2rem;
  font-weight: bold;
}

.page-title + .home-container {
  margin-top: 30px;
}


.post-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.delete-form {
  margin-top: 8px;
  text-align: center;
}

.delete-btn {
  background-color: #e74c3c;
  color: #F6F3F6;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.delete-btn:hover {
  background-color: #c0392b;
}

.delete-inline-form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  z-index: 2;
}

.delete-inline-btn {
  background-color: #A68CA5;
  color: black;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-inline-btn:hover {
  background-color: #7F627D;
}

.delete-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  transform: scale(1.3);
  z-index: 2;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #F6F3F6;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.modal-content h3 {
  margin-top: 0;
  color: #111;
  font-size: 20px;
}

.modal-content p {
  color: #444;
  font-size: 15px;
  margin: 10px 0 20px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.confirm-btn, .cancel-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.confirm-btn {
  background-color: #cb3d3d;
  color: #F6F3F6;
}

.cancel-btn {
  background-color: #eee;
  color: #222;
}


.post-gallery{
  
  
  column-width: 320px;
  column-gap: 1.5rem;
  padding: 2rem;
}


.post-link,
.post-card{
  display: inline-block;   
  width: 100%;
  margin: 0 0 1.5rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}


.post-card{
  position: relative;              
  background-color: #f9f8f3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.post-card a{ display:block; text-decoration:none; }


.thumbnail-image,
.post-card video{
  display:block;
  width:100%;
  height:auto !important;          
  max-width:100%;
  object-fit: contain;             
  background:#F6F3F6;
}


.card-fallback{
  padding:40px 16px;
  text-align:center;
  color:#5C475B;
  font-weight:700;
}


.delete-inline-form{
  position:absolute;
  top:10px; right:10px;
  margin:0;
  z-index:2;

  
  opacity:0;
  transform: translateY(-4px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}

.post-card:hover .delete-inline-form,
.yt-card:hover .delete-inline-form{     
  opacity:1;
  transform: none;
  pointer-events:auto;
}

.delete-inline-btn{
  background-color:#A68CA5;
  color:black;
  padding:6px 12px;
  border-radius:20px;
  border:none;
  font-size:0.75rem;
  font-weight:bold;
  cursor:pointer;
  transition: background-color .2s ease;
}
.delete-inline-btn:hover{ background-color:#7F627D; }


/* Responsive styles */
@media (max-width: 1100px){
  .post-gallery{ column-width: 280px; }
}
/* Responsive styles */
@media (max-width: 768px){
  .post-gallery{ column-width: 220px; padding: 1.25rem; }
}
/* Responsive styles */
@media (max-width: 480px){
  .post-gallery{ column-width: 180px; padding: 1rem; }
}


.tab-button{
  padding: 14px 32px; border-radius:30px; border:none; background:#ddd; color:#333;
  font-weight:600; text-decoration:none; font-size:1.3rem; transition:all .2s;
}
.tab-button.active{ background:#5C475B; color:#F6F3F6; }

.profile-tab{
  font-size:1.1rem; padding:14px 28px; border-radius:30px; background:#E5E1DA; color:#333;
  text-decoration:none; transition:background-color .3s ease;
}
.profile-tab.active{ background:#5C475B; color:#F6F3F6; }

.portfolio-links h4{ margin-top:20px; color:#5C475B; }
.portfolio-links ul{ list-style:none; padding-left:0; margin-top:10px; }
.portfolio-links li{ margin-bottom:8px; }
.portfolio-links a{ color:#7F627D; text-decoration:none; font-weight:bold; }
.portfolio-links a:hover{ text-decoration:underline; }


.filters{ display:flex; justify-content:center; margin:10px 0 26px; }
.filter-capsule{
  display:flex; align-items:center; gap:14px;
  background:#F6F3F6; border-radius:30px; padding:8px 20px; height:50px;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.filter-capsule label{
  font-weight:800; font-size:15px; color:#5C475B; white-space:nowrap;
}
.filter-capsule select{
  height:34px; min-width:150px; border:none; border-radius:20px; padding:6px 16px;
  background:#fff; color:#5C475B; box-shadow:0 1px 4px rgba(0,0,0,.1); appearance:none;
}