/* LAYOUT GENERALE */
.profile-page {
  min-height: 100vh;
}

.profile-sidebar {
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  border-radius: 20px 20px 20px 20px;
  height: 100%;
}


.profile-sidebar-link {
  color: #007bff;
  padding: 0.4rem 0;
}

.profile-sidebar-link.active {
  font-weight: 600;
}

.logout-link {
  font-size: 0.9rem;
  color: #444;
  text-decoration: none;
}

.logout-link:hover {
  text-decoration: underline;
}

.logout-icon {
  margin-left: 0.2rem;
}

.profile-mascot {
  margin-top: 2rem;
}

.profile-mascot img {
  max-width: 120px;
}





/* COVER + CARD PROFILO */
.profile-main {
  padding: 0 2rem 4rem 2rem;
}

.profile-cover {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.profile-cover-img {
  width: 100%;
  border-radius: 20px 20px 20px 20px;
  object-fit: cover;
  max-height: 260px;
}

.profile-card {
  position: absolute;
  left: 50%;
  bottom: -55px;
  transform: translateX(-50%);
  width: min(900px, 90%);
  border-radius: 18px;
  padding: 1.2rem 1.8rem;
}

.profile-avatar-wrapper {
  flex-shrink: 0;
  margin-right: 1rem;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-welcome {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 600;
  position: absolute;
  top: -70px;
  left: 1.8rem;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-email {
  font-size: 0.9rem;
  color: #777;
}

.profile-subtitle {
  font-size: 0.9rem;
  color: #999;
}

.profile-edit-btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
  font-weight: 500;
}

.profile-edit-icon {
  margin-right: 0.3rem;
}

/* FRECCIA TRATTEGGIATA */
.profile-arrow-decoration {
  height: 130px;
  transform: rotate(134deg);
  margin-top: 1rem;
  margin-bottom: -1rem;
  background-image: url('../assets/png/arrow-blue-flipcopia.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

}




/* SEZIONE RECENSIONI */
.profile-reviews {
  margin-top: 2rem;
}

.profile-section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* CARD RECENSIONE */
.review-card {
  min-height: 210px; 
  border-radius: 14px;     
  border: none !important;     
}


.review-poster-wrapper {
  width: 100%;
  height: 150px;               
  border-radius: 14px;
  overflow: hidden;            
  margin-bottom: 1rem;         
}

.review-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;           
  display: block;
}





.review-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.review-time {
  font-size: 0.75rem;
}

.review-excerpt {
  font-size: 0.82rem;
  line-height: 1.4;
}

.review-more {
  color: #007bff;
  font-weight: 500;
}

.review-likes {
  display: flex;
  align-items: center;
}

.review-like-icon {
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

.review-actions .btn {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  border-color: #e5e5e5;
  margin-left: 0.3rem;
}





@media (max-width: 991.98px) {
  .profile-main {
    padding: 0 1.5rem 3rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .profile-cover-img {
    border-radius: 0;
    max-height: 220px;
  }

  .profile-card {
    position: static;
    transform: none;
    margin-top: -35px;
    width: 100%;
  }

  .profile-welcome {
    position: static;
    color: #333;
    margin-bottom: 0.2rem;
  }

  .profile-main {
    padding-inline: 1rem;
  }

  .add-review-btn {
    right: 1.2rem;
    bottom: 1.5rem;
  }
}





/* BOX MODIFICA RECENSIONE (stile wireframe) */
.review-edit-box {
  border: 2px dashed #009AED;
  border-radius: 24px;
  padding: 2rem;
  background-color: #ffffff;
  position: relative;
}

.review-edit-header {
  background-color: #E5F5FF;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.review-edit-title {
  font-size: 1rem;
}

.review-edit-chevron {
  font-size: 1.1rem;
}

.review-edit-textarea {
  background-color: #E5F5FF;
  border-radius: 12px;
  border: none;
  resize: vertical;
}

.review-edit-thumb {
  width: 100%;
  height: 110px;
  max-width: 180px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #E5F5FF;
  display: flex;
  align-items: center;
  justify-content: center;
}


.review-edit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-edit-thumb.empty {
  border: 2px solid #009AED;
  background-color: transparent;
}

.review-edit-plus {
  font-size: 2rem;
  color: #009AED;
}

.review-edit-submit {
  padding-inline: 2.5rem;
  border-radius: 999px;
}

.review-edit-mascot {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
}

.review-preview-img {
  width: 100%;
  max-width: 180px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
}

.review-edit-mascot img {
  width: 220px;
  height: auto;
}

@media (max-width: 767.98px) {
  .review-edit-box {
    padding: 1.5rem;
  }

  .review-edit-thumb {
    width: 100%;
  }

  .review-edit-mascot {
    display: none;
  }
}


footer { 
  position: relative; z-index: 1; 
}
.add-review-btn { 
  z-index: 1050; 
}
