/* Базовые стили */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Шапка профиля */
.profile-header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  font-style: italic;
}

/* Основное содержимое */
main {
  padding-bottom: 150px;
}

/* Футер */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #86b7fe;
  color: white;
  padding: 1.5rem 0 1rem 0;
  border-radius: 30px 30px 0 0;
  z-index: 1000;
}

/* Галерея */
.carousel-item img {
  height: 70vh;
  object-fit: cover;
  border-radius: 8px;
}

/* Логотип */
.logo {
  width: 300px;
}
.logo img {
  width: 100%;
  height: auto;
}

/* Социальные иконки */
.social-icon {
  font-size: 3rem;
  margin: 0 15px;
  transition: all 0.3s;
}
.social-icon:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
.social-icon.active {
  color: #fff;
}
.social-icon.inactive {
  color: #86b7fe;
}

/* Кнопка доната */
.donate-btn {
  font-size: 1.2rem;
  padding: 10px 25px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  position: fixed;
  top: -10px;
  right: 50%;
  margin-right: -107px;
  z-index: 7777;
}
.donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* Карточки комментариев */
.comment-card {
  transition: transform 0.3s;
  margin-bottom: 1.5rem;
}
.comment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Модальное окно */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}
.donate-methods img {
  height: 40px;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}
.donate-methods img:hover {
  transform: scale(1.1);
}

/* Редактирование контента */
.editable {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.editable:hover {
  background-color: rgba(0, 123, 255, 0.1);
}
.editable:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  color: #000;
}
.edit-mode .editable {
  border: 1px dashed #000;
 }


/* Управление редактированием */
.edit-controls {
  position: fixed;
  top: 5px;
  right: 5px;
  border-radius:30px;
  background-color: rgba(0, 0, 0, 0.5);
  padding:15px;
  z-index: 9999;
}
#toggleEdit,#saveChanges{border-radius: 20px;}
.alert{z-index: 99999;padding:20px;border-radius:30px}

/* Режим редактирования галереи */
.gallery-edit-mode .carousel-item {
  position: relative;
}
.gallery-edit-mode .remove-photo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.remove-photo:hover::after {
  content: "Удалить";
  position: absolute;
  right: 40px;
  background: #333;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Область загрузки */
.upload-area {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin: 15px;
  display: none;
}
.gallery-edit-mode .upload-area {
  display: block;
}

/* Кнопка закрытия комментариев */
.comment-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.comment-close-btn:hover {
  background: #e0e0e0;
  color: #333;
  transform: rotate(90deg);
}
.comment-close-btn svg {
  width: 18px;
  height: 18px;
}
.comment-close-btn.hidden {
  transform: translateY(100%);
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Контейнер комментариев */
.comment-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Вспомогательные классы */
.none {
  display: none;
}

.social-icons-editable {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-item {
  position: relative;
  display: flex;
  align-items: center;
}

.social-icon {
	color: #fff; 
  font-size: 2.5rem;
  transition: all 0.3s;
  margin-bottom: 5px;
}

.social-icon.active {
  color: #fff; 
  text-shadow: 0 0 5px rgba(74, 118, 168, 0.3);
}

.social-icon.inactive {
  color: #cccccc;
  cursor: pointer;
}

.social-input {
  width: 200px;
  transition: all 0.3s;
}

.edit-mode .social-input ,.edit-mode .col-auto{
  display: block !important;
}

@media(max-width:900px){.dblock{display:block;}}

.qr-preview-wrapper {
  position: relative;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.qr-code-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  background: white;
  cursor: pointer;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.qr-code-preview:hover, .qr-placeholder:hover {
  opacity: 0.9;
}

/* Для режима редактирования */
.edit-mode .qr-preview-wrapper {
  border-color: #86b7fe;
}

.edit-mode .qr-placeholder {
  background-color: #f8f9fa;
}