body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

.dark-mode .card {
  background-color: #1e1e1e;
  border-color: #2c2c2c;
}

.profile-cover {
  height: 220px;
  background: linear-gradient(135deg, #6ea8fe, #a8d8ff);
  position: relative;
}

.profile-avatar-container {
  position: absolute;
  bottom: -70px;
  left: 30px;
  width: 140px;
  height: 140px;
  z-index: 5;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
}

.dark-mode .profile-avatar {
  border-color: #1e1e1e;
}

.avatar-edit-icon {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid #efefef;
}

.avatar-edit-icon:hover {
  transform: scale(1.1);
}

.avatar-edit-icon i {
  font-size: 14px;
  color: #212529;
}

.dark-mode .avatar-edit-icon {
  background: #2a2a2a;
  border-color: #444;
}

.dark-mode .avatar-edit-icon i {
  color: #ffffff;
}

.profile-header {
  margin-top: 90px;
  padding: 20px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats strong {
  font-size: 18px;
  display: block;
}

.profile-post {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-post:hover {
  transform: scale(1.03);
}

/* ========================= */
/* FULLSCREEN GALLERY */
/* ========================= */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 40px 20px;
  z-index: 1050;
}

.gallery-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
}

.gallery-main-img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.85);
}

.gallery-prev { left: 10px; color: white; }
.gallery-next { right: 10px; color: white; }

.event-img-wrapper { cursor: pointer; }
.event-img-wrapper:hover img { transform: scale(1.03); transition: 0.3s ease; }

@media (min-width: 768px) {
  .gallery-nav { font-size: 24px; padding: 10px; }
  .gallery-modal { padding-top: 50px; }
}

@media (max-width: 768px) {
  .gallery-modal { align-items: self-end; }
  .gallery-close { position: static; }
}

.gallery-placeholder{
  width:100%;
  height:100%;
  padding-bottom:75%;
  background:#f3f3f3;
  border:2px dashed #ccc;
  border-radius:8px;
  position:relative;
  cursor:pointer;
  transition:all .2s ease;
}

.gallery-placeholder:hover{
  background:#e9e9e9;
  border-color:#999;
}

.placeholder-content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#666;
  font-weight:500;
  text-align:center;
}

.placeholder-content i{
  font-size:28px;
  margin-bottom:8px;
}

.placeholder-content span{
  font-size:14px;
}
.dark-mode .gallery-placeholder{
  background:#1f1f1f;
  border-color:#444;
}

.dark-mode .gallery-placeholder:hover{
  background:#2a2a2a;
}
/* Guides thumbnails */
.guide-thumbnail {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.guide-thumbnail:hover {
  transform: scale(1.05);
}
