/* =====================================================
   MODALS - Modales y overlays
   ===================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}

.modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  touch-action: manipulation;
}

/* Post Modal */
.post-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.post-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.post-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.post-modal-media {
  width: 100%;
  max-width: 500px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.post-modal-media img,
.post-modal-media video {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.post-modal-info {
  padding: 16px;
  background: #fff;
}

.post-modal-caption {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}

.post-modal-stats {
  color: #666;
  font-size: 14px;
}

.post-modal-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.post-modal-stats {
  margin-top: 12px;
}

.post-modal-stats .btn-like {
  font-size: 16px;
}

.post-modal-stats .btn-like .heart-icon {
  font-size: 24px;
}
