/* ==========================
   PROFILE PAGE — NOAH'S ART GALLERY
   ========================== */

.profile-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: 10rem 4rem 4rem;
  flex-wrap: wrap;
  min-height: calc(100vh - 60px);
}

/* ===== LEFT PROFILE CARD ===== */
.profile-info-card {
  background: #d8c8a9;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 280px;
  transition: transform 0.3s ease;
}
.profile-info-card:hover {
  transform: translateY(-4px);
}

.profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #f8f6f1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.profile-name {
  font-size: 1.2rem;
  color: #604c2c;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.profile-email {
  color: #5e564a;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  word-break: break-word;
}
.profile-role {
  color: #8a764f;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-change-icon,
.btn-edit-profile {
  display: block;
  width: 100%;
  background: #a68d60;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  margin-bottom: 0.6rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-change-icon:hover,
.btn-edit-profile:hover {
  background: #8a764f;
}

/* ===== RIGHT ARTWORK SECTION ===== */
.profile-artworks {
  flex: 1;
  margin-top: 1rem;
  padding: 10px 20px;
  max-width: 1600px;
}
.section-title {
  color: #6c5739;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
}

/* ===== MASONRY GALLERY ===== */
.artworks-grid {
  column-count: 3;
  column-gap: 15px;
  max-width: 100%;
}

.art-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  break-inside: avoid;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.art-card__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.art-card:hover .art-card__image {
  opacity: 0.4;
  transform: scale(1.05);
}

/* ===== Overlay Effect ===== */
.art-card__details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.art-card:hover .art-card__details {
  opacity: 1;
  transform: translateY(0);
}

.art-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.art-card__stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #f1e6d2;
}
.art-card__stats i {
  margin-right: 4px;
}

/* ===== Responsive Columns ===== */
@media (max-width: 1200px) {
  .artworks-grid { column-count: 3; }
}
@media (max-width: 992px) {
  .artworks-grid { column-count: 2; }
}
@media (max-width: 576px) {
  .artworks-grid { column-count: 1; }
}

/* ===== ACCOUNT ACTION BUTTONS ===== */
.account-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.btn-account {
  flex: 1;
  background: #d8c8a9;
  color: #3d352a;
  border: 1.5px solid #b8a57a;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.disable-btn:hover {
  background-color: #f9c93a;
  border-color: #e0b326;
  color: #3d352a;
}
.delete-btn:hover {
  background-color: #e74c3c;
  border-color: #c0392b;
  color: #fff;
}

/* ===== MODALS ===== */
.modal-content {
  border-radius: 16px;
  background-color: #f9f6ef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.modal-header {
  border-bottom: none !important;
  padding-bottom: 0;
}
.modal-title {
  color: #3d352a;
  font-weight: 600;
}
.modal-body label {
  color: #3d352a;
  font-weight: 500;
}
.modal-body .form-control {
  border-radius: 10px;
  border: none;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.modal-body .form-control:focus {
  box-shadow: 0 0 0 3px rgba(166, 138, 100, 0.3);
  outline: none;
}
.modal-body textarea.form-control {
  resize: none;
  border-radius: 10px;
}
.modal-body .btn {
  border: none;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}
.modal-body .btn-primary {
  background-color: #a68a64;
  color: #fff;
}
.modal-body .btn-primary:hover {
  background-color: #8d7455;
}
.modal-body .btn-secondary {
  background-color: #d3c6b1;
  color: #3d352a;
}
.modal-body .btn-secondary:hover {
  background-color: #c7b79c;
}

/* ===== MODAL ANIMATION ===== */
.modal.fade .modal-dialog {
  transform: translateY(-25px);
  transition: all 0.3s ease-out;
}
.modal.show .modal-dialog {
  transform: translateY(0);
}

/* ===== RESPONSIVE CONTAINER ===== */
@media (max-width: 992px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }
  .profile-info-card {
    width: 100%;
    max-width: 340px;
    margin-bottom: 1rem;
  }
}

/* ===== Small screens ===== */
@media (max-width: 576px) {
  .account-actions {
    flex-direction: column;
  }
  .btn-account {
    width: 100%;
  }
}

.btn-follow,
.btn-following {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-follow {
  background: #a68d60;
  color: #fff;
}
.btn-follow:hover {
  background: #8a764f;
}
.btn-following {
  background: #ccc2a8;
  color: #3d352a;
}
.btn-following:hover {
  background: #a68d60;
  color: #fff;
}
